@fluentui/react-button 0.0.0-nightly-20220302-0405.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.json +4894 -0
  2. package/CHANGELOG.md +1817 -0
  3. package/LICENSE +15 -0
  4. package/README.md +36 -0
  5. package/dist/demo/index.html +71 -0
  6. package/dist/demo/react-dom.development.js +21413 -0
  7. package/dist/demo/react.development.js +3155 -0
  8. package/dist/react-button.d.ts +240 -0
  9. package/lib/Button.d.ts +1 -0
  10. package/lib/Button.js +2 -0
  11. package/lib/Button.js.map +1 -0
  12. package/lib/CompoundButton.d.ts +1 -0
  13. package/lib/CompoundButton.js +2 -0
  14. package/lib/CompoundButton.js.map +1 -0
  15. package/lib/MenuButton.d.ts +1 -0
  16. package/lib/MenuButton.js +2 -0
  17. package/lib/MenuButton.js.map +1 -0
  18. package/lib/SplitButton.d.ts +1 -0
  19. package/lib/SplitButton.js +2 -0
  20. package/lib/SplitButton.js.map +1 -0
  21. package/lib/ToggleButton.d.ts +1 -0
  22. package/lib/ToggleButton.js +2 -0
  23. package/lib/ToggleButton.js.map +1 -0
  24. package/lib/components/Button/Button.d.ts +6 -0
  25. package/lib/components/Button/Button.js +15 -0
  26. package/lib/components/Button/Button.js.map +1 -0
  27. package/lib/components/Button/Button.types.d.ts +62 -0
  28. package/lib/components/Button/Button.types.js +2 -0
  29. package/lib/components/Button/Button.types.js.map +1 -0
  30. package/lib/components/Button/index.d.ts +5 -0
  31. package/lib/components/Button/index.js +5 -0
  32. package/lib/components/Button/index.js.map +1 -0
  33. package/lib/components/Button/renderButton.d.ts +5 -0
  34. package/lib/components/Button/renderButton.js +21 -0
  35. package/lib/components/Button/renderButton.js.map +1 -0
  36. package/lib/components/Button/useButton.d.ts +8 -0
  37. package/lib/components/Button/useButton.js +50 -0
  38. package/lib/components/Button/useButton.js.map +1 -0
  39. package/lib/components/Button/useButtonStyles.d.ts +3 -0
  40. package/lib/components/Button/useButtonStyles.js +418 -0
  41. package/lib/components/Button/useButtonStyles.js.map +1 -0
  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 +23 -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 +3 -0
  58. package/lib/components/CompoundButton/useCompoundButtonStyles.js +168 -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 +10 -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 +21 -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 +3 -0
  76. package/lib/components/MenuButton/useMenuButtonStyles.js +36 -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 +21 -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 +17 -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 +81 -0
  92. package/lib/components/SplitButton/useSplitButton.js.map +1 -0
  93. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
  94. package/lib/components/SplitButton/useSplitButtonStyles.js +93 -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 +20 -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 +52 -0
  110. package/lib/components/ToggleButton/useToggleButton.js.map +1 -0
  111. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +3 -0
  112. package/lib/components/ToggleButton/useToggleButtonStyles.js +194 -0
  113. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  114. package/lib/index.d.ts +5 -0
  115. package/lib/index.js +6 -0
  116. package/lib/index.js.map +1 -0
  117. package/lib/tsdoc-metadata.json +11 -0
  118. package/lib-commonjs/Button.d.ts +1 -0
  119. package/lib-commonjs/Button.js +10 -0
  120. package/lib-commonjs/Button.js.map +1 -0
  121. package/lib-commonjs/CompoundButton.d.ts +1 -0
  122. package/lib-commonjs/CompoundButton.js +10 -0
  123. package/lib-commonjs/CompoundButton.js.map +1 -0
  124. package/lib-commonjs/MenuButton.d.ts +1 -0
  125. package/lib-commonjs/MenuButton.js +10 -0
  126. package/lib-commonjs/MenuButton.js.map +1 -0
  127. package/lib-commonjs/SplitButton.d.ts +1 -0
  128. package/lib-commonjs/SplitButton.js +10 -0
  129. package/lib-commonjs/SplitButton.js.map +1 -0
  130. package/lib-commonjs/ToggleButton.d.ts +1 -0
  131. package/lib-commonjs/ToggleButton.js +10 -0
  132. package/lib-commonjs/ToggleButton.js.map +1 -0
  133. package/lib-commonjs/components/Button/Button.d.ts +6 -0
  134. package/lib-commonjs/components/Button/Button.js +26 -0
  135. package/lib-commonjs/components/Button/Button.js.map +1 -0
  136. package/lib-commonjs/components/Button/Button.types.d.ts +62 -0
  137. package/lib-commonjs/components/Button/Button.types.js +6 -0
  138. package/lib-commonjs/components/Button/Button.types.js.map +1 -0
  139. package/lib-commonjs/components/Button/index.d.ts +5 -0
  140. package/lib-commonjs/components/Button/index.js +30 -0
  141. package/lib-commonjs/components/Button/index.js.map +1 -0
  142. package/lib-commonjs/components/Button/renderButton.d.ts +5 -0
  143. package/lib-commonjs/components/Button/renderButton.js +32 -0
  144. package/lib-commonjs/components/Button/renderButton.js.map +1 -0
  145. package/lib-commonjs/components/Button/useButton.d.ts +8 -0
  146. package/lib-commonjs/components/Button/useButton.js +61 -0
  147. package/lib-commonjs/components/Button/useButton.js.map +1 -0
  148. package/lib-commonjs/components/Button/useButtonStyles.d.ts +3 -0
  149. package/lib-commonjs/components/Button/useButtonStyles.js +430 -0
  150. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -0
  151. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +6 -0
  152. package/lib-commonjs/components/CompoundButton/CompoundButton.js +26 -0
  153. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -0
  154. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +14 -0
  155. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js +6 -0
  156. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -0
  157. package/lib-commonjs/components/CompoundButton/index.d.ts +5 -0
  158. package/lib-commonjs/components/CompoundButton/index.js +32 -0
  159. package/lib-commonjs/components/CompoundButton/index.js.map +1 -0
  160. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +5 -0
  161. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +34 -0
  162. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -0
  163. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +8 -0
  164. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +40 -0
  165. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -0
  166. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
  167. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +180 -0
  168. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
  169. package/lib-commonjs/components/MenuButton/MenuButton.d.ts +6 -0
  170. package/lib-commonjs/components/MenuButton/MenuButton.js +26 -0
  171. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -0
  172. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +10 -0
  173. package/lib-commonjs/components/MenuButton/MenuButton.types.js +6 -0
  174. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -0
  175. package/lib-commonjs/components/MenuButton/index.d.ts +5 -0
  176. package/lib-commonjs/components/MenuButton/index.js +32 -0
  177. package/lib-commonjs/components/MenuButton/index.js.map +1 -0
  178. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +5 -0
  179. package/lib-commonjs/components/MenuButton/renderMenuButton.js +32 -0
  180. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -0
  181. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +6 -0
  182. package/lib-commonjs/components/MenuButton/useMenuButton.js +45 -0
  183. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -0
  184. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
  185. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +47 -0
  186. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -0
  187. package/lib-commonjs/components/SplitButton/SplitButton.d.ts +7 -0
  188. package/lib-commonjs/components/SplitButton/SplitButton.js +27 -0
  189. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -0
  190. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +21 -0
  191. package/lib-commonjs/components/SplitButton/SplitButton.types.js +6 -0
  192. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -0
  193. package/lib-commonjs/components/SplitButton/index.d.ts +5 -0
  194. package/lib-commonjs/components/SplitButton/index.js +32 -0
  195. package/lib-commonjs/components/SplitButton/index.js.map +1 -0
  196. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +5 -0
  197. package/lib-commonjs/components/SplitButton/renderSplitButton.js +28 -0
  198. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -0
  199. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +8 -0
  200. package/lib-commonjs/components/SplitButton/useSplitButton.js +93 -0
  201. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -0
  202. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
  203. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +105 -0
  204. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -0
  205. package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +6 -0
  206. package/lib-commonjs/components/ToggleButton/ToggleButton.js +26 -0
  207. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -0
  208. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +20 -0
  209. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js +6 -0
  210. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -0
  211. package/lib-commonjs/components/ToggleButton/index.d.ts +5 -0
  212. package/lib-commonjs/components/ToggleButton/index.js +32 -0
  213. package/lib-commonjs/components/ToggleButton/index.js.map +1 -0
  214. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -0
  215. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +16 -0
  216. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -0
  217. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +9 -0
  218. package/lib-commonjs/components/ToggleButton/useToggleButton.js +64 -0
  219. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -0
  220. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +3 -0
  221. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +206 -0
  222. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  223. package/lib-commonjs/index.d.ts +5 -0
  224. package/lib-commonjs/index.js +18 -0
  225. package/lib-commonjs/index.js.map +1 -0
  226. package/package.json +68 -0
