@react-spectrum/s2 3.0.0-nightly-5ae234603-240925 → 3.0.0-nightly-d57bd8d90-240927

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 (445) hide show
  1. package/dist/Accordion.cjs.map +1 -1
  2. package/dist/Accordion.css.map +1 -1
  3. package/dist/Accordion.mjs.map +1 -1
  4. package/dist/ActionButton.cjs.map +1 -1
  5. package/dist/ActionButton.css.map +1 -1
  6. package/dist/ActionButton.mjs.map +1 -1
  7. package/dist/AlertDialog.cjs.map +1 -1
  8. package/dist/AlertDialog.css.map +1 -1
  9. package/dist/AlertDialog.mjs.map +1 -1
  10. package/dist/Avatar.cjs.map +1 -1
  11. package/dist/Avatar.css.map +1 -1
  12. package/dist/Avatar.mjs.map +1 -1
  13. package/dist/AvatarGroup.cjs.map +1 -1
  14. package/dist/AvatarGroup.css.map +1 -1
  15. package/dist/AvatarGroup.mjs.map +1 -1
  16. package/dist/Badge.cjs.map +1 -1
  17. package/dist/Badge.css.map +1 -1
  18. package/dist/Badge.mjs.map +1 -1
  19. package/dist/Breadcrumbs.cjs.map +1 -1
  20. package/dist/Breadcrumbs.css.map +1 -1
  21. package/dist/Breadcrumbs.mjs.map +1 -1
  22. package/dist/Button.cjs +39 -5
  23. package/dist/Button.cjs.map +1 -1
  24. package/dist/Button.css +64 -0
  25. package/dist/Button.css.map +1 -1
  26. package/dist/Button.mjs +39 -5
  27. package/dist/Button.mjs.map +1 -1
  28. package/dist/ButtonGroup.cjs.map +1 -1
  29. package/dist/ButtonGroup.css.map +1 -1
  30. package/dist/ButtonGroup.mjs.map +1 -1
  31. package/dist/Card.cjs +2 -2
  32. package/dist/Card.cjs.map +1 -1
  33. package/dist/Card.css.map +1 -1
  34. package/dist/Card.mjs +2 -2
  35. package/dist/Card.mjs.map +1 -1
  36. package/dist/CardView.cjs.map +1 -1
  37. package/dist/CardView.css.map +1 -1
  38. package/dist/CardView.mjs.map +1 -1
  39. package/dist/CenterBaseline.cjs.map +1 -1
  40. package/dist/CenterBaseline.css.map +1 -1
  41. package/dist/CenterBaseline.mjs.map +1 -1
  42. package/dist/Checkbox.cjs +4 -1
  43. package/dist/Checkbox.cjs.map +1 -1
  44. package/dist/Checkbox.css +4 -0
  45. package/dist/Checkbox.css.map +1 -1
  46. package/dist/Checkbox.mjs +4 -1
  47. package/dist/Checkbox.mjs.map +1 -1
  48. package/dist/CheckboxGroup.cjs.map +1 -1
  49. package/dist/CheckboxGroup.css.map +1 -1
  50. package/dist/CheckboxGroup.mjs.map +1 -1
  51. package/dist/ClearButton.cjs.map +1 -1
  52. package/dist/ClearButton.css.map +1 -1
  53. package/dist/ClearButton.mjs.map +1 -1
  54. package/dist/CloseButton.cjs.map +1 -1
  55. package/dist/CloseButton.css.map +1 -1
  56. package/dist/CloseButton.mjs.map +1 -1
  57. package/dist/ColorArea.cjs.map +1 -1
  58. package/dist/ColorArea.css.map +1 -1
  59. package/dist/ColorArea.mjs.map +1 -1
  60. package/dist/ColorField.cjs.map +1 -1
  61. package/dist/ColorField.css.map +1 -1
  62. package/dist/ColorField.mjs.map +1 -1
  63. package/dist/ColorHandle.cjs.map +1 -1
  64. package/dist/ColorHandle.css.map +1 -1
  65. package/dist/ColorHandle.mjs.map +1 -1
  66. package/dist/ColorSlider.cjs.map +1 -1
  67. package/dist/ColorSlider.css.map +1 -1
  68. package/dist/ColorSlider.mjs.map +1 -1
  69. package/dist/ColorSwatch.cjs.map +1 -1
  70. package/dist/ColorSwatch.css.map +1 -1
  71. package/dist/ColorSwatch.mjs.map +1 -1
  72. package/dist/ColorSwatchPicker.cjs.map +1 -1
  73. package/dist/ColorSwatchPicker.css.map +1 -1
  74. package/dist/ColorSwatchPicker.mjs.map +1 -1
  75. package/dist/ColorWheel.cjs.map +1 -1
  76. package/dist/ColorWheel.css.map +1 -1
  77. package/dist/ColorWheel.mjs.map +1 -1
  78. package/dist/ComboBox.cjs +3 -0
  79. package/dist/ComboBox.cjs.map +1 -1
  80. package/dist/ComboBox.css.map +1 -1
  81. package/dist/ComboBox.mjs +3 -0
  82. package/dist/ComboBox.mjs.map +1 -1
  83. package/dist/Content.cjs +0 -2
  84. package/dist/Content.cjs.map +1 -1
  85. package/dist/Content.mjs +1 -2
  86. package/dist/Content.mjs.map +1 -1
  87. package/dist/ContextualHelp.cjs.map +1 -1
  88. package/dist/ContextualHelp.css.map +1 -1
  89. package/dist/ContextualHelp.mjs.map +1 -1
  90. package/dist/Dialog.cjs +7 -5
  91. package/dist/Dialog.cjs.map +1 -1
  92. package/dist/Dialog.css.map +1 -1
  93. package/dist/Dialog.mjs +8 -6
  94. package/dist/Dialog.mjs.map +1 -1
  95. package/dist/Disclosure.cjs.map +1 -1
  96. package/dist/Disclosure.css.map +1 -1
  97. package/dist/Disclosure.mjs.map +1 -1
  98. package/dist/Divider.cjs.map +1 -1
  99. package/dist/Divider.css.map +1 -1
  100. package/dist/Divider.mjs.map +1 -1
  101. package/dist/DropZone.cjs.map +1 -1
  102. package/dist/DropZone.css.map +1 -1
  103. package/dist/DropZone.mjs.map +1 -1
  104. package/dist/Field.cjs.map +1 -1
  105. package/dist/Field.css.map +1 -1
  106. package/dist/Field.mjs.map +1 -1
  107. package/dist/Form.cjs.map +1 -1
  108. package/dist/Form.css.map +1 -1
  109. package/dist/Form.mjs.map +1 -1
  110. package/dist/IllustratedMessage.cjs.map +1 -1
  111. package/dist/IllustratedMessage.css.map +1 -1
  112. package/dist/IllustratedMessage.mjs.map +1 -1
  113. package/dist/Image.cjs.map +1 -1
  114. package/dist/Image.css.map +1 -1
  115. package/dist/Image.mjs.map +1 -1
  116. package/dist/InlineAlert.cjs.map +1 -1
  117. package/dist/InlineAlert.css.map +1 -1
  118. package/dist/InlineAlert.mjs.map +1 -1
  119. package/dist/Link.cjs.map +1 -1
  120. package/dist/Link.css.map +1 -1
  121. package/dist/Link.mjs.map +1 -1
  122. package/dist/Menu.cjs.map +1 -1
  123. package/dist/Menu.css.map +1 -1
  124. package/dist/Menu.mjs.map +1 -1
  125. package/dist/Meter.cjs.map +1 -1
  126. package/dist/Meter.css.map +1 -1
  127. package/dist/Meter.mjs.map +1 -1
  128. package/dist/Modal.cjs.map +1 -1
  129. package/dist/Modal.css.map +1 -1
  130. package/dist/Modal.mjs.map +1 -1
  131. package/dist/MoveHorizontalCircleTableWidget.cjs +33 -0
  132. package/dist/MoveHorizontalCircleTableWidget.cjs.map +1 -0
  133. package/dist/MoveHorizontalCircleTableWidget.mjs +28 -0
  134. package/dist/MoveHorizontalCircleTableWidget.mjs.map +1 -0
  135. package/dist/NumberField.cjs.map +1 -1
  136. package/dist/NumberField.css.map +1 -1
  137. package/dist/NumberField.mjs.map +1 -1
  138. package/dist/Picker.cjs +3 -0
  139. package/dist/Picker.cjs.map +1 -1
  140. package/dist/Picker.css.map +1 -1
  141. package/dist/Picker.mjs +3 -0
  142. package/dist/Picker.mjs.map +1 -1
  143. package/dist/Popover.cjs +1 -0
  144. package/dist/Popover.cjs.map +1 -1
  145. package/dist/Popover.css +4 -0
  146. package/dist/Popover.css.map +1 -1
  147. package/dist/Popover.mjs +1 -0
  148. package/dist/Popover.mjs.map +1 -1
  149. package/dist/ProgressBar.cjs.map +1 -1
  150. package/dist/ProgressBar.css.map +1 -1
  151. package/dist/ProgressBar.mjs.map +1 -1
  152. package/dist/ProgressCircle.cjs +0 -1
  153. package/dist/ProgressCircle.cjs.map +1 -1
  154. package/dist/ProgressCircle.css +0 -4
  155. package/dist/ProgressCircle.css.map +1 -1
  156. package/dist/ProgressCircle.mjs +0 -1
  157. package/dist/ProgressCircle.mjs.map +1 -1
  158. package/dist/Provider.cjs.map +1 -1
  159. package/dist/Provider.css.map +1 -1
  160. package/dist/Provider.mjs.map +1 -1
  161. package/dist/Radio.cjs.map +1 -1
  162. package/dist/Radio.css.map +1 -1
  163. package/dist/Radio.mjs.map +1 -1
  164. package/dist/RadioGroup.cjs.map +1 -1
  165. package/dist/RadioGroup.css.map +1 -1
  166. package/dist/RadioGroup.mjs.map +1 -1
  167. package/dist/SearchField.cjs.map +1 -1
  168. package/dist/SearchField.css.map +1 -1
  169. package/dist/SearchField.mjs.map +1 -1
  170. package/dist/SegmentedControl.cjs +11 -8
  171. package/dist/SegmentedControl.cjs.map +1 -1
  172. package/dist/SegmentedControl.css.map +1 -1
  173. package/dist/SegmentedControl.mjs +11 -8
  174. package/dist/SegmentedControl.mjs.map +1 -1
  175. package/dist/SkeletonCollection.cjs.map +1 -1
  176. package/dist/SkeletonCollection.mjs.map +1 -1
  177. package/dist/Slider.cjs.map +1 -1
  178. package/dist/Slider.css.map +1 -1
  179. package/dist/Slider.mjs.map +1 -1
  180. package/dist/StatusLight.cjs.map +1 -1
  181. package/dist/StatusLight.css.map +1 -1
  182. package/dist/StatusLight.mjs.map +1 -1
  183. package/dist/Switch.cjs.map +1 -1
  184. package/dist/Switch.css.map +1 -1
  185. package/dist/Switch.mjs.map +1 -1
  186. package/dist/Table.cjs +1064 -0
  187. package/dist/Table.cjs.map +1 -0
  188. package/dist/Table.css +801 -0
  189. package/dist/Table.css.map +1 -0
  190. package/dist/Table.mjs +1054 -0
  191. package/dist/Table.mjs.map +1 -0
  192. package/dist/Tabs.cjs.map +1 -1
  193. package/dist/Tabs.css.map +1 -1
  194. package/dist/Tabs.mjs.map +1 -1
  195. package/dist/TagGroup.cjs +5 -3
  196. package/dist/TagGroup.cjs.map +1 -1
  197. package/dist/TagGroup.css.map +1 -1
  198. package/dist/TagGroup.mjs +5 -3
  199. package/dist/TagGroup.mjs.map +1 -1
  200. package/dist/TextField.cjs.map +1 -1
  201. package/dist/TextField.css.map +1 -1
  202. package/dist/TextField.mjs.map +1 -1
  203. package/dist/ToggleButton.cjs +2 -1
  204. package/dist/ToggleButton.cjs.map +1 -1
  205. package/dist/ToggleButton.css.map +1 -1
  206. package/dist/ToggleButton.mjs +2 -1
  207. package/dist/ToggleButton.mjs.map +1 -1
  208. package/dist/Tooltip.cjs.map +1 -1
  209. package/dist/Tooltip.css.map +1 -1
  210. package/dist/Tooltip.mjs.map +1 -1
  211. package/dist/ar-AE.cjs +5 -0
  212. package/dist/ar-AE.cjs.map +1 -1
  213. package/dist/ar-AE.mjs +5 -0
  214. package/dist/ar-AE.mjs.map +1 -1
  215. package/dist/bg-BG.cjs +5 -0
  216. package/dist/bg-BG.cjs.map +1 -1
  217. package/dist/bg-BG.mjs +5 -0
  218. package/dist/bg-BG.mjs.map +1 -1
  219. package/dist/cs-CZ.cjs +5 -0
  220. package/dist/cs-CZ.cjs.map +1 -1
  221. package/dist/cs-CZ.mjs +5 -0
  222. package/dist/cs-CZ.mjs.map +1 -1
  223. package/dist/da-DK.cjs +5 -0
  224. package/dist/da-DK.cjs.map +1 -1
  225. package/dist/da-DK.mjs +5 -0
  226. package/dist/da-DK.mjs.map +1 -1
  227. package/dist/de-DE.cjs +5 -0
  228. package/dist/de-DE.cjs.map +1 -1
  229. package/dist/de-DE.mjs +5 -0
  230. package/dist/de-DE.mjs.map +1 -1
  231. package/dist/el-GR.cjs +5 -0
  232. package/dist/el-GR.cjs.map +1 -1
  233. package/dist/el-GR.mjs +5 -0
  234. package/dist/el-GR.mjs.map +1 -1
  235. package/dist/en-US.cjs +5 -0
  236. package/dist/en-US.cjs.map +1 -1
  237. package/dist/en-US.mjs +5 -0
  238. package/dist/en-US.mjs.map +1 -1
  239. package/dist/es-ES.cjs +5 -0
  240. package/dist/es-ES.cjs.map +1 -1
  241. package/dist/es-ES.mjs +5 -0
  242. package/dist/es-ES.mjs.map +1 -1
  243. package/dist/et-EE.cjs +5 -0
  244. package/dist/et-EE.cjs.map +1 -1
  245. package/dist/et-EE.mjs +5 -0
  246. package/dist/et-EE.mjs.map +1 -1
  247. package/dist/fi-FI.cjs +5 -0
  248. package/dist/fi-FI.cjs.map +1 -1
  249. package/dist/fi-FI.mjs +5 -0
  250. package/dist/fi-FI.mjs.map +1 -1
  251. package/dist/fr-FR.cjs +5 -0
  252. package/dist/fr-FR.cjs.map +1 -1
  253. package/dist/fr-FR.mjs +5 -0
  254. package/dist/fr-FR.mjs.map +1 -1
  255. package/dist/he-IL.cjs +5 -0
  256. package/dist/he-IL.cjs.map +1 -1
  257. package/dist/he-IL.mjs +5 -0
  258. package/dist/he-IL.mjs.map +1 -1
  259. package/dist/hr-HR.cjs +5 -0
  260. package/dist/hr-HR.cjs.map +1 -1
  261. package/dist/hr-HR.mjs +5 -0
  262. package/dist/hr-HR.mjs.map +1 -1
  263. package/dist/hu-HU.cjs +5 -0
  264. package/dist/hu-HU.cjs.map +1 -1
  265. package/dist/hu-HU.mjs +5 -0
  266. package/dist/hu-HU.mjs.map +1 -1
  267. package/dist/it-IT.cjs +5 -0
  268. package/dist/it-IT.cjs.map +1 -1
  269. package/dist/it-IT.mjs +5 -0
  270. package/dist/it-IT.mjs.map +1 -1
  271. package/dist/ja-JP.cjs +5 -0
  272. package/dist/ja-JP.cjs.map +1 -1
  273. package/dist/ja-JP.mjs +5 -0
  274. package/dist/ja-JP.mjs.map +1 -1
  275. package/dist/ko-KR.cjs +5 -0
  276. package/dist/ko-KR.cjs.map +1 -1
  277. package/dist/ko-KR.mjs +5 -0
  278. package/dist/ko-KR.mjs.map +1 -1
  279. package/dist/lt-LT.cjs +5 -0
  280. package/dist/lt-LT.cjs.map +1 -1
  281. package/dist/lt-LT.mjs +5 -0
  282. package/dist/lt-LT.mjs.map +1 -1
  283. package/dist/lv-LV.cjs +5 -0
  284. package/dist/lv-LV.cjs.map +1 -1
  285. package/dist/lv-LV.mjs +5 -0
  286. package/dist/lv-LV.mjs.map +1 -1
  287. package/dist/main.cjs +11 -0
  288. package/dist/main.cjs.map +1 -1
  289. package/dist/module.mjs +5 -1
  290. package/dist/module.mjs.map +1 -1
  291. package/dist/nb-NO.cjs +5 -0
  292. package/dist/nb-NO.cjs.map +1 -1
  293. package/dist/nb-NO.mjs +5 -0
  294. package/dist/nb-NO.mjs.map +1 -1
  295. package/dist/nl-NL.cjs +5 -0
  296. package/dist/nl-NL.cjs.map +1 -1
  297. package/dist/nl-NL.mjs +5 -0
  298. package/dist/nl-NL.mjs.map +1 -1
  299. package/dist/pl-PL.cjs +5 -0
  300. package/dist/pl-PL.cjs.map +1 -1
  301. package/dist/pl-PL.mjs +5 -0
  302. package/dist/pl-PL.mjs.map +1 -1
  303. package/dist/pt-BR.cjs +5 -0
  304. package/dist/pt-BR.cjs.map +1 -1
  305. package/dist/pt-BR.mjs +5 -0
  306. package/dist/pt-BR.mjs.map +1 -1
  307. package/dist/pt-PT.cjs +5 -0
  308. package/dist/pt-PT.cjs.map +1 -1
  309. package/dist/pt-PT.mjs +5 -0
  310. package/dist/pt-PT.mjs.map +1 -1
  311. package/dist/ro-RO.cjs +5 -0
  312. package/dist/ro-RO.cjs.map +1 -1
  313. package/dist/ro-RO.mjs +5 -0
  314. package/dist/ro-RO.mjs.map +1 -1
  315. package/dist/ru-RU.cjs +5 -0
  316. package/dist/ru-RU.cjs.map +1 -1
  317. package/dist/ru-RU.mjs +5 -0
  318. package/dist/ru-RU.mjs.map +1 -1
  319. package/dist/sk-SK.cjs +5 -0
  320. package/dist/sk-SK.cjs.map +1 -1
  321. package/dist/sk-SK.mjs +5 -0
  322. package/dist/sk-SK.mjs.map +1 -1
  323. package/dist/sl-SI.cjs +5 -0
  324. package/dist/sl-SI.cjs.map +1 -1
  325. package/dist/sl-SI.mjs +5 -0
  326. package/dist/sl-SI.mjs.map +1 -1
  327. package/dist/sr-SP.cjs +5 -0
  328. package/dist/sr-SP.cjs.map +1 -1
  329. package/dist/sr-SP.mjs +5 -0
  330. package/dist/sr-SP.mjs.map +1 -1
  331. package/dist/sv-SE.cjs +5 -0
  332. package/dist/sv-SE.cjs.map +1 -1
  333. package/dist/sv-SE.mjs +5 -0
  334. package/dist/sv-SE.mjs.map +1 -1
  335. package/dist/tr-TR.cjs +5 -0
  336. package/dist/tr-TR.cjs.map +1 -1
  337. package/dist/tr-TR.mjs +5 -0
  338. package/dist/tr-TR.mjs.map +1 -1
  339. package/dist/types.d.ts +136 -30
  340. package/dist/types.d.ts.map +1 -1
  341. package/dist/uk-UA.cjs +5 -0
  342. package/dist/uk-UA.cjs.map +1 -1
  343. package/dist/uk-UA.mjs +5 -0
  344. package/dist/uk-UA.mjs.map +1 -1
  345. package/dist/utils.cjs +30 -0
  346. package/dist/utils.cjs.map +1 -0
  347. package/dist/utils.mjs +25 -0
  348. package/dist/utils.mjs.map +1 -0
  349. package/dist/zh-CN.cjs +5 -0
  350. package/dist/zh-CN.cjs.map +1 -1
  351. package/dist/zh-CN.mjs +5 -0
  352. package/dist/zh-CN.mjs.map +1 -1
  353. package/dist/zh-TW.cjs +5 -0
  354. package/dist/zh-TW.cjs.map +1 -1
  355. package/dist/zh-TW.mjs +5 -0
  356. package/dist/zh-TW.mjs.map +1 -1
  357. package/icons/Skeleton.cjs.map +1 -1
  358. package/icons/Skeleton.css.map +1 -1
  359. package/icons/Skeleton.mjs.map +1 -1
  360. package/package.json +18 -16
  361. package/src/Accordion.tsx +2 -2
  362. package/src/ActionButton.tsx +3 -3
  363. package/src/AlertDialog.tsx +1 -1
  364. package/src/Avatar.tsx +1 -1
  365. package/src/AvatarGroup.tsx +1 -1
  366. package/src/Badge.tsx +1 -1
  367. package/src/Breadcrumbs.tsx +2 -2
  368. package/src/Button.tsx +41 -19
  369. package/src/ButtonGroup.tsx +1 -1
  370. package/src/Card.tsx +7 -7
  371. package/src/CardView.tsx +2 -2
  372. package/src/CenterBaseline.tsx +1 -1
  373. package/src/Checkbox.tsx +3 -2
  374. package/src/CheckboxGroup.tsx +1 -1
  375. package/src/ClearButton.tsx +1 -1
  376. package/src/CloseButton.tsx +2 -2
  377. package/src/ColorArea.tsx +1 -1
  378. package/src/ColorField.tsx +1 -1
  379. package/src/ColorHandle.tsx +1 -1
  380. package/src/ColorSlider.tsx +1 -1
  381. package/src/ColorSwatch.tsx +3 -3
  382. package/src/ColorSwatchPicker.tsx +5 -5
  383. package/src/ColorWheel.tsx +1 -1
  384. package/src/ComboBox.tsx +7 -4
  385. package/src/Content.tsx +1 -3
  386. package/src/ContextualHelp.tsx +1 -1
  387. package/src/Dialog.tsx +4 -3
  388. package/src/Disclosure.tsx +4 -4
  389. package/src/Divider.tsx +1 -1
  390. package/src/DropZone.tsx +1 -1
  391. package/src/Field.tsx +2 -2
  392. package/src/Form.tsx +1 -1
  393. package/src/IllustratedMessage.tsx +1 -1
  394. package/src/Image.tsx +1 -1
  395. package/src/InlineAlert.tsx +2 -2
  396. package/src/Link.tsx +2 -2
  397. package/src/Menu.tsx +2 -2
  398. package/src/Meter.tsx +1 -1
  399. package/src/Modal.tsx +1 -1
  400. package/src/NumberField.tsx +2 -2
  401. package/src/Picker.tsx +7 -4
  402. package/src/Popover.tsx +5 -2
  403. package/src/ProgressBar.tsx +1 -1
  404. package/src/ProgressCircle.tsx +7 -5
  405. package/src/Provider.tsx +1 -1
  406. package/src/Radio.tsx +2 -2
  407. package/src/RadioGroup.tsx +1 -1
  408. package/src/SearchField.tsx +1 -1
  409. package/src/SegmentedControl.tsx +32 -22
  410. package/src/Skeleton.tsx +4 -1
  411. package/src/SkeletonCollection.tsx +4 -0
  412. package/src/Slider.tsx +2 -2
  413. package/src/StatusLight.tsx +1 -1
  414. package/src/Switch.tsx +2 -2
  415. package/src/Table.tsx +1063 -48
  416. package/src/Tabs.tsx +3 -3
  417. package/src/TagGroup.tsx +5 -4
  418. package/src/TextField.tsx +1 -1
  419. package/src/ToggleButton.tsx +3 -2
  420. package/src/Tooltip.tsx +1 -1
  421. package/src/index.ts +4 -0
  422. package/src/style-utils.ts +0 -10
  423. package/src/utils.ts +28 -0
  424. package/style/__tests__/mergeStyles.test.js +32 -0
  425. package/style/__tests__/style-macro.test.js +128 -0
  426. package/style/dist/main.cjs +38 -0
  427. package/style/dist/main.cjs.map +1 -0
  428. package/style/dist/module.mjs +26 -0
  429. package/style/dist/module.mjs.map +1 -0
  430. package/style/dist/spectrum-theme.cjs +1989 -0
  431. package/style/dist/spectrum-theme.cjs.map +1 -0
  432. package/style/dist/spectrum-theme.mjs +1978 -0
  433. package/style/dist/spectrum-theme.mjs.map +1 -0
  434. package/style/dist/style-macro.cjs +544 -0
  435. package/style/dist/style-macro.cjs.map +1 -0
  436. package/style/dist/style-macro.mjs +534 -0
  437. package/style/dist/style-macro.mjs.map +1 -0
  438. package/style/dist/types.d.ts +791 -0
  439. package/style/dist/types.d.ts.map +1 -0
  440. package/style/index.ts +24 -0
  441. package/style/runtime.ts +103 -0
  442. package/style/spectrum-theme.ts +980 -0
  443. package/style/style-macro.ts +638 -0
  444. package/style/tokens.ts +68 -0
  445. package/style/types.ts +178 -0
