@react-spectrum/s2 0.5.0 → 0.6.0

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 (598) hide show
  1. package/dist/Accordion.cjs +5 -8
  2. package/dist/Accordion.cjs.map +1 -1
  3. package/dist/Accordion.css +2 -2
  4. package/dist/Accordion.css.map +1 -1
  5. package/dist/Accordion.mjs +5 -8
  6. package/dist/Accordion.mjs.map +1 -1
  7. package/dist/ActionBar.cjs +264 -0
  8. package/dist/ActionBar.cjs.map +1 -0
  9. package/dist/ActionBar.css +267 -0
  10. package/dist/ActionBar.css.map +1 -0
  11. package/dist/ActionBar.mjs +257 -0
  12. package/dist/ActionBar.mjs.map +1 -0
  13. package/dist/ActionButton.cjs +121 -147
  14. package/dist/ActionButton.cjs.map +1 -1
  15. package/dist/ActionButton.css +133 -153
  16. package/dist/ActionButton.css.map +1 -1
  17. package/dist/ActionButton.mjs +122 -148
  18. package/dist/ActionButton.mjs.map +1 -1
  19. package/dist/ActionButtonGroup.cjs +6 -9
  20. package/dist/ActionButtonGroup.cjs.map +1 -1
  21. package/dist/ActionButtonGroup.css +3 -3
  22. package/dist/ActionButtonGroup.css.map +1 -1
  23. package/dist/ActionButtonGroup.mjs +6 -9
  24. package/dist/ActionButtonGroup.mjs.map +1 -1
  25. package/dist/ActionMenu.cjs +2 -5
  26. package/dist/ActionMenu.cjs.map +1 -1
  27. package/dist/ActionMenu.mjs +2 -5
  28. package/dist/ActionMenu.mjs.map +1 -1
  29. package/dist/AlertDialog.cjs +2 -5
  30. package/dist/AlertDialog.cjs.map +1 -1
  31. package/dist/AlertDialog.css.map +1 -1
  32. package/dist/AlertDialog.mjs +2 -5
  33. package/dist/AlertDialog.mjs.map +1 -1
  34. package/dist/Avatar.cjs +12 -15
  35. package/dist/Avatar.cjs.map +1 -1
  36. package/dist/Avatar.css +11 -11
  37. package/dist/Avatar.css.map +1 -1
  38. package/dist/Avatar.mjs +12 -15
  39. package/dist/Avatar.mjs.map +1 -1
  40. package/dist/AvatarGroup.cjs +99 -102
  41. package/dist/AvatarGroup.cjs.map +1 -1
  42. package/dist/AvatarGroup.css +31 -31
  43. package/dist/AvatarGroup.css.map +1 -1
  44. package/dist/AvatarGroup.mjs +99 -102
  45. package/dist/AvatarGroup.mjs.map +1 -1
  46. package/dist/Badge.cjs +99 -102
  47. package/dist/Badge.cjs.map +1 -1
  48. package/dist/Badge.css +76 -76
  49. package/dist/Badge.css.map +1 -1
  50. package/dist/Badge.mjs +99 -102
  51. package/dist/Badge.mjs.map +1 -1
  52. package/dist/Breadcrumbs.cjs +93 -94
  53. package/dist/Breadcrumbs.cjs.map +1 -1
  54. package/dist/Breadcrumbs.css +70 -64
  55. package/dist/Breadcrumbs.css.map +1 -1
  56. package/dist/Breadcrumbs.mjs +94 -95
  57. package/dist/Breadcrumbs.mjs.map +1 -1
  58. package/dist/Button.cjs +305 -278
  59. package/dist/Button.cjs.map +1 -1
  60. package/dist/Button.css +255 -182
  61. package/dist/Button.css.map +1 -1
  62. package/dist/Button.mjs +307 -280
  63. package/dist/Button.mjs.map +1 -1
  64. package/dist/ButtonGroup.cjs +17 -20
  65. package/dist/ButtonGroup.cjs.map +1 -1
  66. package/dist/ButtonGroup.css +11 -11
  67. package/dist/ButtonGroup.css.map +1 -1
  68. package/dist/ButtonGroup.mjs +18 -21
  69. package/dist/ButtonGroup.mjs.map +1 -1
  70. package/dist/Card.cjs +167 -167
  71. package/dist/Card.css +121 -121
  72. package/dist/Card.mjs +167 -167
  73. package/dist/CardView.cjs +47 -21
  74. package/dist/CardView.cjs.map +1 -1
  75. package/dist/CardView.css +39 -15
  76. package/dist/CardView.css.map +1 -1
  77. package/dist/CardView.mjs +49 -23
  78. package/dist/CardView.mjs.map +1 -1
  79. package/dist/CenterBaseline.cjs +1 -1
  80. package/dist/CenterBaseline.css +2 -2
  81. package/dist/CenterBaseline.mjs +1 -1
  82. package/dist/Checkbox.cjs +58 -62
  83. package/dist/Checkbox.cjs.map +1 -1
  84. package/dist/Checkbox.css +54 -54
  85. package/dist/Checkbox.css.map +1 -1
  86. package/dist/Checkbox.mjs +59 -63
  87. package/dist/Checkbox.mjs.map +1 -1
  88. package/dist/CheckboxGroup.cjs +43 -45
  89. package/dist/CheckboxGroup.cjs.map +1 -1
  90. package/dist/CheckboxGroup.css +32 -32
  91. package/dist/CheckboxGroup.css.map +1 -1
  92. package/dist/CheckboxGroup.mjs +44 -46
  93. package/dist/CheckboxGroup.mjs.map +1 -1
  94. package/dist/ClearButton.cjs +7 -8
  95. package/dist/ClearButton.cjs.map +1 -1
  96. package/dist/ClearButton.css +5 -5
  97. package/dist/ClearButton.css.map +1 -1
  98. package/dist/ClearButton.mjs +7 -8
  99. package/dist/ClearButton.mjs.map +1 -1
  100. package/dist/CloseButton.cjs +40 -53
  101. package/dist/CloseButton.cjs.map +1 -1
  102. package/dist/CloseButton.css +45 -49
  103. package/dist/CloseButton.css.map +1 -1
  104. package/dist/CloseButton.mjs +40 -53
  105. package/dist/CloseButton.mjs.map +1 -1
  106. package/dist/ColorArea.cjs +12 -15
  107. package/dist/ColorArea.cjs.map +1 -1
  108. package/dist/ColorArea.css +10 -10
  109. package/dist/ColorArea.css.map +1 -1
  110. package/dist/ColorArea.mjs +12 -15
  111. package/dist/ColorArea.mjs.map +1 -1
  112. package/dist/ColorField.cjs +31 -34
  113. package/dist/ColorField.cjs.map +1 -1
  114. package/dist/ColorField.css +24 -24
  115. package/dist/ColorField.css.map +1 -1
  116. package/dist/ColorField.mjs +32 -35
  117. package/dist/ColorField.mjs.map +1 -1
  118. package/dist/ColorHandle.cjs +11 -11
  119. package/dist/ColorHandle.css +19 -19
  120. package/dist/ColorHandle.mjs +11 -11
  121. package/dist/ColorSlider.cjs +43 -46
  122. package/dist/ColorSlider.cjs.map +1 -1
  123. package/dist/ColorSlider.css +43 -43
  124. package/dist/ColorSlider.css.map +1 -1
  125. package/dist/ColorSlider.mjs +44 -47
  126. package/dist/ColorSlider.mjs.map +1 -1
  127. package/dist/ColorSwatch.cjs +8 -11
  128. package/dist/ColorSwatch.cjs.map +1 -1
  129. package/dist/ColorSwatch.css +14 -14
  130. package/dist/ColorSwatch.css.map +1 -1
  131. package/dist/ColorSwatch.mjs +9 -12
  132. package/dist/ColorSwatch.mjs.map +1 -1
  133. package/dist/ColorSwatchPicker.cjs +15 -18
  134. package/dist/ColorSwatchPicker.cjs.map +1 -1
  135. package/dist/ColorSwatchPicker.css +33 -33
  136. package/dist/ColorSwatchPicker.css.map +1 -1
  137. package/dist/ColorSwatchPicker.mjs +15 -18
  138. package/dist/ColorSwatchPicker.mjs.map +1 -1
  139. package/dist/ColorWheel.cjs +18 -21
  140. package/dist/ColorWheel.cjs.map +1 -1
  141. package/dist/ColorWheel.css +15 -15
  142. package/dist/ColorWheel.css.map +1 -1
  143. package/dist/ColorWheel.mjs +18 -21
  144. package/dist/ColorWheel.mjs.map +1 -1
  145. package/dist/ComboBox.cjs +61 -61
  146. package/dist/ComboBox.cjs.map +1 -1
  147. package/dist/ComboBox.css +52 -52
  148. package/dist/ComboBox.css.map +1 -1
  149. package/dist/ComboBox.mjs +62 -62
  150. package/dist/ComboBox.mjs.map +1 -1
  151. package/dist/Content.cjs +12 -19
  152. package/dist/Content.cjs.map +1 -1
  153. package/dist/Content.mjs +12 -19
  154. package/dist/Content.mjs.map +1 -1
  155. package/dist/ContextualHelp.cjs +7 -10
  156. package/dist/ContextualHelp.cjs.map +1 -1
  157. package/dist/ContextualHelp.css +23 -23
  158. package/dist/ContextualHelp.css.map +1 -1
  159. package/dist/ContextualHelp.mjs +7 -10
  160. package/dist/ContextualHelp.mjs.map +1 -1
  161. package/dist/CustomDialog.cjs +10 -13
  162. package/dist/CustomDialog.cjs.map +1 -1
  163. package/dist/CustomDialog.css +9 -9
  164. package/dist/CustomDialog.css.map +1 -1
  165. package/dist/CustomDialog.mjs +10 -13
  166. package/dist/CustomDialog.mjs.map +1 -1
  167. package/dist/Dialog.cjs +12 -16
  168. package/dist/Dialog.cjs.map +1 -1
  169. package/dist/Dialog.css +39 -39
  170. package/dist/Dialog.css.map +1 -1
  171. package/dist/Dialog.mjs +12 -16
  172. package/dist/Dialog.mjs.map +1 -1
  173. package/dist/Disclosure.cjs +60 -69
  174. package/dist/Disclosure.cjs.map +1 -1
  175. package/dist/Disclosure.css +49 -49
  176. package/dist/Disclosure.css.map +1 -1
  177. package/dist/Disclosure.mjs +61 -70
  178. package/dist/Disclosure.mjs.map +1 -1
  179. package/dist/Divider.cjs +15 -19
  180. package/dist/Divider.cjs.map +1 -1
  181. package/dist/Divider.css +18 -18
  182. package/dist/Divider.css.map +1 -1
  183. package/dist/Divider.mjs +15 -19
  184. package/dist/Divider.mjs.map +1 -1
  185. package/dist/DropZone.cjs +30 -33
  186. package/dist/DropZone.cjs.map +1 -1
  187. package/dist/DropZone.css +26 -26
  188. package/dist/DropZone.css.map +1 -1
  189. package/dist/DropZone.mjs +30 -33
  190. package/dist/DropZone.mjs.map +1 -1
  191. package/dist/Field.cjs +133 -131
  192. package/dist/Field.cjs.map +1 -1
  193. package/dist/Field.css +76 -84
  194. package/dist/Field.css.map +1 -1
  195. package/dist/Field.mjs +133 -131
  196. package/dist/Field.mjs.map +1 -1
  197. package/dist/Form.cjs +6 -9
  198. package/dist/Form.cjs.map +1 -1
  199. package/dist/Form.css +3 -3
  200. package/dist/Form.css.map +1 -1
  201. package/dist/Form.mjs +6 -9
  202. package/dist/Form.mjs.map +1 -1
  203. package/dist/FullscreenDialog.cjs +7 -10
  204. package/dist/FullscreenDialog.cjs.map +1 -1
  205. package/dist/FullscreenDialog.css +54 -54
  206. package/dist/FullscreenDialog.css.map +1 -1
  207. package/dist/FullscreenDialog.mjs +7 -10
  208. package/dist/FullscreenDialog.mjs.map +1 -1
  209. package/dist/IllustratedMessage.cjs +128 -132
  210. package/dist/IllustratedMessage.cjs.map +1 -1
  211. package/dist/IllustratedMessage.css +58 -58
  212. package/dist/IllustratedMessage.css.map +1 -1
  213. package/dist/IllustratedMessage.mjs +128 -132
  214. package/dist/IllustratedMessage.mjs.map +1 -1
  215. package/dist/Image.cjs +12 -13
  216. package/dist/Image.cjs.map +1 -1
  217. package/dist/Image.css +11 -11
  218. package/dist/Image.css.map +1 -1
  219. package/dist/Image.mjs +13 -14
  220. package/dist/Image.mjs.map +1 -1
  221. package/dist/InlineAlert.cjs +75 -84
  222. package/dist/InlineAlert.cjs.map +1 -1
  223. package/dist/InlineAlert.css +59 -63
  224. package/dist/InlineAlert.css.map +1 -1
  225. package/dist/InlineAlert.mjs +76 -85
  226. package/dist/InlineAlert.mjs.map +1 -1
  227. package/dist/Link.cjs +36 -39
  228. package/dist/Link.cjs.map +1 -1
  229. package/dist/Link.css +42 -42
  230. package/dist/Link.css.map +1 -1
  231. package/dist/Link.mjs +37 -40
  232. package/dist/Link.mjs.map +1 -1
  233. package/dist/Menu.cjs +322 -234
  234. package/dist/Menu.cjs.map +1 -1
  235. package/dist/Menu.css +118 -116
  236. package/dist/Menu.css.map +1 -1
  237. package/dist/Menu.mjs +323 -235
  238. package/dist/Menu.mjs.map +1 -1
  239. package/dist/Meter.cjs +66 -70
  240. package/dist/Meter.cjs.map +1 -1
  241. package/dist/Meter.css +69 -73
  242. package/dist/Meter.css.map +1 -1
  243. package/dist/Meter.mjs +66 -70
  244. package/dist/Meter.mjs.map +1 -1
  245. package/dist/Modal.cjs +36 -45
  246. package/dist/Modal.cjs.map +1 -1
  247. package/dist/Modal.css +48 -72
  248. package/dist/Modal.css.map +1 -1
  249. package/dist/Modal.mjs +37 -46
  250. package/dist/Modal.mjs.map +1 -1
  251. package/dist/NumberField.cjs +66 -69
  252. package/dist/NumberField.cjs.map +1 -1
  253. package/dist/NumberField.css +70 -70
  254. package/dist/NumberField.css.map +1 -1
  255. package/dist/NumberField.mjs +67 -70
  256. package/dist/NumberField.mjs.map +1 -1
  257. package/dist/Picker.cjs +122 -122
  258. package/dist/Picker.cjs.map +1 -1
  259. package/dist/Picker.css +84 -84
  260. package/dist/Picker.css.map +1 -1
  261. package/dist/Picker.mjs +123 -123
  262. package/dist/Picker.mjs.map +1 -1
  263. package/dist/Popover.cjs +47 -69
  264. package/dist/Popover.cjs.map +1 -1
  265. package/dist/Popover.css +55 -126
  266. package/dist/Popover.css.map +1 -1
  267. package/dist/Popover.mjs +48 -70
  268. package/dist/Popover.mjs.map +1 -1
  269. package/dist/ProgressBar.cjs +85 -87
  270. package/dist/ProgressBar.cjs.map +1 -1
  271. package/dist/ProgressBar.css +81 -85
  272. package/dist/ProgressBar.css.map +1 -1
  273. package/dist/ProgressBar.mjs +85 -87
  274. package/dist/ProgressBar.mjs.map +1 -1
  275. package/dist/ProgressCircle.cjs +16 -18
  276. package/dist/ProgressCircle.cjs.map +1 -1
  277. package/dist/ProgressCircle.css +16 -16
  278. package/dist/ProgressCircle.css.map +1 -1
  279. package/dist/ProgressCircle.mjs +16 -18
  280. package/dist/ProgressCircle.mjs.map +1 -1
  281. package/dist/Provider.cjs +5 -5
  282. package/dist/Provider.css +6 -6
  283. package/dist/Provider.mjs +5 -5
  284. package/dist/Radio.cjs +54 -58
  285. package/dist/Radio.cjs.map +1 -1
  286. package/dist/Radio.css +50 -50
  287. package/dist/Radio.css.map +1 -1
  288. package/dist/Radio.mjs +55 -59
  289. package/dist/Radio.mjs.map +1 -1
  290. package/dist/RadioGroup.cjs +39 -43
  291. package/dist/RadioGroup.cjs.map +1 -1
  292. package/dist/RadioGroup.css +32 -32
  293. package/dist/RadioGroup.css.map +1 -1
  294. package/dist/RadioGroup.mjs +40 -44
  295. package/dist/RadioGroup.mjs.map +1 -1
  296. package/dist/RangeSlider.cjs +2 -3
  297. package/dist/RangeSlider.cjs.map +1 -1
  298. package/dist/RangeSlider.mjs +3 -4
  299. package/dist/RangeSlider.mjs.map +1 -1
  300. package/dist/SearchField.cjs +34 -37
  301. package/dist/SearchField.cjs.map +1 -1
  302. package/dist/SearchField.css +30 -30
  303. package/dist/SearchField.css.map +1 -1
  304. package/dist/SearchField.mjs +35 -38
  305. package/dist/SearchField.mjs.map +1 -1
  306. package/dist/SegmentedControl.cjs +67 -73
  307. package/dist/SegmentedControl.cjs.map +1 -1
  308. package/dist/SegmentedControl.css +63 -63
  309. package/dist/SegmentedControl.css.map +1 -1
  310. package/dist/SegmentedControl.mjs +68 -74
  311. package/dist/SegmentedControl.mjs.map +1 -1
  312. package/dist/Slider.cjs +111 -112
  313. package/dist/Slider.cjs.map +1 -1
  314. package/dist/Slider.css +87 -87
  315. package/dist/Slider.css.map +1 -1
  316. package/dist/Slider.mjs +112 -113
  317. package/dist/Slider.mjs.map +1 -1
  318. package/dist/StatusLight.cjs +28 -32
  319. package/dist/StatusLight.cjs.map +1 -1
  320. package/dist/StatusLight.css +26 -26
  321. package/dist/StatusLight.css.map +1 -1
  322. package/dist/StatusLight.mjs +28 -32
  323. package/dist/StatusLight.mjs.map +1 -1
  324. package/dist/Switch.cjs +56 -60
  325. package/dist/Switch.cjs.map +1 -1
  326. package/dist/Switch.css +48 -48
  327. package/dist/Switch.css.map +1 -1
  328. package/dist/Switch.mjs +57 -61
  329. package/dist/Switch.mjs.map +1 -1
  330. package/dist/TableView.cjs +209 -196
  331. package/dist/TableView.cjs.map +1 -1
  332. package/dist/TableView.css +95 -95
  333. package/dist/TableView.css.map +1 -1
  334. package/dist/TableView.mjs +211 -198
  335. package/dist/TableView.mjs.map +1 -1
  336. package/dist/Tabs.cjs +59 -62
  337. package/dist/Tabs.cjs.map +1 -1
  338. package/dist/Tabs.css +42 -42
  339. package/dist/Tabs.css.map +1 -1
  340. package/dist/Tabs.mjs +59 -62
  341. package/dist/Tabs.mjs.map +1 -1
  342. package/dist/TagGroup.cjs +122 -124
  343. package/dist/TagGroup.cjs.map +1 -1
  344. package/dist/TagGroup.css +93 -93
  345. package/dist/TagGroup.css.map +1 -1
  346. package/dist/TagGroup.mjs +122 -124
  347. package/dist/TagGroup.mjs.map +1 -1
  348. package/dist/TextField.cjs +44 -55
  349. package/dist/TextField.cjs.map +1 -1
  350. package/dist/TextField.css +33 -33
  351. package/dist/TextField.css.map +1 -1
  352. package/dist/TextField.mjs +45 -56
  353. package/dist/TextField.mjs.map +1 -1
  354. package/dist/ToggleButton.cjs +6 -9
  355. package/dist/ToggleButton.cjs.map +1 -1
  356. package/dist/ToggleButton.css +7 -7
  357. package/dist/ToggleButton.css.map +1 -1
  358. package/dist/ToggleButton.mjs +6 -9
  359. package/dist/ToggleButton.mjs.map +1 -1
  360. package/dist/ToggleButtonGroup.cjs +2 -5
  361. package/dist/ToggleButtonGroup.cjs.map +1 -1
  362. package/dist/ToggleButtonGroup.mjs +2 -5
  363. package/dist/ToggleButtonGroup.mjs.map +1 -1
  364. package/dist/Tooltip.cjs +48 -48
  365. package/dist/Tooltip.cjs.map +1 -1
  366. package/dist/Tooltip.css +55 -70
  367. package/dist/Tooltip.css.map +1 -1
  368. package/dist/Tooltip.mjs +49 -49
  369. package/dist/Tooltip.mjs.map +1 -1
  370. package/dist/ar-AE.cjs +10 -2
  371. package/dist/ar-AE.cjs.map +1 -1
  372. package/dist/ar-AE.mjs +10 -2
  373. package/dist/ar-AE.mjs.map +1 -1
  374. package/dist/bg-BG.cjs +11 -2
  375. package/dist/bg-BG.cjs.map +1 -1
  376. package/dist/bg-BG.mjs +11 -2
  377. package/dist/bg-BG.mjs.map +1 -1
  378. package/dist/cs-CZ.cjs +7 -2
  379. package/dist/cs-CZ.cjs.map +1 -1
  380. package/dist/cs-CZ.mjs +7 -2
  381. package/dist/cs-CZ.mjs.map +1 -1
  382. package/dist/da-DK.cjs +12 -4
  383. package/dist/da-DK.cjs.map +1 -1
  384. package/dist/da-DK.mjs +12 -4
  385. package/dist/da-DK.mjs.map +1 -1
  386. package/dist/de-DE.cjs +11 -2
  387. package/dist/de-DE.cjs.map +1 -1
  388. package/dist/de-DE.mjs +11 -2
  389. package/dist/de-DE.mjs.map +1 -1
  390. package/dist/el-GR.cjs +11 -2
  391. package/dist/el-GR.cjs.map +1 -1
  392. package/dist/el-GR.mjs +11 -2
  393. package/dist/el-GR.mjs.map +1 -1
  394. package/dist/en-US.cjs +8 -0
  395. package/dist/en-US.cjs.map +1 -1
  396. package/dist/en-US.mjs +8 -0
  397. package/dist/en-US.mjs.map +1 -1
  398. package/dist/es-ES.cjs +11 -2
  399. package/dist/es-ES.cjs.map +1 -1
  400. package/dist/es-ES.mjs +11 -2
  401. package/dist/es-ES.mjs.map +1 -1
  402. package/dist/et-EE.cjs +10 -2
  403. package/dist/et-EE.cjs.map +1 -1
  404. package/dist/et-EE.mjs +10 -2
  405. package/dist/et-EE.mjs.map +1 -1
  406. package/dist/fi-FI.cjs +10 -2
  407. package/dist/fi-FI.cjs.map +1 -1
  408. package/dist/fi-FI.mjs +10 -2
  409. package/dist/fi-FI.mjs.map +1 -1
  410. package/dist/fr-FR.cjs +11 -2
  411. package/dist/fr-FR.cjs.map +1 -1
  412. package/dist/fr-FR.mjs +11 -2
  413. package/dist/fr-FR.mjs.map +1 -1
  414. package/dist/he-IL.cjs +11 -2
  415. package/dist/he-IL.cjs.map +1 -1
  416. package/dist/he-IL.mjs +11 -2
  417. package/dist/he-IL.mjs.map +1 -1
  418. package/dist/hr-HR.cjs +7 -2
  419. package/dist/hr-HR.cjs.map +1 -1
  420. package/dist/hr-HR.mjs +7 -2
  421. package/dist/hr-HR.mjs.map +1 -1
  422. package/dist/hu-HU.cjs +10 -2
  423. package/dist/hu-HU.cjs.map +1 -1
  424. package/dist/hu-HU.mjs +10 -2
  425. package/dist/hu-HU.mjs.map +1 -1
  426. package/dist/it-IT.cjs +11 -2
  427. package/dist/it-IT.cjs.map +1 -1
  428. package/dist/it-IT.mjs +11 -2
  429. package/dist/it-IT.mjs.map +1 -1
  430. package/dist/ja-JP.cjs +10 -2
  431. package/dist/ja-JP.cjs.map +1 -1
  432. package/dist/ja-JP.mjs +10 -2
  433. package/dist/ja-JP.mjs.map +1 -1
  434. package/dist/ko-KR.cjs +12 -4
  435. package/dist/ko-KR.cjs.map +1 -1
  436. package/dist/ko-KR.mjs +12 -4
  437. package/dist/ko-KR.mjs.map +1 -1
  438. package/dist/lt-LT.cjs +9 -4
  439. package/dist/lt-LT.cjs.map +1 -1
  440. package/dist/lt-LT.mjs +9 -4
  441. package/dist/lt-LT.mjs.map +1 -1
  442. package/dist/lv-LV.cjs +11 -3
  443. package/dist/lv-LV.cjs.map +1 -1
  444. package/dist/lv-LV.mjs +11 -3
  445. package/dist/lv-LV.mjs.map +1 -1
  446. package/dist/main.cjs +4 -0
  447. package/dist/main.cjs.map +1 -1
  448. package/dist/module.mjs +3 -1
  449. package/dist/module.mjs.map +1 -1
  450. package/dist/nb-NO.cjs +9 -4
  451. package/dist/nb-NO.cjs.map +1 -1
  452. package/dist/nb-NO.mjs +9 -4
  453. package/dist/nb-NO.mjs.map +1 -1
  454. package/dist/nl-NL.cjs +10 -2
  455. package/dist/nl-NL.cjs.map +1 -1
  456. package/dist/nl-NL.mjs +10 -2
  457. package/dist/nl-NL.mjs.map +1 -1
  458. package/dist/pl-PL.cjs +8 -3
  459. package/dist/pl-PL.cjs.map +1 -1
  460. package/dist/pl-PL.mjs +8 -3
  461. package/dist/pl-PL.mjs.map +1 -1
  462. package/dist/pt-BR.cjs +11 -2
  463. package/dist/pt-BR.cjs.map +1 -1
  464. package/dist/pt-BR.mjs +11 -2
  465. package/dist/pt-BR.mjs.map +1 -1
  466. package/dist/pt-PT.cjs +11 -2
  467. package/dist/pt-PT.cjs.map +1 -1
  468. package/dist/pt-PT.mjs +11 -2
  469. package/dist/pt-PT.mjs.map +1 -1
  470. package/dist/ro-RO.cjs +12 -3
  471. package/dist/ro-RO.cjs.map +1 -1
  472. package/dist/ro-RO.mjs +12 -3
  473. package/dist/ro-RO.mjs.map +1 -1
  474. package/dist/ru-RU.cjs +7 -2
  475. package/dist/ru-RU.cjs.map +1 -1
  476. package/dist/ru-RU.mjs +7 -2
  477. package/dist/ru-RU.mjs.map +1 -1
  478. package/dist/sk-SK.cjs +7 -2
  479. package/dist/sk-SK.cjs.map +1 -1
  480. package/dist/sk-SK.mjs +7 -2
  481. package/dist/sk-SK.mjs.map +1 -1
  482. package/dist/sl-SI.cjs +7 -2
  483. package/dist/sl-SI.cjs.map +1 -1
  484. package/dist/sl-SI.mjs +7 -2
  485. package/dist/sl-SI.mjs.map +1 -1
  486. package/dist/sr-SP.cjs +7 -2
  487. package/dist/sr-SP.cjs.map +1 -1
  488. package/dist/sr-SP.mjs +7 -2
  489. package/dist/sr-SP.mjs.map +1 -1
  490. package/dist/sv-SE.cjs +11 -2
  491. package/dist/sv-SE.cjs.map +1 -1
  492. package/dist/sv-SE.mjs +11 -2
  493. package/dist/sv-SE.mjs.map +1 -1
  494. package/dist/tr-TR.cjs +10 -2
  495. package/dist/tr-TR.cjs.map +1 -1
  496. package/dist/tr-TR.mjs +10 -2
  497. package/dist/tr-TR.mjs.map +1 -1
  498. package/dist/types.d.ts +109 -89
  499. package/dist/types.d.ts.map +1 -1
  500. package/dist/uk-UA.cjs +7 -2
  501. package/dist/uk-UA.cjs.map +1 -1
  502. package/dist/uk-UA.mjs +7 -2
  503. package/dist/uk-UA.mjs.map +1 -1
  504. package/dist/zh-CN.cjs +10 -2
  505. package/dist/zh-CN.cjs.map +1 -1
  506. package/dist/zh-CN.mjs +10 -2
  507. package/dist/zh-CN.mjs.map +1 -1
  508. package/dist/zh-TW.cjs +10 -2
  509. package/dist/zh-TW.cjs.map +1 -1
  510. package/dist/zh-TW.mjs +10 -2
  511. package/dist/zh-TW.mjs.map +1 -1
  512. package/icons/Skeleton.cjs +2 -2
  513. package/icons/Skeleton.css +5 -5
  514. package/icons/Skeleton.mjs +2 -2
  515. package/package.json +20 -21
  516. package/src/Accordion.tsx +5 -8
  517. package/src/ActionBar.tsx +229 -0
  518. package/src/ActionButton.tsx +25 -52
  519. package/src/ActionButtonGroup.tsx +9 -11
  520. package/src/ActionMenu.tsx +5 -8
  521. package/src/AlertDialog.tsx +5 -8
  522. package/src/Avatar.tsx +5 -8
  523. package/src/AvatarGroup.tsx +5 -8
  524. package/src/Badge.tsx +5 -8
  525. package/src/Breadcrumbs.tsx +6 -12
  526. package/src/Button.tsx +197 -154
  527. package/src/ButtonGroup.tsx +5 -8
  528. package/src/CardView.tsx +37 -12
  529. package/src/Checkbox.tsx +6 -9
  530. package/src/CheckboxGroup.tsx +6 -9
  531. package/src/ClearButton.tsx +2 -5
  532. package/src/CloseButton.tsx +21 -31
  533. package/src/ColorArea.tsx +5 -8
  534. package/src/ColorField.tsx +5 -8
  535. package/src/ColorSlider.tsx +5 -8
  536. package/src/ColorSwatch.tsx +5 -8
  537. package/src/ColorSwatchPicker.tsx +5 -8
  538. package/src/ColorWheel.tsx +5 -8
  539. package/src/ComboBox.tsx +7 -9
  540. package/src/Content.tsx +12 -30
  541. package/src/ContextualHelp.tsx +5 -8
  542. package/src/CustomDialog.tsx +5 -8
  543. package/src/Dialog.tsx +6 -9
  544. package/src/Disclosure.tsx +15 -24
  545. package/src/Divider.tsx +16 -25
  546. package/src/DropZone.tsx +5 -8
  547. package/src/Field.tsx +25 -32
  548. package/src/Form.tsx +5 -8
  549. package/src/FullscreenDialog.tsx +5 -8
  550. package/src/IllustratedMessage.tsx +6 -9
  551. package/src/Image.tsx +3 -6
  552. package/src/InlineAlert.tsx +6 -10
  553. package/src/Link.tsx +13 -21
  554. package/src/Menu.tsx +69 -33
  555. package/src/Meter.tsx +13 -23
  556. package/src/Modal.tsx +22 -52
  557. package/src/NumberField.tsx +5 -8
  558. package/src/Picker.tsx +7 -9
  559. package/src/Popover.tsx +30 -104
  560. package/src/ProgressBar.tsx +14 -24
  561. package/src/ProgressCircle.tsx +18 -24
  562. package/src/Radio.tsx +6 -9
  563. package/src/RadioGroup.tsx +6 -9
  564. package/src/RangeSlider.tsx +2 -5
  565. package/src/SearchField.tsx +5 -8
  566. package/src/SegmentedControl.tsx +10 -16
  567. package/src/Slider.tsx +2 -5
  568. package/src/StatusLight.tsx +6 -9
  569. package/src/Switch.tsx +6 -9
  570. package/src/TableView.tsx +53 -50
  571. package/src/Tabs.tsx +5 -8
  572. package/src/TagGroup.tsx +7 -14
  573. package/src/TextField.tsx +20 -28
  574. package/src/ToggleButton.tsx +7 -9
  575. package/src/ToggleButtonGroup.tsx +5 -8
  576. package/src/Tooltip.tsx +30 -51
  577. package/src/bar-utils.ts +3 -10
  578. package/src/index.ts +2 -0
  579. package/src/style-utils.ts +15 -8
  580. package/style/dist/main.cjs +1 -0
  581. package/style/dist/main.cjs.map +1 -1
  582. package/style/dist/module.mjs +2 -2
  583. package/style/dist/module.mjs.map +1 -1
  584. package/style/dist/spectrum-theme.cjs +72 -5
  585. package/style/dist/spectrum-theme.cjs.map +1 -1
  586. package/style/dist/spectrum-theme.mjs +72 -6
  587. package/style/dist/spectrum-theme.mjs.map +1 -1
  588. package/style/dist/style-macro.cjs +13 -1
  589. package/style/dist/style-macro.cjs.map +1 -1
  590. package/style/dist/style-macro.mjs +13 -1
  591. package/style/dist/style-macro.mjs.map +1 -1
  592. package/style/dist/types.d.ts +50 -29
  593. package/style/dist/types.d.ts.map +1 -1
  594. package/style/index.ts +1 -1
  595. package/style/spectrum-theme.ts +72 -7
  596. package/style/style-macro.ts +20 -4
  597. package/style/tokens.ts +30 -0
  598. package/style/types.ts +1 -1
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties, ReactNode, Context, RefAttributes, ForwardRefExoticComponent, JSXElementConstructor, ReactElement, ReactPortal, JSX, HTMLAttributeReferrerPolicy, ComponentType, FunctionComponent, SVGProps, RefObject } from "react";
2
+ import { AriaLabelingProps, DOMProps, DOMRefValue, SpectrumLabelableProps, FocusableRefValue, LinkDOMProps, Key, LoadingState, HelpTextProps, Orientation, ValueBase, LabelPosition, InputDOMProps, RangeValue } from "@react-types/shared";
2
3
  import { ContextValue, SlotProps, FormProps as _FormProps1, ButtonProps as _ButtonProps1, DisclosurePanelProps as _DisclosurePanelProps1, DisclosureProps as _DisclosureProps1, DisclosureGroupProps, CheckboxProps as _CheckboxProps1, SeparatorProps, PopoverProps as _PopoverProps1, DialogProps as _DialogProps1, MenuItemProps as _MenuItemProps1, MenuProps as _MenuProps1, MenuSectionProps as _MenuSectionProps1, MenuTriggerProps as _MenuTriggerProps1, SubmenuTriggerProps as _SubmenuTriggerProps1, ProgressBarProps as _ProgressBarProps1, LinkProps as _LinkProps1, BreadcrumbsProps as _BreadcrumbsProps1, GridListItemProps, GridListProps, DialogTriggerProps as _DialogTriggerProps1, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, ColorWheelProps as _ColorWheelProps1, SelectProps, ListBoxItemProps, ListBoxProps, SectionProps, ComboBoxProps as _ComboBoxProps1, DropZoneProps as _DropZoneProps1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1, Key as _Key1, CellProps as _CellProps1, ColumnProps as _ColumnProps1, RowProps as _RowProps1, TableBodyProps as _TableBodyProps1, TableHeaderProps as _TableHeaderProps1, TableProps, TabListProps as _TabListProps1, TabPanelProps as _TabPanelProps1, TabProps as _TabProps1, TabsProps as _TabsProps1, TagGroupProps as _TagGroupProps1, TagProps as _TagProps1, TagListProps, TextFieldProps as _TextFieldProps1, ToggleButtonGroupProps as _ToggleButtonGroupProps1, ToggleButtonProps as _ToggleButtonProps1, TooltipProps as _TooltipProps1, TooltipTriggerComponentProps } from "react-aria-components";