@@ -0,0 +1,418 @@
1
+ import { shorthands, __styles, mergeClasses } from '@griffel/react';
2
+ import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
3
+ import { tokens } from '@fluentui/react-theme';
4
+ export const buttonClassName = 'fui-Button';
5
+
6
+ const useRootStyles = /*#__PURE__*/__styles({
7
+ "base": {
8
+ "Bt984gj": "f122n59",
9
+ "mc9l5x": "ftuwxu6",
10
+ "Brf1p80": "f4d9j23",
11
+ "ha4doy": "fmrv4ls",
12
+ "B6of3ja": "f1hu3pq6",
13
+ "t21cq0": ["f11qmguv", "f1tyq0we"],
14
+ "jrapky": "f19f4twv",
15
+ "Frg6f3": ["f1tyq0we", "f11qmguv"],
16
+ "B2u0y6b": "f1n52uh2",
17
+ "B68tc82": "f1p9o1ba",
18
+ "Bmxbyg5": "f1sil6mw",
19
+ "ygn44y": "f1cmbuwj",
20
+ "Huce71": "fz5stix",
21
+ "De3pzq": "fxugw4r",
22
+ "sj55zd": "f19n0e5",
23
+ "B4j52fo": "f192inf7",
24
+ "Bekrc4i": ["f5tn483", "f1ojsxk5"],
25
+ "Bn0qgzm": "f1vxd6vx",
26
+ "ibv6hh": ["f1ojsxk5", "f5tn483"],
27
+ "icvyot": "fzkkow9",
28
+ "vrafjx": ["fcdblym", "fjik90z"],
29
+ "oivjwe": "fg706s2",
30
+ "wvpqe5": ["fjik90z", "fcdblym"],
31
+ "g2u3we": "fj3muxo",
32
+ "h3c5rm": ["f1akhkt", "f1lxtadh"],
33
+ "B9xav0g": "f1aperda",
34
+ "zhjwy3": ["f1lxtadh", "f1akhkt"],
35
+ "Bahqtrf": "fk6fouc",
36
+ "oeaueh": "f1s6fcnf",
37
+ "Jwef8y": "f1knas48",
38
+ "Bgoe8wy": "fvcxoqz",
39
+ "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
40
+ "oetu4i": "f1xlaoq0",
41
+ "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
42
+ "Bi91k9c": "fax3udt",
43
+ "eoavqd": "f8491dx",
44
+ "ecr2s2": "fb40n2d",
45
+ "B6oc9vd": "fvs00aa",
46
+ "ak43y8": ["f1assf6x", "f4ruux4"],
47
+ "wmxk5l": "fumykes",
48
+ "B50zh58": ["f4ruux4", "f1assf6x"],
49
+ "lj723h": "f1r2dosr",
50
+ "zwc60e": "fb0xa7e"
51
+ },
52
+ "block": {
53
+ "B2u0y6b": "f6dzj5z",
54
+ "a9b677": "fly5x3f"
55
+ },
56
+ "outline": {
57
+ "De3pzq": "f1c21dwh",
58
+ "Jwef8y": "fjxutwb",
59
+ "ecr2s2": "fophhak"
60
+ },
61
+ "primary": {
62
+ "De3pzq": "ffp7eso",
63
+ "g2u3we": "f1p3nwhy",
64
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
65
+ "B9xav0g": "f1q5o8ev",
66
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
67
+ "sj55zd": "f1phragk",
68
+ "Jwef8y": "f15wkkf3",
69
+ "Bgoe8wy": "f1s2uweq",
70
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
71
+ "oetu4i": "f1ukrpxl",
72
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
73
+ "Bi91k9c": "f1rq72xc",
74
+ "ecr2s2": "fsp1bjw",
75
+ "B6oc9vd": "ff472gp",
76
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
77
+ "wmxk5l": "fggejwh",
78
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
79
+ "lj723h": "f18otbis"
80
+ },
81
+ "subtle": {
82
+ "De3pzq": "fhovq9v",
83
+ "g2u3we": "f1p3nwhy",
84
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
85
+ "B9xav0g": "f1q5o8ev",
86
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
87
+ "sj55zd": "fkfq4zb",
88
+ "Jwef8y": "f1t94bn6",
89
+ "Bgoe8wy": "f1s2uweq",
90
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
91
+ "oetu4i": "f1ukrpxl",
92
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
93
+ "Bi91k9c": "f139oj5f",
94
+ "ecr2s2": "f1wfn5kd",
95
+ "B6oc9vd": "ff472gp",
96
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
97
+ "wmxk5l": "fggejwh",
98
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
99
+ "lj723h": "f19au66r"
100
+ },
101
+ "transparent": {
102
+ "De3pzq": "f1c21dwh",
103
+ "g2u3we": "f1p3nwhy",
104
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
105
+ "B9xav0g": "f1q5o8ev",
106
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
107
+ "sj55zd": "fkfq4zb",
108
+ "Jwef8y": "fjxutwb",
109
+ "Bgoe8wy": "f1s2uweq",
110
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
111
+ "oetu4i": "f1ukrpxl",
112
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
113
+ "Bi91k9c": "f139oj5f",
114
+ "ecr2s2": "fophhak",
115
+ "B6oc9vd": "ff472gp",
116
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
117
+ "wmxk5l": "fggejwh",
118
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
119
+ "lj723h": "f19au66r"
120
+ },
121
+ "circular": {
122
+ "Bbmb7ep": ["f8fbkgy", "f1nfllo7"],
123
+ "Beyfa6y": ["f1nfllo7", "f8fbkgy"],
124
+ "B7oj6ja": ["f1djnp8u", "f1s8kh49"],
125
+ "Btl43ni": ["f1s8kh49", "f1djnp8u"]
126
+ },
127
+ "rounded": {},
128
+ "square": {
129
+ "Bbmb7ep": ["fzi6hpg", "fyowgf4"],
130
+ "Beyfa6y": ["fyowgf4", "fzi6hpg"],
131
+ "B7oj6ja": ["f3fg2lr", "f13av6d4"],
132
+ "Btl43ni": ["f13av6d4", "f3fg2lr"]
133
+ },
134
+ "small": {
135
+ "i8kkvl": "f1q8lukm",
136
+ "Belr9w4": "f1ma2n7n",
137
+ "z8tnut": "f1g0x7ka",
138
+ "z189sj": ["f19lj068", "f177v4lu"],
139
+ "Byoj8tv": "f1qch9an",
140
+ "uwmqm3": ["f177v4lu", "f19lj068"],
141
+ "Bqenvij": "frvgh55",
142
+ "Bf4jedk": "fh7ncta",
143
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
144
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
145
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
146
+ "Btl43ni": ["fyu767a", "f1jar5jt"],
147
+ "Be2twd7": "fy9rknc",
148
+ "Bhrd7zp": "figsok6",
149
+ "Bg96gwp": "fwrc4pm"
150
+ },
151
+ "medium": {
152
+ "i8kkvl": "fgfbwa2",
153
+ "Belr9w4": "f1y3hx6l",
154
+ "z8tnut": "f1g0x7ka",
155
+ "z189sj": ["f11qrl6u", "fjlbh76"],
156
+ "Byoj8tv": "f1qch9an",
157
+ "uwmqm3": ["fjlbh76", "f11qrl6u"],
158
+ "Bqenvij": "f1d2rq10",
159
+ "Bf4jedk": "f14es27b",
160
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
161
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
162
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
163
+ "Btl43ni": ["fyu767a", "f1jar5jt"],
164
+ "Be2twd7": "fkhj508",
165
+ "Bhrd7zp": "fl43uef",
166
+ "Bg96gwp": "f1i3iumi"
167
+ },
168
+ "large": {
169
+ "i8kkvl": "fgfbwa2",
170
+ "Belr9w4": "f1y3hx6l",
171
+ "z8tnut": "f1g0x7ka",
172
+ "z189sj": ["f1gbmcue", "f1rh9g5y"],
173
+ "Byoj8tv": "f1qch9an",
174
+ "uwmqm3": ["f1rh9g5y", "f1gbmcue"],
175
+ "Bqenvij": "fbhnoac",
176
+ "Bf4jedk": "f14es27b",
177
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
178
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
179
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
180
+ "Btl43ni": ["fyu767a", "f1jar5jt"],
181
+ "Be2twd7": "fod5ikn",
182
+ "Bhrd7zp": "fl43uef",
183
+ "Bg96gwp": "faaz57k"
184
+ }
185
+ }, {
186
+ "d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".fz5stix{white-space:nowrap;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".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);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1s6fcnf{outline-style:none;}", ".f6dzj5z{max-width:100%;}", ".fly5x3f{width:100%;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}", ".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}", ".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}", ".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1g0x7ka{padding-top:0;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f1qch9an{padding-bottom:0;}", ".frvgh55{height:24px;}", ".fh7ncta{min-width:64px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f1d2rq10{height:32px;}", ".f14es27b{min-width:96px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fbhnoac{height:40px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}"],
187
+ "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".f8491dx:hover{cursor:pointer;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
188
+ "a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".fb0xa7e:active{outline-style:none;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".fsp1bjw:active{background-color: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);}", ".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
189
+ });
190
+
191
+ const useRootDisabledStyles = /*#__PURE__*/__styles({
192
+ "base": {
193
+ "De3pzq": "f1bg9a2p",
194
+ "g2u3we": "f1jj8ep1",
195
+ "h3c5rm": ["f15xbau", "fy0fskl"],
196
+ "B9xav0g": "f4ikngz",
197
+ "zhjwy3": ["fy0fskl", "f15xbau"],
198
+ "sj55zd": "f1s2aq7o",
199
+ "Bceei9c": "fdrzuqr",
200
+ "Jwef8y": "f1falr9n",
201
+ "Bgoe8wy": "f12mpcsy",
202
+ "Bwzppfd": ["f1gwvigk", "f18rmfxp"],
203
+ "oetu4i": "f1jnshp0",
204
+ "gg5e9n": ["f18rmfxp", "f1gwvigk"],
205
+ "Bi91k9c": "fvgxktp",
206
+ "eoavqd": "fphbwmw",
207
+ "ecr2s2": "f1ryyzvn",
208
+ "B6oc9vd": "fdi4vxw",
209
+ "ak43y8": ["f4ryxzl", "fkdgpbx"],
210
+ "wmxk5l": "fcmhn06",
211
+ "B50zh58": ["fkdgpbx", "f4ryxzl"],
212
+ "lj723h": "f19wldhg",
213
+ "Bwh3duv": "fq67hom"
214
+ },
215
+ "outline": {
216
+ "De3pzq": "f1c21dwh",
217
+ "Jwef8y": "fjxutwb",
218
+ "ecr2s2": "fophhak"
219
+ },
220
+ "primary": {
221
+ "g2u3we": "f1p3nwhy",
222
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
223
+ "B9xav0g": "f1q5o8ev",
224
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
225
+ "Bgoe8wy": "f1s2uweq",
226
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
227
+ "oetu4i": "f1ukrpxl",
228
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
229
+ "B6oc9vd": "ff472gp",
230
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
231
+ "wmxk5l": "fggejwh",
232
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
233
+ },
234
+ "subtle": {
235
+ "De3pzq": "f3rmtva",
236
+ "g2u3we": "f1p3nwhy",
237
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
238
+ "B9xav0g": "f1q5o8ev",
239
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
240
+ "Jwef8y": "f1cio4g9",
241
+ "Bgoe8wy": "f1s2uweq",
242
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
243
+ "oetu4i": "f1ukrpxl",
244
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
245
+ "ecr2s2": "f1rot6hk",
246
+ "B6oc9vd": "ff472gp",
247
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
248
+ "wmxk5l": "fggejwh",
249
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
250
+ },
251
+ "transparent": {
252
+ "De3pzq": "f3rmtva",
253
+ "g2u3we": "f1p3nwhy",
254
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
255
+ "B9xav0g": "f1q5o8ev",
256
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
257
+ "Jwef8y": "f1cio4g9",
258
+ "Bgoe8wy": "f1s2uweq",
259
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
260
+ "oetu4i": "f1ukrpxl",
261
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
262
+ "ecr2s2": "f1rot6hk",
263
+ "B6oc9vd": "ff472gp",
264
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
265
+ "wmxk5l": "fggejwh",
266
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
267
+ }
268
+ }, {
269
+ "d": [".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".fdrzuqr{cursor:not-allowed;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f3rmtva{background-color:transparent;}"],
270
+ "h": [".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".fphbwmw:hover{cursor:not-allowed;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1cio4g9:hover{background-color:transparent;}"],
271
+ "a": [".f1ryyzvn:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".fq67hom:active{cursor:not-allowed;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f1rot6hk:active{background-color:transparent;}"]
272
+ });
273
+
274
+ const useRootFocusStyles = /*#__PURE__*/__styles({
275
+ "base": {
276
+ "B486eqv": "f2hkw1w",
277
+ "Bnmjwt4": "flfsvnh",
278
+ "Jopkrh": ["f1781m5e", "flvaaa9"],
279
+ "hhrs2v": "f50u1b5",
280
+ "B7jbng7": ["flvaaa9", "f1781m5e"],
281
+ "Bh48x57": "f19j8a82",
282
+ "B32s92o": "f4mghqd",
283
+ "B5hngm5": "fhcq1yo",
284
+ "D4py6b": "f9ycirn",
285
+ "Bgwpjed": "fpt6wn7"
286
+ },
287
+ "circular": {
288
+ "B486eqv": "f2hkw1w",
289
+ "B8j0l6": ["f11yy61d", "f5edc3x"],
290
+ "Ekyhi": ["f5edc3x", "f11yy61d"],
291
+ "Bmrpcm6": ["f1aea4n", "f4jo73o"],
292
+ "Beswxhl": ["f4jo73o", "f1aea4n"]
293
+ },
294
+ "rounded": {},
295
+ "primary": {
296
+ "B486eqv": "f2hkw1w",
297
+ "Bnmjwt4": "fbugrqt",
298
+ "Jopkrh": ["fhoxsto", "f19qf7vm"],
299
+ "hhrs2v": "f1tl0rof",
300
+ "B7jbng7": ["f19qf7vm", "fhoxsto"],
301
+ "D4py6b": "f15m8qn2"
302
+ },
303
+ "square": {
304
+ "B486eqv": "f2hkw1w",
305
+ "B8j0l6": ["f5oco9f", "fiz44lb"],
306
+ "Ekyhi": ["fiz44lb", "f5oco9f"],
307
+ "Bmrpcm6": ["f1d1ywej", "flv4e1y"],
308
+ "Beswxhl": ["flv4e1y", "f1d1ywej"]
309
+ },
310
+ "small": {
311
+ "B486eqv": "f2hkw1w",
312
+ "B8j0l6": ["f1dzjeht", "f1fw97sp"],
313
+ "Ekyhi": ["f1fw97sp", "f1dzjeht"],
314
+ "Bmrpcm6": ["f1hr3vfr", "f1fepg9x"],
315
+ "Beswxhl": ["f1fepg9x", "f1hr3vfr"]
316
+ },
317
+ "medium": {
318
+ "B486eqv": "f2hkw1w",
319
+ "B8j0l6": ["f1ezw2km", "f18buiid"],
320
+ "Ekyhi": ["f18buiid", "f1ezw2km"],
321
+ "Bmrpcm6": ["f1hat8c3", "f10ee3ek"],
322
+ "Beswxhl": ["f10ee3ek", "f1hat8c3"]
323
+ },
324
+ "large": {
325
+ "B486eqv": "f2hkw1w",
326
+ "B8j0l6": ["f8iz5lg", "fzmqelg"],
327
+ "Ekyhi": ["fzmqelg", "f8iz5lg"],
328
+ "Bmrpcm6": ["f1ywuu4l", "f721nif"],
329
+ "Beswxhl": ["f721nif", "f1ywuu4l"]
330
+ }
331
+ }, {
332
+ "i": [".f2hkw1w:focus-visible{outline-style:none;}"],
333
+ "d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f19j8a82:focus{outline-color:transparent;}", "[data-keyboard-nav] .f4mghqd:focus{outline-width:2px;}", "[data-keyboard-nav] .fhcq1yo:focus{outline-style:solid;}", "[data-keyboard-nav] .f9ycirn:focus{box-shadow:var(--shadow4),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fpt6wn7:focus{z-index:1;}", "[data-keyboard-nav] .f11yy61d:focus{border-bottom-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f5edc3x:focus{border-bottom-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f1aea4n:focus{border-top-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f4jo73o:focus{border-top-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .fbugrqt:focus{border-top-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .fhoxsto:focus{border-right-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f19qf7vm:focus{border-left-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f1tl0rof:focus{border-bottom-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f15m8qn2:focus{box-shadow:var(--shadow2),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f5oco9f:focus{border-bottom-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .fiz44lb:focus{border-bottom-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1d1ywej:focus{border-top-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .flv4e1y:focus{border-top-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1dzjeht:focus{border-bottom-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fw97sp:focus{border-bottom-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1hr3vfr:focus{border-top-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fepg9x:focus{border-top-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1ezw2km:focus{border-bottom-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f18buiid:focus{border-bottom-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1hat8c3:focus{border-top-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f10ee3ek:focus{border-top-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f8iz5lg:focus{border-bottom-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .fzmqelg:focus{border-bottom-left-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f1ywuu4l:focus{border-top-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f721nif:focus{border-top-left-radius:var(--borderRadiusLarge);}"]
334
+ });
335
+
336
+ const useRootIconOnlyStyles = /*#__PURE__*/__styles({
337
+ "small": {
338
+ "z8tnut": "f10ra9hq",
339
+ "z189sj": ["f8wuabp", "fycuoez"],
340
+ "Byoj8tv": "f1y2xyjm",
341
+ "uwmqm3": ["fycuoez", "f8wuabp"],
342
+ "Bf4jedk": "f107v6xj",
343
+ "B2u0y6b": "f17iyk3w"
344
+ },
345
+ "medium": {
346
+ "z8tnut": "f10ra9hq",
347
+ "z189sj": ["f8wuabp", "fycuoez"],
348
+ "Byoj8tv": "f1y2xyjm",
349
+ "uwmqm3": ["fycuoez", "f8wuabp"],
350
+ "Bf4jedk": "fwbmr0d",
351
+ "B2u0y6b": "f44c6la"
352
+ },
353
+ "large": {
354
+ "z8tnut": "f1xp5gbu",
355
+ "z189sj": ["f1sgzk6v", "f1bg5zqg"],
356
+ "Byoj8tv": "f1d7kygh",
357
+ "uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
358
+ "Bf4jedk": "f12clzc2",
359
+ "B2u0y6b": "fjy1crr"
360
+ }
361
+ }, {
362
+ "d": [".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f107v6xj{min-width:28px;}", ".f17iyk3w{max-width:28px;}", ".fwbmr0d{min-width:32px;}", ".f44c6la{max-width:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".f12clzc2{min-width:40px;}", ".fjy1crr{max-width:40px;}"]
363
+ });
364
+
365
+ const useIconStyles = /*#__PURE__*/__styles({
366
+ "base": {
367
+ "Bt984gj": "f122n59",
368
+ "mc9l5x": "ftuwxu6",
369
+ "Brf1p80": "f4d9j23"
370
+ },
371
+ "small": {
372
+ "Be2twd7": "fe5j1ua",
373
+ "Bqenvij": "fjamq6b",
374
+ "a9b677": "f64fuq3"
375
+ },
376
+ "medium": {
377
+ "Be2twd7": "fe5j1ua",
378
+ "Bqenvij": "fjamq6b",
379
+ "a9b677": "f64fuq3"
380
+ },
381
+ "large": {
382
+ "Be2twd7": "f1rt2boy",
383
+ "Bqenvij": "frvgh55",
384
+ "a9b677": "fq4mcun"
385
+ }
386
+ }, {
387
+ "d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
388
+ });
389
+
390
+ export const useButtonStyles_unstable = state => {
391
+ const rootStyles = useRootStyles();
392
+ const rootDisabledStyles = useRootDisabledStyles();
393
+ const rootFocusStyles = useRootFocusStyles();
394
+ const rootIconOnlyStyles = useRootIconOnlyStyles();
395
+ const iconStyles = useIconStyles();
396
+ const {
397
+ appearance,
398
+ block,
399
+ disabled,
400
+ disabledFocusable,
401
+ iconOnly,
402
+ shape,
403
+ size
404
+ } = state;
405
+ state.root.className = mergeClasses(buttonClassName, // Root styles
406
+ rootStyles.base, block && rootStyles.block, appearance && rootStyles[appearance], rootStyles[size], rootStyles[shape], // Disabled styles
407
+ (disabled || disabledFocusable) && rootDisabledStyles.base, appearance && (disabled || disabledFocusable) && rootDisabledStyles[appearance], // Focus styles
408
+ rootFocusStyles.base, appearance === 'primary' && rootFocusStyles.primary, rootFocusStyles[size], rootFocusStyles[shape], // Icon-only styles
409
+ iconOnly && rootIconOnlyStyles[size], // User provided class name
410
+ state.root.className);
411
+
412
+ if (state.icon) {
413
+ state.icon.className = mergeClasses(iconStyles.base, iconStyles[size], state.icon.className);
414
+ }
415
+
416
+ return state;
417
+ };
418
+ //# sourceMappingURL=useButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Button/useButtonStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nimport type { ButtonState } from './Button.types';\n\nexport const buttonClassName = 'fui-Button';\n\nconst useRootStyles = makeStyles({\n // Base styles\n base: {\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n verticalAlign: 'middle',\n\n ...shorthands.margin(0),\n\n maxWidth: '280px',\n\n ...shorthands.overflow('hidden'),\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n ...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke1),\n\n fontFamily: tokens.fontFamilyBase,\n\n outlineStyle: 'none',\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Hover),\n color: tokens.colorNeutralForeground1,\n\n cursor: 'pointer',\n },\n\n ':active': {\n backgroundColor: tokens.colorNeutralBackground1Pressed,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Pressed),\n color: tokens.colorNeutralForeground1,\n\n outlineStyle: 'none',\n },\n },\n\n // Block styles\n block: {\n maxWidth: '100%',\n width: '100%',\n },\n\n // Appearance variations\n outline: {\n backgroundColor: tokens.colorTransparentBackground,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n },\n },\n primary: {\n backgroundColor: tokens.colorBrandBackground,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n\n ':hover': {\n backgroundColor: tokens.colorBrandBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n },\n\n ':active': {\n backgroundColor: tokens.colorBrandBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n },\n },\n subtle: {\n backgroundColor: tokens.colorSubtleBackground,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2,\n\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n transparent: {\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n // Shape variations\n circular: {\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n },\n rounded: {\n /* The borderRadius rounded styles are handled in the size variations */\n },\n square: {\n ...shorthands.borderRadius(tokens.borderRadiusNone),\n },\n\n // Size variations\n small: {\n ...shorthands.gap('4px'),\n ...shorthands.padding('0', '8px'),\n\n height: '24px',\n minWidth: '64px',\n\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: tokens.lineHeightBase200,\n },\n medium: {\n ...shorthands.gap('6px'),\n ...shorthands.padding('0', '12px'),\n\n height: '32px',\n minWidth: '96px',\n\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: tokens.lineHeightBase300,\n },\n large: {\n ...shorthands.gap('6px'),\n ...shorthands.padding('0', '16px'),\n\n height: '40px',\n minWidth: '96px',\n\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n\n fontSize: tokens.fontSizeBase400,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: tokens.lineHeightBase400,\n },\n});\n\nconst useRootDisabledStyles = makeStyles({\n // Base styles\n base: {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n\n cursor: 'not-allowed',\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n\n cursor: 'not-allowed',\n },\n\n ':active': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n\n cursor: 'not-allowed',\n },\n },\n\n // Appearance variations\n outline: {\n backgroundColor: tokens.colorTransparentBackground,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n },\n },\n primary: {\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n ...shorthands.borderColor('transparent'),\n },\n },\n subtle: {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n },\n transparent: {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n },\n});\n\nconst useRootFocusStyles = makeStyles({\n // TODO: `overflow: 'hidden'` on the root does not pay well with `position: absolute`\n // used by the outline pseudo-element. Need to introduce a text container for children and set\n // overflow there so that default focus outline can work\n //\n // base: createFocusOutlineStyle(),\n // circular: createFocusOutlineStyle({ style: { outlineRadius: tokens.global.borderRadius.circular } }),\n // primary: createFocusOutlineStyle({ style: { outlineOffset: '2px' } }),\n // square: createFocusOutlineStyle({ style: { outlineRadius: tokens.global.borderRadius.none } }),\n\n base: createCustomFocusIndicatorStyle({\n ...shorthands.borderColor('transparent'),\n outlineColor: 'transparent',\n outlineWidth: '2px',\n outlineStyle: 'solid',\n boxShadow: `\n ${tokens.shadow4},\n 0 0 0 2px ${tokens.colorStrokeFocus2}\n `,\n zIndex: 1,\n }),\n\n circular: createCustomFocusIndicatorStyle({\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n }),\n rounded: {},\n // Primary styles\n primary: createCustomFocusIndicatorStyle({\n ...shorthands.borderColor(tokens.colorNeutralForegroundOnBrand),\n boxShadow: `${tokens.shadow2}, 0 0 0 2px ${tokens.colorStrokeFocus2}`,\n }),\n square: createCustomFocusIndicatorStyle({\n ...shorthands.borderRadius(tokens.borderRadiusNone),\n }),\n\n // Size variations\n small: createCustomFocusIndicatorStyle({\n ...shorthands.borderRadius(tokens.borderRadiusSmall),\n }),\n medium: createCustomFocusIndicatorStyle({\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n }),\n large: createCustomFocusIndicatorStyle({\n ...shorthands.borderRadius(tokens.borderRadiusLarge),\n }),\n});\n\nconst useRootIconOnlyStyles = makeStyles({\n // Size variations\n small: {\n ...shorthands.padding('4px'),\n\n minWidth: '28px',\n maxWidth: '28px',\n },\n medium: {\n ...shorthands.padding('4px'),\n\n minWidth: '32px',\n maxWidth: '32px',\n },\n large: {\n ...shorthands.padding('6px'),\n\n minWidth: '40px',\n maxWidth: '40px',\n },\n});\n\nconst useIconStyles = makeStyles({\n // Base styles\n base: {\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n },\n\n // Size variations\n small: {\n fontSize: '20px',\n height: '20px',\n width: '20px',\n },\n medium: {\n fontSize: '20px',\n height: '20px',\n width: '20px',\n },\n large: {\n fontSize: '24px',\n height: '24px',\n width: '24px',\n },\n});\n\nexport const useButtonStyles_unstable = (state: ButtonState): ButtonState => {\n const rootStyles = useRootStyles();\n const rootDisabledStyles = useRootDisabledStyles();\n const rootFocusStyles = useRootFocusStyles();\n const rootIconOnlyStyles = useRootIconOnlyStyles();\n const iconStyles = useIconStyles();\n\n const { appearance, block, disabled, disabledFocusable, iconOnly, shape, size } = state;\n\n state.root.className = mergeClasses(\n buttonClassName,\n\n // Root styles\n rootStyles.base,\n block && rootStyles.block,\n appearance && rootStyles[appearance],\n rootStyles[size],\n rootStyles[shape],\n\n // Disabled styles\n (disabled || disabledFocusable) && rootDisabledStyles.base,\n appearance && (disabled || disabledFocusable) && rootDisabledStyles[appearance],\n\n // Focus styles\n rootFocusStyles.base,\n appearance === 'primary' && rootFocusStyles.primary,\n rootFocusStyles[size],\n rootFocusStyles[shape],\n\n // Icon-only styles\n iconOnly && rootIconOnlyStyles[size],\n\n // User provided class name\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(iconStyles.base, iconStyles[size], state.icon.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,6 @@
1
+ import type { CompoundButtonProps } from './CompoundButton.types';
2
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
+ /**
4
+ * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
5
+ */
6
+ export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { renderCompoundButton_unstable } from './renderCompoundButton';
3
+ import { useCompoundButton_unstable } from './useCompoundButton';
4
+ import { useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
5
+ /**
6
+ * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
7
+ */
8
+
9
+ export const CompoundButton = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useCompoundButton_unstable(props, ref);
11
+ useCompoundButtonStyles_unstable(state);
12
+ return renderCompoundButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
+ });
14
+ CompoundButton.displayName = 'CompoundButton';
15
+ //# sourceMappingURL=CompoundButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;AAEA,EAAA,gCAAgC,CAAC,KAAD,CAAhC;AAEA,SAAO,6BAA6B,CAAC,KAAD,CAApC,CALsG,CAMtG;AACD,CAPuE,CAAjE;AASP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourcesContent":["import * as React from 'react';\nimport { renderCompoundButton_unstable } from './renderCompoundButton';\nimport { useCompoundButton_unstable } from './useCompoundButton';\nimport { useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';\nimport type { CompoundButtonProps } from './CompoundButton.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * CompoundButtons are buttons that can have secondary content that adds extra information to the user.\n */\nexport const CompoundButton: ForwardRefComponent<CompoundButtonProps> = React.forwardRef((props, ref) => {\n const state = useCompoundButton_unstable(props, ref);\n\n useCompoundButtonStyles_unstable(state);\n\n return renderCompoundButton_unstable(state);\n // Casting is required due to lack of distributive union to support unions on @types/react\n}) as ForwardRefComponent<CompoundButtonProps>;\n\nCompoundButton.displayName = 'CompoundButton';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,14 @@
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
+ import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
+ export declare type CompoundButtonSlots = ButtonSlots & {
4
+ /**
5
+ * Second line of text that describes the action this button takes.
6
+ */
7
+ secondaryContent?: Slot<'span'>;
8
+ /**
9
+ * Container that wraps the children and the secondaryContent slot.
10
+ */
11
+ contentContainer: NonNullable<Slot<'span'>>;
12
+ };
13
+ export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;
14
+ export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CompoundButton.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompoundButton.types.js","sourceRoot":"../src/","sources":["components/CompoundButton/CompoundButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';\n\nexport type CompoundButtonSlots = ButtonSlots & {\n /**\n * Second line of text that describes the action this button takes.\n */\n secondaryContent?: Slot<'span'>;\n\n /**\n * Container that wraps the children and the secondaryContent slot.\n */\n contentContainer: NonNullable<Slot<'span'>>;\n};\n\nexport type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;\n\nexport type CompoundButtonState = ComponentState<CompoundButtonSlots> &\n Omit<ButtonState, keyof ButtonSlots | 'components'>;\n"]}
@@ -0,0 +1,5 @@
1
+ export * from './CompoundButton';
2
+ export * from './CompoundButton.types';
3
+ export * from './renderCompoundButton';
4
+ export * from './useCompoundButton';
5
+ export { compoundButtonClassName, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
@@ -0,0 +1,6 @@
1
+ export * from './CompoundButton';
2
+ export * from './CompoundButton.types';
3
+ export * from './renderCompoundButton';
4
+ export * from './useCompoundButton';
5
+ export { compoundButtonClassName, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/CompoundButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export * from './CompoundButton';\nexport * from './CompoundButton.types';\nexport * from './renderCompoundButton';\nexport * from './useCompoundButton';\nexport { compoundButtonClassName, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';\n"]}
@@ -0,0 +1,5 @@
1
+ import type { CompoundButtonState } from './CompoundButton.types';
2
+ /**
3
+ * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
4
+ */
5
+ export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { getSlots } from '@fluentui/react-utilities';
3
+ /**
4
+ * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
5
+ */
6
+
7
+ export const renderCompoundButton_unstable = state => {
8
+ const {
9
+ slots,
10
+ slotProps
11
+ } = getSlots(state);
12
+ const {
13
+ iconOnly,
14
+ iconPosition
15
+ } = state;
16
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
17
+ }, iconPosition !== 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
18
+ }), !iconOnly && /*#__PURE__*/React.createElement(slots.contentContainer, { ...slotProps.contentContainer
19
+ }, slotProps.root.children, slots.secondaryContent && /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
20
+ })), iconPosition === 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
21
+ }));
22
+ };
23
+ //# sourceMappingURL=renderCompoundButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA+B;AAC1E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD7C,EAEG,CAAC,QAAD,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,EAEG,KAAK,CAAC,gBAAN,iBAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAF7B,CAHJ,EAQG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAR7C,CADF;AAYD,CAhBM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';\n\n/**\n * Renders a CompoundButton component by passing the state defined props to the appropriate slots.\n */\nexport const renderCompoundButton_unstable = (state: CompoundButtonState) => {\n const { slots, slotProps } = getSlots<CompoundButtonSlots>(state);\n const { iconOnly, iconPosition } = state;\n\n return (\n <slots.root {...slotProps.root}>\n {iconPosition !== 'after' && slots.icon && <slots.icon {...slotProps.icon} />}\n {!iconOnly && (\n <slots.contentContainer {...slotProps.contentContainer}>\n {slotProps.root.children}\n {slots.secondaryContent && <slots.secondaryContent {...slotProps.secondaryContent} />}\n </slots.contentContainer>\n )}\n {iconPosition === 'after' && slots.icon && <slots.icon {...slotProps.icon} />}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.types';
3
+ /**
4
+ * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
+ * @param props - User provided props to the CompoundButton component.
6
+ * @param ref - User provided ref to be passed to the CompoundButton component.
7
+ */
8
+ export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
@@ -0,0 +1,29 @@
1
+ import { resolveShorthand } from '@fluentui/react-utilities';
2
+ import { useButton_unstable } from '../Button/index';
3
+ /**
4
+ * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
+ * @param props - User provided props to the CompoundButton component.
6
+ * @param ref - User provided ref to be passed to the CompoundButton component.
7
+ */
8
+
9
+ export const useCompoundButton_unstable = ({
10
+ contentContainer,
11
+ secondaryContent,
12
+ ...props
13
+ }, ref) => {
14
+ return { // Button state
15
+ ...useButton_unstable(props, ref),
16
+ // Slots definition
17
+ components: {
18
+ root: 'button',
19
+ icon: 'span',
20
+ contentContainer: 'span',
21
+ secondaryContent: 'span'
22
+ },
23
+ contentContainer: resolveShorthand(contentContainer, {
24
+ required: true
25
+ }),
26
+ secondaryContent: resolveShorthand(secondaryContent)
27
+ };
28
+ };
29
+ //# sourceMappingURL=useCompoundButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/CompoundButton/useCompoundButton.ts"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,2BAAjC;AAEA,SAAS,kBAAT,QAAmC,iBAAnC;AAEA;;;;AAIG;;AACH,OAAO,MAAM,0BAA0B,GAAG,CACxC;AAAE,EAAA,gBAAF;AAAoB,EAAA,gBAApB;AAAsC,KAAG;AAAzC,CADwC,EAExC,GAFwC,KAGjB;AACvB,SAAO,EACL;AACA,OAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAFhB;AAIL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE,MAFI;AAGV,MAAA,gBAAgB,EAAE,MAHR;AAIV,MAAA,gBAAgB,EAAE;AAJR,KALP;AAWL,IAAA,gBAAgB,EAAE,gBAAgB,CAAC,gBAAD,EAAmB;AAAE,MAAA,QAAQ,EAAE;AAAZ,KAAnB,CAX7B;AAYL,IAAA,gBAAgB,EAAE,gBAAgB,CAAC,gBAAD;AAZ7B,GAAP;AAcD,CAlBM","sourcesContent":["import * as React from 'react';\nimport { resolveShorthand } from '@fluentui/react-utilities';\nimport type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.types';\nimport { useButton_unstable } from '../Button/index';\n\n/**\n * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.\n * @param props - User provided props to the CompoundButton component.\n * @param ref - User provided ref to be passed to the CompoundButton component.\n */\nexport const useCompoundButton_unstable = (\n { contentContainer, secondaryContent, ...props }: CompoundButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): CompoundButtonState => {\n return {\n // Button state\n ...useButton_unstable(props, ref),\n\n // Slots definition\n components: {\n root: 'button',\n icon: 'span',\n contentContainer: 'span',\n secondaryContent: 'span',\n },\n contentContainer: resolveShorthand(contentContainer, { required: true }),\n secondaryContent: resolveShorthand(secondaryContent),\n };\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,3 @@
1
+ import type { CompoundButtonState } from './CompoundButton.types';
2
+ export declare const compoundButtonClassName = "fui-CompoundButton";
3
+ export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;