package/src/Card.tsx CHANGED
@@ -21,11 +21,11 @@ import {createContext, CSSProperties, forwardRef, ReactNode, useContext} from 'r
21
21
  import {DividerContext} from './Divider';
22
22
  import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
23
23
  import {filterDOMProps} from '@react-aria/utils';
24
- import {focusRing, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
24
+ import {focusRing, lightDark, size, style} from '../style' with {type: 'macro'};
25
+ import {getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
25
26
  import {IllustrationContext} from './Icon';
26
27
  import {ImageContext} from './Image';
27
28
  import {ImageCoordinator} from './ImageCoordinator';
28
- import {lightDark, size, style} from '../style/spectrum-theme' with {type: 'macro'};
29
29
  import {mergeStyles} from '../style/runtime';
30
30
  import {pressScale} from './pressScale';
31
31
  import {SkeletonContext, SkeletonWrapper, useIsSkeleton} from './Skeleton';
@@ -37,7 +37,7 @@ interface CardRenderProps {
37
37
  size: 'XS' | 'S' | 'M' | 'L' | 'XL'
38
38
  }
39
39
 
40
- export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children'>, StyleProps {
40
+ export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd'>, StyleProps {
41
41
  /** The children of the Card. */
42
42
  children: ReactNode | ((renderProps: CardRenderProps) => ReactNode),
43
43
  /**
@@ -419,7 +419,7 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
419
419
  return (
420
420
  <div
421
421
  {...filterDOMProps(otherProps)}
422
- id={String(id)}
422
+ id={id != null ? String(id) : undefined}
423
423
  // @ts-ignore - React < 19 compat
424
424
  inert={isSkeleton ? 'true' : undefined}
425
425
  ref={domRef}
@@ -438,9 +438,9 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
438
438
  {...props}
439
439
  ref={domRef}
440
440
  className={renderProps => UNSAFE_className + card({...renderProps, isCardView: true, isLink: !!props.href, size, density, variant}, styles)}
441
- style={renderProps =>
441
+ style={renderProps =>
442
442
  // Only the preview in quiet cards scales down on press
443
- variant === 'quiet' ? UNSAFE_style : press(renderProps)
443
+ variant === 'quiet' ? UNSAFE_style : press(renderProps)
444
444
  }>
445
445
  {({selectionMode, selectionBehavior, isHovered, isFocusVisible, isSelected, isPressed}) => (
446
446
  <InternalCardContext.Provider value={{size, isQuiet, isCheckboxSelection: selectionMode !== 'none' && selectionBehavior === 'toggle', isHovered, isFocusVisible, isSelected, isPressed}}>
@@ -466,7 +466,7 @@ function SelectionIndicator() {
466
466
  className={selectionIndicator({
467
467
  size,
468
468
  isSelected,
469
- // Add an inner stroke only for quiet cards with no checkbox to
469
+ // Add an inner stroke only for quiet cards with no checkbox to
470
470
  // help distinguish the selected state from the preview.
471
471
  isStrokeInner: isQuiet && !isCheckboxSelection
472
472
  })} />
package/src/CardView.tsx CHANGED
@@ -19,11 +19,11 @@ import {
19
19
  } from 'react-aria-components';
20
20
  import {CardContext, CardViewContext} from './Card';
21
21
  import {DOMRef, forwardRefType, Key, LayoutDelegate, LoadingState, Node} from '@react-types/shared';
22
- import {focusRing, getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
22
+ import {focusRing, style} from '../style' with {type: 'macro'};
23
23
  import {forwardRef, useMemo, useState} from 'react';
24
+ import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
24
25
  import {ImageCoordinator} from './ImageCoordinator';
25
26
  import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately/virtualizer';
26
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
27
27
  import {useDOMRef} from '@react-spectrum/utils';
28
28
  import {useEffectEvent, useLayoutEffect, useLoadMore, useResizeObserver} from '@react-aria/utils';
29
29
 
@@ -13,7 +13,7 @@
13
13
  import {CSSProperties, ReactNode} from 'react';
14
14
  import {mergeStyles} from '../style/runtime';
15
15
  import {raw} from '../style/style-macro' with {type: 'macro'};
16
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
16
+ import {style} from '../style' with {type: 'macro'};
17
17
  import {StyleString} from '../style/types';
18
18
 
19
19
  interface CenterBaselineProps {
package/src/Checkbox.tsx CHANGED
@@ -11,14 +11,14 @@
11
11
  */
12
12
 
13
13
  import {Checkbox as AriaCheckbox, CheckboxProps as AriaCheckboxProps, CheckboxGroupStateContext, CheckboxRenderProps, ContextValue, useSlottedContext} from 'react-aria-components';
14
- import {baseColor, style} from '../style/spectrum-theme' with {type: 'macro'};
14
+ import {baseColor, focusRing, style} from '../style' with {type: 'macro'};
15
15
  import {CenterBaseline} from './CenterBaseline';
16
16
  import CheckmarkIcon from '../ui-icons/Checkmark';
17
17
  import {createContext, forwardRef, ReactNode, useContext, useRef} from 'react';
18
18
  import DashIcon from '../ui-icons/Dash';
19
19
  import {FocusableRef, FocusableRefValue} from '@react-types/shared';
20
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
21
20
  import {FormContext, useFormProps} from './Form';
21
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
22
22
  import {pressScale} from './pressScale';
23
23
  import {useFocusableRef} from '@react-spectrum/utils';
24
24
  import {useSpectrumContextProps} from './useSpectrumContextProps';
@@ -78,6 +78,7 @@ export const box = style<RenderProps>({
78
78
  forcedColorAdjust: 'none',
79
79
  backgroundColor: {
80
80
  default: 'gray-25',
81
+ forcedColors: 'Background',
81
82
  isSelected: {
82
83
  default: 'neutral',
83
84
  isEmphasized: baseColor('accent-900'),
@@ -21,7 +21,7 @@ import {DOMRef, DOMRefValue, HelpTextProps, Orientation, SpectrumLabelableProps}
21
21
  import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
22
22
  import {FieldLabel, HelpText} from './Field';
23
23
  import {FormContext, useFormProps} from './Form';
24
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
24
+ import {style} from '../style' with {type: 'macro'};
25
25
  import {useDOMRef} from '@react-spectrum/utils';
26
26
  import {useSpectrumContextProps} from './useSpectrumContextProps';
27
27
 
@@ -18,7 +18,7 @@ import {
18
18
  import CrossIcon from '../ui-icons/Cross';
19
19
  import {FocusableRef} from '@react-types/shared';
20
20
  import {forwardRef} from 'react';
21
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
21
+ import {style} from '../style' with {type: 'macro'};
22
22
  import {useFocusableRef} from '@react-spectrum/utils';
23
23
 
24
24
  interface ClearButtonStyleProps {
@@ -10,12 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {baseColor, style} from '../style/spectrum-theme' with {type: 'macro'};
13
+ import {baseColor, focusRing, style} from '../style' with {type: 'macro'};
14
14
  import {Button, ButtonProps} from 'react-aria-components';
15
15
  import CrossIcon from '../ui-icons/Cross';
16
16
  import {FocusableRef} from '@react-types/shared';
17
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
18
17
  import {forwardRef} from 'react';
18
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
19
19
  import {pressScale} from './pressScale';
20
20
  import {useFocusableRef} from '@react-spectrum/utils';
21
21
 
package/src/ColorArea.tsx CHANGED
@@ -19,7 +19,7 @@ import {ColorHandle} from './ColorHandle';
19
19
  import {createContext, forwardRef} from 'react';
20
20
  import {DOMRef, DOMRefValue} from '@react-types/shared';
21
21
  import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
22
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
22
+ import {style} from '../style' with {type: 'macro'};
23
23
  import {useDOMRef} from '@react-spectrum/utils';
24
24
  import {useSpectrumContextProps} from './useSpectrumContextProps';
25
25
 
@@ -21,7 +21,7 @@ import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type:
21
21
  import {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';
22
22
  import {FormContext, useFormProps} from './Form';
23
23
  import {HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';
24
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
24
+ import {style} from '../style' with {type: 'macro'};
25
25
  import {TextFieldRef} from '@react-types/textfield';
26
26
  import {useSpectrumContextProps} from './useSpectrumContextProps';
27
27
 
@@ -14,7 +14,7 @@ import {cloneElement, JSX, RefObject, useState} from 'react';
14
14
  import {ColorThumb} from 'react-aria-components';
15
15
  import {createPortal} from 'react-dom';
16
16
  import {keyframes} from '../style/style-macro' with {type: 'macro'};
17
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
17
+ import {style} from '../style' with {type: 'macro'};
18
18
  import {useId, useLayoutEffect} from '@react-aria/utils';
19
19
 
20
20
  const HANDLE_SIZE = 16;
@@ -23,7 +23,7 @@ import {createContext, forwardRef, useRef} from 'react';
23
23
  import {DOMRef, DOMRefValue, SpectrumLabelableProps} from '@react-types/shared';
24
24
  import {FieldLabel} from './Field';
25
25
  import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
26
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
26
+ import {style} from '../style' with {type: 'macro'};
27
27
  import {useDOMRef} from '@react-spectrum/utils';
28
28
  import {useSpectrumContextProps} from './useSpectrumContextProps';
29
29
 
@@ -20,19 +20,19 @@ import {Color} from '@react-types/color';
20
20
  import {createContext, forwardRef, JSX, ReactElement, useContext, useMemo} from 'react';
21
21
  import {DOMRef, DOMRefValue} from '@react-types/shared';
22
22
  import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
23
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
23
+ import {style} from '../style' with {type: 'macro'};
24
24
  import {useDOMRef} from '@react-spectrum/utils';
25
25
  import {useSpectrumContextProps} from './useSpectrumContextProps';
26
26
 
27
27
  export interface ColorSwatchProps extends Omit<AriaColorSwatchProps, 'className' | 'style'>, UnsafeStyles {
28
28
  /**
29
29
  * The size of the ColorSwatch.
30
- * @default "M"
30
+ * @default 'M'
31
31
  */
32
32
  size?: 'XS' | 'S' | 'M' | 'L',
33
33
  /**
34
34
  * The corner rounding of the ColorSwatch.
35
- * @default "default"
35
+ * @default 'default'
36
36
  */
37
37
  rounding?: 'default' | 'none' | 'full',
38
38
  /** Spectrum-defined styles, returned by the `style()` macro. */
@@ -15,8 +15,8 @@ import {Color} from '@react-types/color';
15
15
  import {ColorSwatchProps, InternalColorSwatchContext} from './ColorSwatch';
16
16
  import {createContext, forwardRef, ReactElement, ReactNode} from 'react';
17
17
  import {DOMRef, DOMRefValue, ValueBase} from '@react-types/shared';
18
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
19
- import {size as sizeValue, style} from '../style/spectrum-theme' with {type: 'macro'};
18
+ import {focusRing, size as sizeValue, style} from '../style' with {type: 'macro'};
19
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
20
20
  import {useDOMRef} from '@react-spectrum/utils';
21
21
  import {useSpectrumContextProps} from './useSpectrumContextProps';
22
22
 
@@ -25,17 +25,17 @@ export interface ColorSwatchPickerProps extends ValueBase<string | Color, Color>
25
25
  children: ReactNode,
26
26
  /**
27
27
  * The amount of padding between the swatches.
28
- * @default "regular"
28
+ * @default 'regular'
29
29
  */
30
30
  density?: 'compact' | 'regular' | 'spacious',
31
31
  /**
32
32
  * The size of the color swatches.
33
- * @default "M"
33
+ * @default 'M'
34
34
  */
35
35
  size?: 'XS' | 'S' | 'M' | 'L',
36
36
  /**
37
37
  * The corner rounding of the color swatches.
38
- * @default "none"
38
+ * @default 'none'
39
39
  */
40
40
  rounding?: 'none' | 'default' | 'full'
41
41
  }
@@ -19,7 +19,7 @@ import {
19
19
  import {ColorHandle} from './ColorHandle';
20
20
  import {createContext, forwardRef} from 'react';
21
21
  import {DOMRef, DOMRefValue} from '@react-types/shared';
22
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
22
+ import {style} from '../style' with {type: 'macro'};
23
23
  import {StyleProps} from './style-utils';
24
24
  import {useDOMRef} from '@react-spectrum/utils';
25
25
  import {useSpectrumContextProps} from './useSpectrumContextProps';
package/src/ComboBox.tsx CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  Provider,
26
26
  SectionProps
27
27
  } from 'react-aria-components';
28
- import {baseColor, style} from '../style/spectrum-theme' with {type: 'macro'};
28
+ import {baseColor, style} from '../style' with {type: 'macro'};
29
29
  import {centerBaseline} from './CenterBaseline';
30
30
  import {
31
31
  checkmark,
@@ -63,7 +63,7 @@ export interface ComboboxStyleProps {
63
63
  /**
64
64
  * The size of the Combobox.
65
65
  *
66
- * @default "M"
66
+ * @default 'M'
67
67
  */
68
68
  size?: 'S' | 'M' | 'L' | 'XL'
69
69
  }
@@ -80,13 +80,13 @@ export interface ComboBoxProps<T extends object> extends
80
80
  /**
81
81
  * Direction the menu will render relative to the Picker.
82
82
  *
83
- * @default "bottom"
83
+ * @default 'bottom'
84
84
  */
85
85
  direction?: 'bottom' | 'top',
86
86
  /**
87
87
  * Alignment of the menu relative to the input target.
88
88
  *
89
- * @default "start"
89
+ * @default 'start'
90
90
  */
91
91
  align?: 'start' | 'end',
92
92
  /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
@@ -263,6 +263,9 @@ function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldR
263
263
  {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}
264
264
  <Button
265
265
  ref={buttonRef}
266
+ // Prevent press scale from sticking while ComboBox is open.
267
+ // @ts-ignore
268
+ isPressed={false}
266
269
  style={renderProps => pressScale(buttonRef)(renderProps)}
267
270
  className={renderProps => inputButton({
268
271
  ...renderProps,
package/src/Content.tsx CHANGED
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import {ContextValue, Keyboard as KeyboardAria, Header as RACHeader, Heading as RACHeading, TextContext as RACTextContext, SlotProps, Text as TextAria} from 'react-aria-components';
14
- import {createContext, forwardRef, ImgHTMLAttributes, ReactNode, useContext} from 'react';
14
+ import {createContext, forwardRef, ReactNode, useContext} from 'react';
15
15
  import {DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {StyleString} from '../style/types';
17
17
  import {UnsafeStyles} from './style-utils';
@@ -172,5 +172,3 @@ function Footer(props: ContentProps, ref: DOMRef) {
172
172
 
173
173
  const _Footer = forwardRef(Footer);
174
174
  export {_Footer as Footer};
175
-
176
- export const ImageContext = createContext<ContextValue<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>({});
@@ -12,7 +12,7 @@ import InfoIcon from '../s2wf-icons/S2_Icon_InfoCircle_20_N.svg';
12
12
  import intlMessages from '../intl/*.json';
13
13
  import {mergeStyles} from '../style/runtime';
14
14
  import {Popover, PopoverProps} from './Popover';
15
- import {style, size as styleSize} from '../style/spectrum-theme' with {type: 'macro'};
15
+ import {style, size as styleSize} from '../style' with {type: 'macro'};
16
16
  import {StyleProps} from './style-utils' with { type: 'macro' };
17
17
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
18
18
  import {useSpectrumContextProps} from './useSpectrumContextProps';
package/src/Dialog.tsx CHANGED
@@ -13,14 +13,15 @@
13
13
  import {PopoverProps as AriaPopoverProps, composeRenderProps, OverlayTriggerStateContext, Provider, Dialog as RACDialog, DialogProps as RACDialogProps} from 'react-aria-components';
14
14
  import {ButtonGroupContext} from './ButtonGroup';
15
15
  import {CloseButton} from './CloseButton';
16
- import {ContentContext, FooterContext, HeaderContext, HeadingContext, ImageContext} from './Content';
16
+ import {ContentContext, FooterContext, HeaderContext, HeadingContext} from './Content';
17
17
  import {createContext, forwardRef, RefObject, useContext} from 'react';
18
18
  import {DOMRef} from '@react-types/shared';
19
+ import {ImageContext} from './Image';
19
20
  // @ts-ignore
20
21
  import intlMessages from '../intl/*.json';
21
22
  import {Modal} from './Modal';
22
23
  import {Popover} from './Popover';
23
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
24
+ import {style} from '../style' with {type: 'macro'};
24
25
  import {StyleProps} from './style-utils';
25
26
  import {useDOMRef, useMediaQuery} from '@react-spectrum/utils';
26
27
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
@@ -195,7 +196,7 @@ function DialogInner(props: DialogProps & DialogContextValue & {dialogRef: RefOb
195
196
  {/* Hero image */}
196
197
  <Provider
197
198
  values={[
198
- [ImageContext, {className: image}],
199
+ [ImageContext, {styles: image}],
199
200
  [HeadingContext, {isHidden: true}],
200
201
  [HeaderContext, {isHidden: true}],
201
202
  [ContentContext, {isHidden: true}],
@@ -13,10 +13,10 @@
13
13
  import {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
14
14
  import {Button, ContextValue, DisclosureStateContext, Heading, Provider, UNSTABLE_Disclosure as RACDisclosure, UNSTABLE_DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';
15
15
  import {CenterBaseline} from './CenterBaseline';
16
- import {centerPadding, focusRing, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };
16
+ import {centerPadding, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };
17
17
  import Chevron from '../ui-icons/Chevron';
18
18
  import {filterDOMProps} from '@react-aria/utils';
19
- import {lightDark, size as sizeValue, style} from '../style/spectrum-theme' with { type: 'macro' };
19
+ import {focusRing, lightDark, size as sizeValue, style} from '../style' with { type: 'macro' };
20
20
  import React, {createContext, forwardRef, ReactNode, useContext} from 'react';
21
21
  import {useDOMRef} from '@react-spectrum/utils';
22
22
  import {useSpectrumContextProps} from './useSpectrumContextProps';
@@ -24,12 +24,12 @@ import {useSpectrumContextProps} from './useSpectrumContextProps';
24
24
  export interface DisclosureProps extends Omit<RACDisclosureProps, 'className' | 'style' | 'children'>, StyleProps {
25
25
  /**
26
26
  * The size of the disclosure.
27
- * @default "M"
27
+ * @default 'M'
28
28
  */
29
29
  size?: 'S' | 'M' | 'L' | 'XL',
30
30
  /**
31
31
  * The amount of space between the disclosures.
32
- * @default "regular"
32
+ * @default 'regular'
33
33
  */
34
34
  density?: 'compact' | 'regular' | 'spacious',
35
35
  /** Whether the disclosure should be displayed with a quiet style. */
package/src/Divider.tsx CHANGED
@@ -14,7 +14,7 @@ import {ContextValue, Separator as RACSeparator, SeparatorProps as RACSeparatorP
14
14
  import {createContext, forwardRef} from 'react';
15
15
  import {DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
17
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
17
+ import {style} from '../style' with {type: 'macro'};
18
18
  import {useDOMRef} from '@react-spectrum/utils';
19
19
  import {useSpectrumContextProps} from './useSpectrumContextProps';
20
20
 
package/src/DropZone.tsx CHANGED
@@ -17,7 +17,7 @@ import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-u
17
17
  import {IllustratedMessageContext} from './IllustratedMessage';
18
18
  // @ts-ignore
19
19
  import intlMessages from '../intl/*.json';
20
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
20
+ import {style} from '../style' with {type: 'macro'};
21
21
  import {useDOMRef} from '@react-spectrum/utils';
22
22
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
23
23
  import {useSpectrumContextProps} from './useSpectrumContextProps';
package/src/Field.tsx CHANGED
@@ -13,11 +13,11 @@
13
13
  import AlertIcon from '../s2wf-icons/S2_Icon_AlertTriangle_20_N.svg';
14
14
  import {Alignment, DOMRef, NecessityIndicator} from '@react-types/shared';
15
15
  import AsteriskIcon from '../ui-icons/Asterisk';
16
- import {baseColor, fontRelative, style} from '../style/spectrum-theme' with {type: 'macro'};
16
+ import {baseColor, focusRing, fontRelative, style} from '../style' with {type: 'macro'};
17
17
  import {CenterBaseline, centerBaseline, centerBaselineBefore} from './CenterBaseline';
18
18
  import {composeRenderProps, FieldError, FieldErrorProps, Group, GroupProps, Label, LabelProps, Provider, Input as RACInput, InputProps as RACInputProps, Text} from 'react-aria-components';
19
19
  import {ContextualHelpContext} from './ContextualHelp';
20
- import {fieldInput, fieldLabel, focusRing, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
20
+ import {fieldInput, fieldLabel, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
21
21
  import {ForwardedRef, forwardRef, ReactNode} from 'react';
22
22
  import {IconContext} from './Icon';
23
23
  // @ts-ignore
package/src/Form.tsx CHANGED
@@ -14,7 +14,7 @@ import {createContext, forwardRef, ReactNode, useContext, useMemo} from 'react';
14
14
  import {DOMRef, SpectrumLabelableProps} from '@react-types/shared';
15
15
  import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
16
16
  import {Form as RACForm, FormProps as RACFormProps} from 'react-aria-components';
17
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
17
+ import {style} from '../style' with {type: 'macro'};
18
18
  import {useDOMRef} from '@react-spectrum/utils';
19
19
  import {useIsSkeleton} from './Skeleton';
20
20
 
@@ -18,7 +18,7 @@ import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
18
18
  import {filterDOMProps} from '@react-aria/utils';
19
19
  import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
20
20
  import {IllustrationContext} from './Icon';
21
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
21
+ import {style} from '../style' with {type: 'macro'};
22
22
  import {useDOMRef} from '@react-spectrum/utils';
23
23
  import {useSpectrumContextProps} from './useSpectrumContextProps';
24
24
 
package/src/Image.tsx CHANGED
@@ -3,7 +3,7 @@ import {createContext, ForwardedRef, forwardRef, HTMLAttributeReferrerPolicy, Re
3
3
  import {DefaultImageGroup, ImageGroup} from './ImageCoordinator';
4
4
  import {loadingStyle, useIsSkeleton, useLoadingAnimation} from './Skeleton';
5
5
  import {mergeStyles} from '../style/runtime';
6
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
6
+ import {style} from '../style' with {type: 'macro'};
7
7
  import {StyleString} from '../style/types';
8
8
  import {UnsafeStyles} from './style-utils';
9
9
  import {useLayoutEffect} from '@react-aria/utils';
@@ -17,13 +17,13 @@ import {ContentContext, HeadingContext} from './Content';
17
17
  import {ContextValue, Provider, SlotProps} from 'react-aria-components';
18
18
  import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
19
19
  import {filterDOMProps} from '@react-aria/utils';
20
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
20
+ import {focusRing, style} from '../style' with {type: 'macro'};
21
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
21
22
  import {IconContext} from './Icon';
22
23
  import InfoCircle from '../s2wf-icons/S2_Icon_InfoCircle_20_N.svg';
23
24
  // @ts-ignore
24
25
  import intlMessages from '../intl/*.json';
25
26
  import NoticeSquare from '../s2wf-icons/S2_Icon_AlertDiamond_20_N.svg';
26
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
27
27
  import {useDOMRef} from '@react-spectrum/utils';
28
28
  import {useFocusRing} from 'react-aria';
29
29
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
package/src/Link.tsx CHANGED
@@ -13,9 +13,9 @@
13
13
  import {ContextValue, LinkRenderProps, Link as RACLink, LinkProps as RACLinkProps} from 'react-aria-components';
14
14
  import {createContext, forwardRef, ReactNode, useContext} from 'react';
15
15
  import {FocusableRef, FocusableRefValue} from '@react-types/shared';
16
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
16
+ import {focusRing, style} from '../style' with {type: 'macro'};
17
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
17
18
  import {SkeletonContext, useSkeletonText} from './Skeleton';
18
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
19
19
  import {useFocusableRef} from '@react-spectrum/utils';
20
20
  import {useLayoutEffect} from '@react-aria/utils';
21
21
  import {useSpectrumContextProps} from './useSpectrumContextProps';
package/src/Menu.tsx CHANGED
@@ -26,10 +26,10 @@ import {
26
26
  Separator,
27
27
  SeparatorProps
28
28
  } from 'react-aria-components';
29
- import {baseColor, edgeToText, fontRelative, size, space, style} from '../style/spectrum-theme' with {type: 'macro'};
29
+ import {baseColor, edgeToText, focusRing, fontRelative, size, space, style} from '../style' with {type: 'macro'};
30
30
  import {box, iconStyles} from './Checkbox';
31
31
  import {centerBaseline} from './CenterBaseline';
32
- import {centerPadding, focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
32
+ import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
33
33
  import CheckmarkIcon from '../ui-icons/Checkmark';
34
34
  import ChevronRightIcon from '../ui-icons/Chevron';
35
35
  import {createContext, forwardRef, JSX, ReactNode, useContext, useRef} from 'react';
package/src/Meter.tsx CHANGED
@@ -20,7 +20,7 @@ import {createContext, forwardRef, ReactNode} from 'react';
20
20
  import {DOMRef, DOMRefValue} from '@react-types/shared';
21
21
  import {FieldLabel} from './Field';
22
22
  import {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
23
- import {size, style} from '../style/spectrum-theme' with {type: 'macro'};
23
+ import {size, style} from '../style' with {type: 'macro'};
24
24
  import {SkeletonWrapper} from './Skeleton';
25
25
  import {Text} from './Content';
26
26
  import {useDOMRef} from '@react-spectrum/utils';
package/src/Modal.tsx CHANGED
@@ -16,7 +16,7 @@ import {DOMRef} from '@react-types/shared';
16
16
  import {forwardRef, MutableRefObject, useCallback, useContext} from 'react';
17
17
  import {keyframes} from '../style/style-macro' with {type: 'macro'};
18
18
  import {ModalOverlay, ModalOverlayProps, Modal as RACModal, useLocale} from 'react-aria-components';
19
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
19
+ import {style} from '../style' with {type: 'macro'};
20
20
  import {useDOMRef} from '@react-spectrum/utils';
21
21
 
22
22
  interface ModalProps extends ModalOverlayProps {
@@ -21,7 +21,7 @@ import {
21
21
  Text,
22
22
  useContextProps
23
23
  } from 'react-aria-components';
24
- import {baseColor, size, style} from '../style/spectrum-theme' with {type: 'macro'};
24
+ import {baseColor, size, style} from '../style' with {type: 'macro'};
25
25
  import {createContext, CSSProperties, ForwardedRef, forwardRef, ReactNode, Ref, useContext, useImperativeHandle, useMemo, useRef} from 'react';
26
26
  import {createFocusableRef} from '@react-spectrum/utils';
27
27
  import Dash from '../ui-icons/Dash';
@@ -49,7 +49,7 @@ export interface NumberFieldProps extends
49
49
  /**
50
50
  * The size of the NumberField.
51
51
  *
52
- * @default "M"
52
+ * @default 'M'
53
53
  */
54
54
  size?: 'S' | 'M' | 'L' | 'XL'
55
55
  }
package/src/Picker.tsx CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  SectionProps,
28
28
  SelectValue
29
29
  } from 'react-aria-components';
30
- import {baseColor, edgeToText, style} from '../style/spectrum-theme' with {type: 'macro'};
30
+ import {baseColor, edgeToText, focusRing, style} from '../style' with {type: 'macro'};
31
31
  import {centerBaseline} from './CenterBaseline';
32
32
  import {
33
33
  checkmark,
@@ -43,7 +43,7 @@ import {
43
43
  } from './Menu';
44
44
  import CheckmarkIcon from '../ui-icons/Checkmark';
45
45
  import ChevronIcon from '../ui-icons/Chevron';
46
- import {field, fieldInput, focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
46
+ import {field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
47
47
  import {
48
48
  FieldErrorIcon,
49
49
  FieldLabel,
@@ -93,13 +93,13 @@ export interface PickerProps<T extends object> extends
93
93
  /**
94
94
  * Direction the menu will render relative to the Picker.
95
95
  *
96
- * @default "bottom"
96
+ * @default 'bottom'
97
97
  */
98
98
  direction?: 'bottom' | 'top',
99
99
  /**
100
100
  * Alignment of the menu relative to the input target.
101
101
  *
102
- * @default "start"
102
+ * @default 'start'
103
103
  */
104
104
  align?: 'start' | 'end',
105
105
  /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
@@ -285,6 +285,9 @@ function Picker<T extends object>(props: PickerProps<T>, ref: FocusableRef<HTMLB
285
285
  <Button
286
286
  ref={domRef}
287
287
  style={renderProps => pressScale(domRef)(renderProps)}
288
+ // Prevent press scale from sticking while Picker is open.
289
+ // @ts-ignore
290
+ isPressed={false}
288
291
  className={renderProps => inputButton({
289
292
  ...renderProps,
290
293
  size: size,
package/src/Popover.tsx CHANGED
@@ -23,7 +23,7 @@ import {DOMRef} from '@react-types/shared';
23
23
  import {forwardRef, MutableRefObject, useCallback, useContext} from 'react';
24
24
  import {keyframes} from '../style/style-macro' with {type: 'macro'};
25
25
  import {mergeStyles} from '../style/runtime';
26
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
26
+ import {style} from '../style' with {type: 'macro'};
27
27
  import {StyleString} from '../style/types' with {type: 'macro'};
28
28
  import {useDOMRef} from '@react-spectrum/utils';
29
29
 
@@ -168,7 +168,10 @@ let popover = style({
168
168
  },
169
169
  transition: '[opacity, transform]',
170
170
  willChange: '[opacity, transform]',
171
- isolation: 'isolate'
171
+ isolation: 'isolate',
172
+ pointerEvents: {
173
+ isExiting: 'none'
174
+ }
172
175
  }, getAllowedOverrides());
173
176
  // TODO: animations and real Popover Arrow
174
177
 
@@ -22,7 +22,7 @@ import {FieldLabel} from './Field';
22
22
  import {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
23
23
  import {keyframes} from '../style/style-macro' with {type: 'macro'};
24
24
  import {mergeStyles} from '../style/runtime';
25
- import {size, style} from '../style/spectrum-theme' with {type: 'macro'};
25
+ import {size, style} from '../style' with {type: 'macro'};
26
26
  import {useDOMRef} from '@react-spectrum/utils';
27
27
  import {useSpectrumContextProps} from './useSpectrumContextProps';
28
28