3
- import { DOMProps, DOMRefValue, AriaLabelingProps, SpectrumLabelableProps, FocusableRefValue, LinkDOMProps, LoadingState, HelpTextProps, Orientation, ValueBase, LabelPosition, InputDOMProps, RangeValue, Key } from "@react-types/shared";
4
4
  import { ColorScheme, Router } from "@react-types/provider";
5
5
  import { AriaBreadcrumbItemProps } from "react-aria";
6
6
  import { TextFieldRef } from "@react-types/textfield";
@@ -26,7 +26,7 @@ interface StyleProps extends UnsafeStyles {
26
26
  /** Spectrum-defined styles, returned by the `style()` macro. */
27
27
  styles?: StylesProp;
28
28
  }
29
- export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
29
+ export interface ActionButtonGroupProps extends AriaLabelingProps, UnsafeStyles, SlotProps {
30
30
  /** Spectrum-defined styles, returned by the `style()` macro. */
31
31
  styles?: StylesPropWithHeight;
32
32
  /** The children of the group. */
@@ -46,7 +46,7 @@ export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
46
46
  /** Whether the buttons should divide the container width equally. */
47
47
  isJustified?: boolean;
48
48
  /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
49
- staticColor?: 'white' | 'black';
49
+ staticColor?: 'white' | 'black' | 'auto';
50
50
  /**
51
51
  * The axis the group should align with.
52
52
  * @default 'horizontal'
@@ -55,7 +55,7 @@ export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
55
55
  /** Whether the group is disabled. */
56
56
  isDisabled?: boolean;
57
57
  }
58
- export const ActionButtonGroupContext: Context<ContextValue<ActionButtonGroupProps, HTMLDivElement>>;
58
+ export const ActionButtonGroupContext: Context<ContextValue<Partial<ActionButtonGroupProps>, HTMLDivElement>>;
59
59
  /**
60
60
  * An ActionButtonGroup is a grouping of related ActionButtons.
61
61
  */
@@ -154,7 +154,7 @@ export const AvatarContext: Context<ContextValue<AvatarProps, DOMRefValue<HTMLIm
154
154
  /**
155
155
  * An avatar is a thumbnail representation of an entity, such as a user or an organization.
156
156
  */
157
- export let Avatar: ForwardRefExoticComponent<AvatarProps & RefAttributes<DOMRefValue<HTMLImageElement>>>;
157
+ export const Avatar: ForwardRefExoticComponent<AvatarProps & RefAttributes<DOMRefValue<HTMLImageElement>>>;
158
158
  export interface IconProps extends UnsafeStyles, SlotProps, AriaLabelingProps, DOMProps {
159
159
  'aria-hidden'?: boolean | 'false' | 'true';
160
160
  }
@@ -208,7 +208,7 @@ export interface FormProps extends FormStyleProps, Omit<_FormProps1, 'className'
208
208
  /**
209
209
  * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
210
210
  */
211
- export let Form: ForwardRefExoticComponent<FormProps & RefAttributes<DOMRefValue<HTMLFormElement>>>;
211
+ export const Form: ForwardRefExoticComponent<FormProps & RefAttributes<DOMRefValue<HTMLFormElement>>>;
212
212
  interface ActionButtonStyleProps {
213
213
  /**
214
214
  * The size of the ActionButton.
@@ -217,7 +217,7 @@ interface ActionButtonStyleProps {
217
217
  */
218
218
  size?: 'XS' | 'S' | 'M' | 'L' | 'XL';
219
219
  /** The static color style to apply. Useful when the ActionButton appears over a color background. */
220
- staticColor?: 'black' | 'white';
220
+ staticColor?: 'black' | 'white' | 'auto';
221
221
  /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */
222
222
  isQuiet?: boolean;
223
223
  }
@@ -230,7 +230,7 @@ export const ActionButtonContext: Context<ContextValue<ActionButtonProps, Focusa
230
230
  * ActionButtons allow users to perform an action.
231
231
  * They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.
232
232
  */
233
- export let ActionButton: ForwardRefExoticComponent<ActionButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
233
+ export const ActionButton: ForwardRefExoticComponent<ActionButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
234
234
  export interface DisclosureProps extends Omit<_DisclosureProps1, 'className' | 'style' | 'children'>, StyleProps {
235
235
  /**
236
236
  * The size of the disclosure.
@@ -251,7 +251,7 @@ export const DisclosureContext: React.Context<ContextValue<Omit<DisclosureProps,
251
251
  /**
252
252
  * A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.
253
253
  */
254
- export let Disclosure: React.ForwardRefExoticComponent<DisclosureProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
254
+ export const Disclosure: React.ForwardRefExoticComponent<DisclosureProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
255
255
  interface DisclosureTitleProps extends UnsafeStyles, DOMProps {
256
256
  /** The heading level of the disclosure header.
257
257
  *
@@ -271,14 +271,14 @@ export const DisclosureHeader: (props: DisclosureHeaderProps & React.RefAttribut
271
271
  /**
272
272
  * A disclosure title consisting of a heading and a trigger button to expand/collapse the panel.
273
273
  */
274
- export let DisclosureTitle: React.ForwardRefExoticComponent<DisclosureTitleProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
274
+ export const DisclosureTitle: React.ForwardRefExoticComponent<DisclosureTitleProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
275
275
  export interface DisclosurePanelProps extends Omit<_DisclosurePanelProps1, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {
276
276
  children: React.ReactNode;
277
277
  }
278
278
  /**
279
279
  * A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.
280
280
  */
281
- export let DisclosurePanel: React.ForwardRefExoticComponent<DisclosurePanelProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
281
+ export const DisclosurePanel: React.ForwardRefExoticComponent<DisclosurePanelProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
282
282
  export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, SlotProps {
283
283
  /** The disclosure elements in the accordion. */
284
284
  children: React.ReactNode;
@@ -301,7 +301,35 @@ export const AccordionContext: React.Context<ContextValue<AccordionProps, DOMRef
301
301
  /**
302
302
  * An accordion is a container for multiple disclosures.
303
303
  */
304
- export let Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
304
+ export const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
305
+ export interface CloseButtonProps extends Pick<_ButtonProps1, 'isDisabled' | 'onPress'>, StyleProps {
306
+ /**
307
+ * The size of the CloseButton.
308
+ *
309
+ * @default 'M'
310
+ */
311
+ size?: 'S' | 'M' | 'L' | 'XL';
312
+ /** The static color style to apply. Useful when the Button appears over a color background. */
313
+ staticColor?: 'white' | 'black' | 'auto';
314
+ }
315
+ /**
316
+ * A CloseButton allows a user to dismiss a dialog.
317
+ */
318
+ export const CloseButton: ForwardRefExoticComponent<CloseButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
319
+ export interface ActionBarProps extends SlotProps {
320
+ /** A list of ActionButtons to display. */
321
+ children: ReactNode;
322
+ /** Whether the ActionBar should be displayed with a emphasized style. */
323
+ isEmphasized?: boolean;
324
+ /** The number of selected items that the ActionBar is currently linked to. If 0, the ActionBar is hidden. */
325
+ selectedItemCount?: number | 'all';
326
+ /** Handler that is called when the ActionBar clear button is pressed. */
327
+ onClearSelection?: () => void;
328
+ /** A ref to the scrollable element the ActionBar appears above. */
329
+ scrollRef?: RefObject<HTMLElement | null>;
330
+ }
331
+ export const ActionBarContext: Context<ContextValue<Partial<ActionBarProps>, DOMRefValue<HTMLDivElement>>>;
332
+ export const ActionBar: ForwardRefExoticComponent<ActionBarProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
305
333
  interface CheckboxStyleProps {
306
334
  /**
307
335
  * The size of the Checkbox.
@@ -321,7 +349,7 @@ export const CheckboxContext: Context<ContextValue<CheckboxProps, FocusableRefVa
321
349
  * Checkboxes allow users to select multiple items from a list of individual items,
322
350
  * or to mark one individual item as selected.
323
351
  */
324
- export let Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
352
+ export const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
325
353
  interface DividerSpectrumProps {
326
354
  /**
327
355
  * How thick the Divider should be.
@@ -334,7 +362,7 @@ interface DividerSpectrumProps {
334
362
  */
335
363
  orientation?: 'horizontal' | 'vertical';
336
364
  /** The static color style to apply. Useful when the Divider appears over a color background. */
337
- staticColor?: 'white' | 'black';
365
+ staticColor?: 'white' | 'black' | 'auto';
338
366
  }
339
367
  export interface DividerProps extends DividerSpectrumProps, Omit<SeparatorProps, 'className' | 'style' | 'elementType'>, StyleProps {
340
368
  }
@@ -343,7 +371,7 @@ export const DividerContext: Context<ContextValue<DividerProps, DOMRefValue<HTML
343
371
  * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
344
372
  * They can also be used to establish rhythm and hierarchy.
345
373
  */
346
- export let Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<DOMRefValue<HTMLElement>>>;
374
+ export const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<DOMRefValue<HTMLElement>>>;
347
375
  export interface ProviderProps extends UnsafeStyles {
348
376
  /** The content of the Provider. */
349
377
  children: ReactNode;
@@ -391,7 +419,7 @@ interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | '
391
419
  /**
392
420
  * A popover is an overlay element positioned relative to a trigger.
393
421
  */
394
- export let Popover: ForwardRefExoticComponent<PopoverDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
422
+ export const Popover: ForwardRefExoticComponent<PopoverDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
395
423
  export interface MenuTriggerProps extends _MenuTriggerProps1 {
396
424
  /**
397
425
  * Alignment of the menu relative to the trigger.
@@ -423,12 +451,14 @@ export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style'
423
451
  * The contents of the collection.
424
452
  */
425
453
  children?: ReactNode | ((item: T) => ReactNode);
454
+ /** Hides the default link out icons on menu items that open links in a new tab. */
455
+ hideLinkOutIcon?: boolean;
426
456
  }
427
457
  export const MenuContext: Context<ContextValue<MenuProps<any>, DOMRefValue<HTMLDivElement>>>;
428
458
  /**
429
459
  * Menus display a list of actions or options that a user can choose.
430
460
  */
431
- export let Menu: <T extends object>(props: MenuProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
461
+ export const Menu: <T extends object>(props: MenuProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
432
462
  export interface MenuSectionProps<T extends object> extends _MenuSectionProps1<T> {
433
463
  }
434
464
  export function MenuSection<T extends object>(props: MenuSectionProps<T>): JSX.Element;
@@ -454,7 +484,7 @@ export const ActionMenuContext: Context<ContextValue<ActionMenuProps<any>, Focus
454
484
  /**
455
485
  * ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
456
486
  */
457
- export let ActionMenu: <T extends object>(props: ActionMenuProps<T> & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => ReactElement | null;
487
+ export const ActionMenu: <T extends object>(props: ActionMenuProps<T> & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => ReactElement | null;
458
488
  interface ProgressCircleStyleProps {
459
489
  /**
460
490
  * The size of the ProgressCircle.
@@ -463,7 +493,7 @@ interface ProgressCircleStyleProps {
463
493
  */
464
494
  size?: 'S' | 'M' | 'L';
465
495
  /** The static color style to apply. Useful when the button appears over a color background. */
466
- staticColor?: 'black' | 'white';
496
+ staticColor?: 'black' | 'white' | 'auto';
467
497
  /**
468
498
  * Whether presentation is indeterminate when progress isn't known.
469
499
  */
@@ -478,14 +508,14 @@ export interface ProgressCircleProps extends Omit<_ProgressBarProps1, 'children'
478
508
  * ProgressCircles show the progression of a system operation such as downloading, uploading, or processing, in a visual way.
479
509
  * They can represent determinate or indeterminate progress.
480
510
  */
481
- export let ProgressCircle: ForwardRefExoticComponent<ProgressCircleProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
511
+ export const ProgressCircle: ForwardRefExoticComponent<ProgressCircleProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
482
512
  interface ButtonStyleProps {
483
513
  /**
484
514
  * The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button.
485
515
  *
486
516
  * @default 'primary'
487
517
  */
488
- variant?: 'primary' | 'secondary' | 'accent' | 'negative';
518
+ variant?: 'primary' | 'secondary' | 'accent' | 'negative' | 'premium' | 'genai';
489
519
  /**
490
520
  * The background style of the Button.
491
521
  *
@@ -499,7 +529,7 @@ interface ButtonStyleProps {
499
529
  */
500
530
  size?: 'S' | 'M' | 'L' | 'XL';
501
531
  /** The static color style to apply. Useful when the Button appears over a color background. */
502
- staticColor?: 'white' | 'black';
532
+ staticColor?: 'white' | 'black' | 'auto';
503
533
  }
504
534
  export interface ButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ButtonStyleProps {
505
535
  /** The content to display in the Button. */
@@ -516,11 +546,11 @@ export const LinkButtonContext: Context<ContextValue<ButtonProps, FocusableRefVa
516
546
  * They have multiple styles for various needs, and are ideal for calling attention to
517
547
  * where a user needs to do something in order to move forward in a flow.
518
548
  */
519
- export let Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
549
+ export const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
520
550
  /**
521
551
  * A LinkButton combines the functionality of a link with the appearance of a button. Useful for allowing users to navigate to another page.
522
552
  */
523
- export let LinkButton: ForwardRefExoticComponent<LinkButtonProps & RefAttributes<FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
553
+ export const LinkButton: ForwardRefExoticComponent<LinkButtonProps & RefAttributes<FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
524
554
  interface ButtonGroupStyleProps {
525
555
  /**
526
556
  * The axis the ButtonGroup should align with. Setting this to 'vertical' will prevent
@@ -557,20 +587,6 @@ export const ButtonGroupContext: Context<ContextValue<ButtonGroupContextValue, D
557
587
  * ButtonGroup handles overflow for a grouping of buttons whose actions are related to each other.
558
588
  */
559
589
  export const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
560
- export interface CloseButtonProps extends Pick<_ButtonProps1, 'isDisabled'>, StyleProps {
561
- /**
562
- * The size of the CloseButton.
563
- *
564
- * @default 'M'
565
- */
566
- size?: 'S' | 'M' | 'L' | 'XL';
567
- /** The static color style to apply. Useful when the Button appears over a color background. */
568
- staticColor?: 'white' | 'black';
569
- }
570
- /**
571
- * A CloseButton allows a user to dismiss a dialog.
572
- */
573
- export let CloseButton: ForwardRefExoticComponent<CloseButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
574
590
  export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style'>, StyleProps {
575
591
  /**
576
592
  * Whether the Dialog is dismissible.
@@ -589,7 +605,7 @@ export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style'>,
589
605
  * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.
590
606
  * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.
591
607
  */
592
- export let Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
608
+ export const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
593
609
  export interface AlertDialogProps extends DOMProps, UnsafeStyles {
594
610
  /** The [visual style](https://spectrum.adobe.com/page/alert-dialog/#Options) of the AlertDialog. */
595
611
  variant?: 'confirmation' | 'information' | 'destructive' | 'error' | 'warning';
@@ -625,7 +641,7 @@ export interface AlertDialogProps extends DOMProps, UnsafeStyles {
625
641
  /**
626
642
  * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
627
643
  */
628
- export let AlertDialog: ForwardRefExoticComponent<AlertDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
644
+ export const AlertDialog: ForwardRefExoticComponent<AlertDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
629
645
  export interface AvatarGroupProps extends UnsafeStyles, DOMProps, AriaLabelingProps, SlotProps {
630
646
  /** Avatar children of the avatar group. */
631
647
  children: ReactNode;
@@ -643,7 +659,7 @@ export const AvatarGroupContext: Context<ContextValue<AvatarGroupProps, DOMRefVa
643
659
  /**
644
660
  * An avatar group is a grouping of avatars that are related to each other.
645
661
  */
646
- export let AvatarGroup: ForwardRefExoticComponent<AvatarGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
662
+ export const AvatarGroup: ForwardRefExoticComponent<AvatarGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
647
663
  interface BadgeStyleProps {
648
664
  /**
649
665
  * The size of the badge.
@@ -673,7 +689,7 @@ export const BadgeContext: React.Context<ContextValue<Partial<BadgeProps>, DOMRe
673
689
  /**
674
690
  * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
675
691
  */
676
- export let Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
692
+ export const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
677
693
  interface BreadcrumbsStyleProps {
678
694
  /**
679
695
  * Size of the Breadcrumbs including spacing and layout.
@@ -690,13 +706,13 @@ export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'childr
690
706
  }
691
707
  export const BreadcrumbsContext: Context<ContextValue<BreadcrumbsProps<any>, DOMRefValue<HTMLOListElement>>>;
692
708
  /** Breadcrumbs show hierarchy and navigational context for a user’s location within an application. */
693
- export let Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & RefAttributes<DOMRefValue<HTMLOListElement>>) => ReactElement | null;
709
+ export const Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & RefAttributes<DOMRefValue<HTMLOListElement>>) => ReactElement | null;
694
710
  export interface BreadcrumbProps extends Omit<AriaBreadcrumbItemProps, 'children' | 'style' | 'className' | 'autoFocus'>, LinkDOMProps {
695
711
  /** The children of the breadcrumb item. */
696
712
  children?: ReactNode;
697
713
  }
698
714
  /** An individual Breadcrumb for Breadcrumbs. */
699
- export let Breadcrumb: (props: BreadcrumbProps & RefAttributes<DOMRefValue<HTMLLIElement>>) => ReactElement | null;
715
+ export const Breadcrumb: (props: BreadcrumbProps & RefAttributes<DOMRefValue<HTMLLIElement>>) => ReactElement | null;
700
716
  interface CardRenderProps {
701
717
  /** The size of the Card. */
702
718
  size: 'XS' | 'S' | 'M' | 'L' | 'XL';
@@ -770,6 +786,8 @@ export interface CardViewProps<T> extends Omit<GridListProps<T>, 'layout' | 'key
770
786
  onLoadMore?: () => void;
771
787
  /** Spectrum-defined styles, returned by the `style()` macro. */
772
788
  styles?: StylesPropWithHeight;
789
+ /** Provides the ActionBar to render when cards are selected in the CardView. */
790
+ renderActionBar?: (selectedKeys: 'all' | Set<Key>) => ReactElement;
773
791
  }
774
792
  export const CardViewContext: Context<ContextValue<CardViewProps<any>, DOMRefValue<HTMLDivElement>>>;
775
793
  export const CardView: <T extends object>(props: CardViewProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
@@ -803,7 +821,7 @@ export const ContextualHelpContext: Context<ContextValue<ContextualHelpProps, Fo
803
821
  /**
804
822
  * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
805
823
  */
806
- export let ContextualHelp: ForwardRefExoticComponent<ContextualHelpProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
824
+ export const ContextualHelp: ForwardRefExoticComponent<ContextualHelpProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
807
825
  export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
808
826
  /**
809
827
  * The size of the Checkboxes in the CheckboxGroup.
@@ -831,14 +849,14 @@ export const CheckboxGroupContext: Context<ContextValue<CheckboxGroupProps, DOMR
831
849
  /**
832
850
  * A CheckboxGroup allows users to select one or more items from a list of choices.
833
851
  */
834
- export let CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
852
+ export const CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
835
853
  export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style'>, StyleProps {
836
854
  }
837
855
  export const ColorAreaContext: Context<ContextValue<ColorAreaProps, DOMRefValue<HTMLDivElement>>>;
838
856
  /**
839
857
  * A ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
840
858
  */
841
- export let ColorArea: ForwardRefExoticComponent<ColorAreaProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
859
+ export const ColorArea: ForwardRefExoticComponent<ColorAreaProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
842
860
  export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
843
861
  /**
844
862
  * The size of the color field.
@@ -859,7 +877,7 @@ export const ColorSliderContext: Context<ContextValue<ColorSliderProps, DOMRefVa
859
877
  /**
860
878
  * A ColorSlider allows users to adjust an individual channel of a color value.
861
879
  */
862
- export let ColorSlider: ForwardRefExoticComponent<ColorSliderProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
880
+ export const ColorSlider: ForwardRefExoticComponent<ColorSliderProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
863
881
  export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style'>, UnsafeStyles {
864
882
  /**
865
883
  * The size of the ColorSwatch.
@@ -878,7 +896,7 @@ export const ColorSwatchContext: Context<ContextValue<ColorSwatchProps, DOMRefVa
878
896
  /**
879
897
  * A ColorSwatch displays a preview of a selected color.
880
898
  */
881
- export let ColorSwatch: ForwardRefExoticComponent<ColorSwatchProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
899
+ export const ColorSwatch: ForwardRefExoticComponent<ColorSwatchProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
882
900
  export interface ColorSwatchPickerProps extends ValueBase<string | Color, Color>, StyleProps, SlotProps {
883
901
  /** The ColorSwatches within the ColorSwatchPicker. */
884
902
  children: ReactNode;
@@ -902,7 +920,7 @@ export const ColorSwatchPickerContext: Context<ContextValue<Partial<ColorSwatchP
902
920
  /**
903
921
  * A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
904
922
  */
905
- export let ColorSwatchPicker: ForwardRefExoticComponent<ColorSwatchPickerProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
923
+ export const ColorSwatchPicker: ForwardRefExoticComponent<ColorSwatchPickerProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
906
924
  export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'outerRadius' | 'innerRadius'>, StyleProps {
907
925
  /**
908
926
  * @default 192
@@ -913,7 +931,7 @@ export const ColorWheelContext: Context<ContextValue<ColorWheelProps, DOMRefValu
913
931
  /**
914
932
  * A ColorWheel allows users to adjust the hue of an HSL or HSB color value on a circular track.
915
933
  */
916
- export let ColorWheel: ForwardRefExoticComponent<ColorWheelProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
934
+ export const ColorWheel: ForwardRefExoticComponent<ColorWheelProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
917
935
  interface PickerStyleProps {
918
936
  /**
919
937
  * The size of the Picker.
@@ -949,7 +967,7 @@ export const PickerContext: React.Context<ContextValue<Partial<PickerProps<any>>
949
967
  /**
950
968
  * Pickers allow users to choose a single option from a collapsible list of options when space is limited.
951
969
  */
952
- export let Picker: <T extends object>(props: PickerProps<T> & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => React.ReactElement | null;
970
+ export const Picker: <T extends object>(props: PickerProps<T> & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => React.ReactElement | null;
953
971
  export interface PickerItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {
954
972
  children: ReactNode;
955
973
  }
@@ -987,7 +1005,7 @@ export const ComboBoxContext: Context<ContextValue<Partial<ComboBoxProps<any>>,
987
1005
  /**
988
1006
  * ComboBox allow users to choose a single option from a collapsible list of options when space is limited.
989
1007
  */
990
- export let ComboBox: <T extends object>(props: ComboBoxProps<T> & RefAttributes<TextFieldRef<HTMLInputElement>>) => ReactElement | null;
1008
+ export const ComboBox: <T extends object>(props: ComboBoxProps<T> & RefAttributes<TextFieldRef<HTMLInputElement>>) => ReactElement | null;
991
1009
  export interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {
992
1010
  children: ReactNode;
993
1011
  }
@@ -1015,7 +1033,7 @@ export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'st
1015
1033
  /**
1016
1034
  * A CustomDialog is a floating window with a custom layout.
1017
1035
  */
1018
- export let CustomDialog: ForwardRefExoticComponent<CustomDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
1036
+ export const CustomDialog: ForwardRefExoticComponent<CustomDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
1019
1037
  export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style'>, StyleProps {
1020
1038
  /**
1021
1039
  * The variant of fullscreen dialog to display.
@@ -1028,7 +1046,7 @@ export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' |
1028
1046
  /**
1029
1047
  * Takeover dialogs are large types of dialogs. They use the totality of the screen and should be used for modal experiences with complex workflows.
1030
1048
  */
1031
- export let FullscreenDialog: ForwardRefExoticComponent<FullscreenDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
1049
+ export const FullscreenDialog: ForwardRefExoticComponent<FullscreenDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
1032
1050
  export interface DialogContainerProps extends Omit<SpectrumDialogContainerProps, 'type' | 'isDismissable' | 'isKeyboardDismissDisabled'> {
1033
1051
  }
1034
1052
  /**
@@ -1073,7 +1091,7 @@ export const IllustratedMessageContext: Context<ContextValue<IllustratedMessageC
1073
1091
  * An IllustratedMessage displays an illustration and a message, usually
1074
1092
  * for an empty state or an error page.
1075
1093
  */
1076
- export let IllustratedMessage: ForwardRefExoticComponent<S2SpectrumIllustratedMessageProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1094
+ export const IllustratedMessage: ForwardRefExoticComponent<S2SpectrumIllustratedMessageProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1077
1095
  export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'style' | 'children' | 'isDisabled' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, UnsafeStyles, DOMProps {
1078
1096
  /** Spectrum-defined styles, returned by the `style()` macro. */
1079
1097
  styles?: StylesPropWithHeight;
@@ -1094,7 +1112,7 @@ export const DropZoneContext: Context<ContextValue<DropZoneProps, DOMRefValue<HT
1094
1112
  /**
1095
1113
  * A drop zone is an area into which one or multiple objects can be dragged and dropped.
1096
1114
  */
1097
- export let DropZone: ForwardRefExoticComponent<DropZoneProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1115
+ export const DropZone: ForwardRefExoticComponent<DropZoneProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1098
1116
  export interface InlineAlertProps extends DOMProps, StyleProps, InlineStylesProps, SlotProps {
1099
1117
  /**
1100
1118
  * The contents of the Inline Alert.
@@ -1130,7 +1148,7 @@ interface LinkStyleProps {
1130
1148
  */
1131
1149
  variant?: 'primary' | 'secondary';
1132
1150
  /** The static color style to apply. Useful when the link appears over a color background. */
1133
- staticColor?: 'white' | 'black';
1151
+ staticColor?: 'white' | 'black' | 'auto';
1134
1152
  /** Whether the link is on its own vs inside a longer string of text. */
1135
1153
  isStandalone?: boolean;
1136
1154
  /** Whether the link should be displayed with a quiet style. */
@@ -1159,7 +1177,7 @@ interface MeterStyleProps {
1159
1177
  /**
1160
1178
  * The static color style to apply. Useful when the button appears over a color background.
1161
1179
  */
1162
- staticColor?: 'white' | 'black';
1180
+ staticColor?: 'white' | 'black' | 'auto';
1163
1181
  /**
1164
1182
  * The label's overall position relative to the element it is labeling.
1165
1183
  * @default 'top'
@@ -1175,7 +1193,7 @@ export const MeterContext: Context<ContextValue<MeterProps, DOMRefValue<HTMLDivE
1175
1193
  * Meters are visual representations of a quantity or an achievement.
1176
1194
  * Their progress is determined by user actions, rather than system actions.
1177
1195
  */
1178
- export let Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1196
+ export const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1179
1197
  interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
1180
1198
  /**
1181
1199
  * Whether to hide the increment and decrement buttons.
@@ -1193,7 +1211,7 @@ export const NumberFieldContext: Context<ContextValue<NumberFieldProps, TextFiel
1193
1211
  /**
1194
1212
  * NumberFields allow users to input number values with a keyboard or increment/decrement with step buttons.
1195
1213
  */
1196
- export let NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1214
+ export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1197
1215
  interface ProgressBarStyleProps {
1198
1216
  /**
1199
1217
  * The size of the ProgressBar.
@@ -1208,7 +1226,7 @@ interface ProgressBarStyleProps {
1208
1226
  /**
1209
1227
  * The static color style to apply. Useful when the button appears over a color background.
1210
1228
  */
1211
- staticColor?: 'white' | 'black';
1229
+ staticColor?: 'white' | 'black' | 'auto';
1212
1230
  /**
1213
1231
  * The label's overall position relative to the element it is labeling.
1214
1232
  * @default 'top'
@@ -1235,7 +1253,7 @@ export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | '
1235
1253
  * Radio buttons allow users to select a single option from a list of mutually exclusive options.
1236
1254
  * All possible options are exposed up front for users to compare.
1237
1255
  */
1238
- export let Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
1256
+ export const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
1239
1257
  export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
1240
1258
  /**
1241
1259
  * The Radios contained within the RadioGroup.
@@ -1263,7 +1281,7 @@ export const RadioGroupContext: React.Context<ContextValue<RadioGroupProps, DOMR
1263
1281
  * Radio groups allow users to select a single option from a list of mutually exclusive options.
1264
1282
  * All possible options are exposed up front for users to compare.
1265
1283
  */
1266
- export let RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
1284
+ export const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
1267
1285
  interface SliderBaseProps<T> extends Omit<_SliderProps1<T>, 'children' | 'style' | 'className' | 'orientation'>, Omit<SpectrumLabelableProps, 'necessityIndicator' | 'isRequired'>, StyleProps {
1268
1286
  children?: ReactNode;
1269
1287
  /**
@@ -1296,7 +1314,7 @@ export interface SliderProps extends Omit<SliderBaseProps<number>, 'children'>,
1296
1314
  fillOffset?: number;
1297
1315
  }
1298
1316
  export const SliderContext: Context<ContextValue<SliderProps, FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1299
- export let Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1317
+ export const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1300
1318
  export interface RangeSliderProps extends Omit<SliderBaseProps<RangeValue<number>>, 'children'> {
1301
1319
  /**
1302
1320
  * The name of the start input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
@@ -1308,7 +1326,7 @@ export interface RangeSliderProps extends Omit<SliderBaseProps<RangeValue<number
1308
1326
  endName?: string;
1309
1327
  }
1310
1328
  export const RangeSliderContext: Context<ContextValue<RangeSliderProps, FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1311
- export let RangeSlider: ForwardRefExoticComponent<RangeSliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1329
+ export const RangeSlider: ForwardRefExoticComponent<RangeSliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
1312
1330
  export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
1313
1331
  /**
1314
1332
  * The size of the SearchField.
@@ -1321,7 +1339,7 @@ export const SearchFieldContext: Context<ContextValue<SearchFieldProps, TextFiel
1321
1339
  /**
1322
1340
  * A SearchField is a text field designed for searches.
1323
1341
  */
1324
- export let SearchField: ForwardRefExoticComponent<SearchFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1342
+ export const SearchField: ForwardRefExoticComponent<SearchFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1325
1343
  export interface SegmentedControlProps extends AriaLabelingProps, StyleProps, SlotProps {
1326
1344
  /**
1327
1345
  * The content to display in the segmented control.
@@ -1351,14 +1369,14 @@ export interface SegmentedControlItemProps extends AriaLabelingProps, StyleProps
1351
1369
  isDisabled?: boolean;
1352
1370
  }
1353
1371
  export const SegmentedControlContext: Context<ContextValue<SegmentedControlProps, DOMRefValue<HTMLDivElement>>>;
1354
- /**
1355
- * A SegmentedControlItem represents an option within a SegmentedControl.
1356
- */
1357
- export const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
1358
1372
  /**
1359
1373
  * A SegmentedControl is a mutually exclusive group of buttons used for view switching.
1360
1374
  */
1361
1375
  export const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1376
+ /**
1377
+ * A SegmentedControlItem represents an option within a SegmentedControl.
1378
+ */
1379
+ export const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
1362
1380
  export interface SkeletonCollectionProps {
1363
1381
  children: () => ReactNode;
1364
1382
  }
@@ -1396,7 +1414,7 @@ export const StatusLightContext: Context<ContextValue<StatusLightProps, DOMRefVa
1396
1414
  * Status lights are used to color code categories and labels commonly found in data visualization.
1397
1415
  * When status lights have a semantic meaning, they should use semantic variant colors.
1398
1416
  */
1399
- export let StatusLight: ForwardRefExoticComponent<StatusLightProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1417
+ export const StatusLight: ForwardRefExoticComponent<StatusLightProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1400
1418
  interface SwitchStyleProps {
1401
1419
  /**
1402
1420
  * The size of the Switch.
@@ -1417,7 +1435,7 @@ export const SwitchContext: Context<ContextValue<SwitchProps, FocusableRefValue<
1417
1435
  * Switches allow users to turn an individual option on or off.
1418
1436
  * They are usually used to activate or deactivate a specific setting.
1419
1437
  */
1420
- export let Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
1438
+ export const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
1421
1439
  interface S2TableProps {
1422
1440
  /** Whether the Table should be displayed with a quiet style. */
1423
1441
  isQuiet?: boolean;
@@ -1452,18 +1470,24 @@ interface S2TableProps {
1452
1470
  loadingState?: LoadingState;
1453
1471
  /** Handler that is called when more items should be loaded, e.g. while scrolling near the bottom. */
1454
1472
  onLoadMore?: () => any;
1473
+ /** Provides the ActionBar to display when rows are selected in the TableView. */
1474
+ renderActionBar?: (selectedKeys: 'all' | Set<_Key1>) => ReactElement;
1455
1475
  }
1456
1476
  export interface TableViewProps extends Omit<TableProps, 'style' | 'disabledBehavior' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks'>, UnsafeStyles, S2TableProps {
1457
1477
  /** Spectrum-defined styles, returned by the `style()` macro. */
1458
1478
  styles?: StylesPropWithHeight;
1459
1479
  }
1460
1480
  export const TableContext: React.Context<ContextValue<TableViewProps, DOMRefValue<HTMLDivElement>>>;
1481
+ /**
1482
+ * Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
1483
+ */
1484
+ export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
1461
1485
  export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | 'dependencies'> {
1462
1486
  }
1463
1487
  /**
1464
1488
  * The body of a `<Table>`, containing the table rows.
1465
1489
  */
1466
- export let TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1490
+ export const TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1467
1491
  export interface ColumnProps extends _ColumnProps1 {
1468
1492
  /** Whether the column should render a divider between it and the next column. */
1469
1493
  showDivider?: boolean;
@@ -1486,7 +1510,7 @@ export interface TableHeaderProps<T> extends Omit<_TableHeaderProps1<T>, 'style'
1486
1510
  /**
1487
1511
  * A header within a `<Table>`, containing the table columns.
1488
1512
  */
1489
- export let TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1513
+ export const TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1490
1514
  export interface CellProps extends _CellProps1, Pick<ColumnProps, 'align' | 'showDivider'> {
1491
1515
  /** @private */
1492
1516
  isSticky?: boolean;
@@ -1502,11 +1526,7 @@ export interface RowProps<T> extends Pick<_RowProps1<T>, 'id' | 'columns' | 'chi
1502
1526
  /**
1503
1527
  * A row within a `<Table>`.
1504
1528
  */
1505
- export let Row: <T extends object>(props: RowProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1506
- /**
1507
- * Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
1508
- */
1509
- export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
1529
+ export const Row: <T extends object>(props: RowProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
1510
1530
  export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'children'>, UnsafeStyles {
1511
1531
  /** Spectrum-defined styles, returned by the `style()` macro. */
1512
1532
  styles?: StylesPropWithHeight;
@@ -1570,9 +1590,9 @@ export interface TagGroupProps<T> extends Omit<_TagGroupProps1, 'children' | 'st
1570
1590
  }
1571
1591
  export const TagGroupContext: Context<ContextValue<TagGroupProps<any>, DOMRefValue<HTMLDivElement>>>;
1572
1592
  /** Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request. */
1573
- export let TagGroup: <T extends object>(props: TagGroupProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
1593
+ export const TagGroup: <T extends object>(props: TagGroupProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
1574
1594
  /** An individual Tag for TagGroups. */
1575
- export let Tag: (props: TagProps & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
1595
+ export const Tag: (props: TagProps & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
1576
1596
  export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
1577
1597
  /**
1578
1598
  * The size of the text field.
@@ -1587,7 +1607,7 @@ export const TextFieldContext: Context<ContextValue<TextFieldProps, TextFieldRef
1587
1607
  * with a keyboard. Various decorations can be displayed around the field to
1588
1608
  * communicate the entry requirements.
1589
1609
  */
1590
- export let TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1610
+ export const TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
1591
1611
  export interface TextAreaProps extends Omit<TextFieldProps, 'type' | 'pattern'> {
1592
1612
  }
1593
1613
  export const TextAreaContext: Context<ContextValue<TextAreaProps, TextFieldRef<HTMLTextAreaElement>>>;
@@ -1596,7 +1616,7 @@ export const TextAreaContext: Context<ContextValue<TextAreaProps, TextFieldRef<H
1596
1616
  * a sizable amount of text to enter. They allow for all customizations that
1597
1617
  * are available to text fields.
1598
1618
  */
1599
- export let TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttributes<TextFieldRef<HTMLTextAreaElement>>>;
1619
+ export const TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttributes<TextFieldRef<HTMLTextAreaElement>>>;
1600
1620
  export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className'> {
1601
1621
  /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
1602
1622
  isEmphasized?: boolean;
@@ -1617,7 +1637,7 @@ export const ToggleButtonContext: Context<ContextValue<ToggleButtonProps, Focusa
1617
1637
  * ToggleButtons allow users to toggle a selection on or off, for example
1618
1638
  * switching between two states or modes.
1619
1639
  */
1620
- export let ToggleButton: ForwardRefExoticComponent<ToggleButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
1640
+ export const ToggleButton: ForwardRefExoticComponent<ToggleButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
1621
1641
  interface TooltipTriggerProps extends Omit<TooltipTriggerComponentProps, 'children' | 'closeDelay'>, Pick<_TooltipProps1, 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset'> {
1622
1642
  /** The content of the tooltip. */
1623
1643
  children?: ReactNode;
@@ -1632,16 +1652,16 @@ export interface TooltipProps extends Omit<_TooltipProps1, 'children' | 'classNa
1632
1652
  /** The content of the tooltip. */
1633
1653
  children?: ReactNode;
1634
1654
  }
1655
+ /**
1656
+ * Display container for Tooltip content. Has a directional arrow dependent on its placement.
1657
+ */
1658
+ export const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1635
1659
  /**
1636
1660
  * TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing
1637
1661
  * the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip
1638
1662
  * relative to the trigger.
1639
1663
  */
1640
1664
  export function TooltipTrigger(props: TooltipTriggerProps): JSX.Element;
1641
- /**
1642
- * Display container for Tooltip content. Has a directional arrow dependent on its placement.
1643
- */
1644
- export let Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
1645
1665
  export { Collection } from 'react-aria-components';
1646
1666
  export { FileTrigger } from 'react-aria-components';
1647
1667
  export type { FileTriggerProps, TooltipTriggerComponentProps as TooltipTriggerProps } from 'react-aria-components';