@react-spectrum/s2 3.0.0-nightly-a626c2596-240926 → 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 (277) 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 +34 -4
  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 +34 -4
  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 +1 -1
  32. package/dist/Card.cjs.map +1 -1
  33. package/dist/Card.css.map +1 -1
  34. package/dist/Card.mjs +1 -1
  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.map +1 -1
  43. package/dist/Checkbox.css.map +1 -1
  44. package/dist/Checkbox.mjs.map +1 -1
  45. package/dist/CheckboxGroup.cjs.map +1 -1
  46. package/dist/CheckboxGroup.css.map +1 -1
  47. package/dist/CheckboxGroup.mjs.map +1 -1
  48. package/dist/ClearButton.cjs.map +1 -1
  49. package/dist/ClearButton.css.map +1 -1
  50. package/dist/ClearButton.mjs.map +1 -1
  51. package/dist/CloseButton.cjs.map +1 -1
  52. package/dist/CloseButton.css.map +1 -1
  53. package/dist/CloseButton.mjs.map +1 -1
  54. package/dist/ColorArea.cjs.map +1 -1
  55. package/dist/ColorArea.css.map +1 -1
  56. package/dist/ColorArea.mjs.map +1 -1
  57. package/dist/ColorField.cjs.map +1 -1
  58. package/dist/ColorField.css.map +1 -1
  59. package/dist/ColorField.mjs.map +1 -1
  60. package/dist/ColorHandle.cjs.map +1 -1
  61. package/dist/ColorHandle.css.map +1 -1
  62. package/dist/ColorHandle.mjs.map +1 -1
  63. package/dist/ColorSlider.cjs.map +1 -1
  64. package/dist/ColorSlider.css.map +1 -1
  65. package/dist/ColorSlider.mjs.map +1 -1
  66. package/dist/ColorSwatch.cjs.map +1 -1
  67. package/dist/ColorSwatch.css.map +1 -1
  68. package/dist/ColorSwatch.mjs.map +1 -1
  69. package/dist/ColorSwatchPicker.cjs.map +1 -1
  70. package/dist/ColorSwatchPicker.css.map +1 -1
  71. package/dist/ColorSwatchPicker.mjs.map +1 -1
  72. package/dist/ColorWheel.cjs.map +1 -1
  73. package/dist/ColorWheel.css.map +1 -1
  74. package/dist/ColorWheel.mjs.map +1 -1
  75. package/dist/ComboBox.cjs.map +1 -1
  76. package/dist/ComboBox.css.map +1 -1
  77. package/dist/ComboBox.mjs.map +1 -1
  78. package/dist/ContextualHelp.cjs.map +1 -1
  79. package/dist/ContextualHelp.css.map +1 -1
  80. package/dist/ContextualHelp.mjs.map +1 -1
  81. package/dist/Dialog.cjs.map +1 -1
  82. package/dist/Dialog.css.map +1 -1
  83. package/dist/Dialog.mjs.map +1 -1
  84. package/dist/Disclosure.cjs.map +1 -1
  85. package/dist/Disclosure.css.map +1 -1
  86. package/dist/Disclosure.mjs.map +1 -1
  87. package/dist/Divider.cjs.map +1 -1
  88. package/dist/Divider.css.map +1 -1
  89. package/dist/Divider.mjs.map +1 -1
  90. package/dist/DropZone.cjs.map +1 -1
  91. package/dist/DropZone.css.map +1 -1
  92. package/dist/DropZone.mjs.map +1 -1
  93. package/dist/Field.cjs.map +1 -1
  94. package/dist/Field.css.map +1 -1
  95. package/dist/Field.mjs.map +1 -1
  96. package/dist/Form.cjs.map +1 -1
  97. package/dist/Form.css.map +1 -1
  98. package/dist/Form.mjs.map +1 -1
  99. package/dist/IllustratedMessage.cjs.map +1 -1
  100. package/dist/IllustratedMessage.css.map +1 -1
  101. package/dist/IllustratedMessage.mjs.map +1 -1
  102. package/dist/Image.cjs.map +1 -1
  103. package/dist/Image.css.map +1 -1
  104. package/dist/Image.mjs.map +1 -1
  105. package/dist/InlineAlert.cjs.map +1 -1
  106. package/dist/InlineAlert.css.map +1 -1
  107. package/dist/InlineAlert.mjs.map +1 -1
  108. package/dist/Link.cjs.map +1 -1
  109. package/dist/Link.css.map +1 -1
  110. package/dist/Link.mjs.map +1 -1
  111. package/dist/Menu.cjs.map +1 -1
  112. package/dist/Menu.css.map +1 -1
  113. package/dist/Menu.mjs.map +1 -1
  114. package/dist/Meter.cjs.map +1 -1
  115. package/dist/Meter.css.map +1 -1
  116. package/dist/Meter.mjs.map +1 -1
  117. package/dist/Modal.cjs.map +1 -1
  118. package/dist/Modal.css.map +1 -1
  119. package/dist/Modal.mjs.map +1 -1
  120. package/dist/NumberField.cjs.map +1 -1
  121. package/dist/NumberField.css.map +1 -1
  122. package/dist/NumberField.mjs.map +1 -1
  123. package/dist/Picker.cjs.map +1 -1
  124. package/dist/Picker.css.map +1 -1
  125. package/dist/Picker.mjs.map +1 -1
  126. package/dist/Popover.cjs.map +1 -1
  127. package/dist/Popover.css.map +1 -1
  128. package/dist/Popover.mjs.map +1 -1
  129. package/dist/ProgressBar.cjs.map +1 -1
  130. package/dist/ProgressBar.css.map +1 -1
  131. package/dist/ProgressBar.mjs.map +1 -1
  132. package/dist/ProgressCircle.cjs +0 -1
  133. package/dist/ProgressCircle.cjs.map +1 -1
  134. package/dist/ProgressCircle.css +0 -4
  135. package/dist/ProgressCircle.css.map +1 -1
  136. package/dist/ProgressCircle.mjs +0 -1
  137. package/dist/ProgressCircle.mjs.map +1 -1
  138. package/dist/Provider.cjs.map +1 -1
  139. package/dist/Provider.css.map +1 -1
  140. package/dist/Provider.mjs.map +1 -1
  141. package/dist/Radio.cjs.map +1 -1
  142. package/dist/Radio.css.map +1 -1
  143. package/dist/Radio.mjs.map +1 -1
  144. package/dist/RadioGroup.cjs.map +1 -1
  145. package/dist/RadioGroup.css.map +1 -1
  146. package/dist/RadioGroup.mjs.map +1 -1
  147. package/dist/SearchField.cjs.map +1 -1
  148. package/dist/SearchField.css.map +1 -1
  149. package/dist/SearchField.mjs.map +1 -1
  150. package/dist/SegmentedControl.cjs +11 -8
  151. package/dist/SegmentedControl.cjs.map +1 -1
  152. package/dist/SegmentedControl.css.map +1 -1
  153. package/dist/SegmentedControl.mjs +11 -8
  154. package/dist/SegmentedControl.mjs.map +1 -1
  155. package/dist/SkeletonCollection.cjs.map +1 -1
  156. package/dist/SkeletonCollection.mjs.map +1 -1
  157. package/dist/Slider.cjs.map +1 -1
  158. package/dist/Slider.css.map +1 -1
  159. package/dist/Slider.mjs.map +1 -1
  160. package/dist/StatusLight.cjs.map +1 -1
  161. package/dist/StatusLight.css.map +1 -1
  162. package/dist/StatusLight.mjs.map +1 -1
  163. package/dist/Switch.cjs.map +1 -1
  164. package/dist/Switch.css.map +1 -1
  165. package/dist/Switch.mjs.map +1 -1
  166. package/dist/Table.cjs +61 -90
  167. package/dist/Table.cjs.map +1 -1
  168. package/dist/Table.css +36 -56
  169. package/dist/Table.css.map +1 -1
  170. package/dist/Table.mjs +61 -90
  171. package/dist/Table.mjs.map +1 -1
  172. package/dist/Tabs.cjs.map +1 -1
  173. package/dist/Tabs.css.map +1 -1
  174. package/dist/Tabs.mjs.map +1 -1
  175. package/dist/TagGroup.cjs.map +1 -1
  176. package/dist/TagGroup.css.map +1 -1
  177. package/dist/TagGroup.mjs.map +1 -1
  178. package/dist/TextField.cjs.map +1 -1
  179. package/dist/TextField.css.map +1 -1
  180. package/dist/TextField.mjs.map +1 -1
  181. package/dist/ToggleButton.cjs +2 -1
  182. package/dist/ToggleButton.cjs.map +1 -1
  183. package/dist/ToggleButton.css.map +1 -1
  184. package/dist/ToggleButton.mjs +2 -1
  185. package/dist/ToggleButton.mjs.map +1 -1
  186. package/dist/Tooltip.cjs.map +1 -1
  187. package/dist/Tooltip.css.map +1 -1
  188. package/dist/Tooltip.mjs.map +1 -1
  189. package/dist/main.cjs +3 -0
  190. package/dist/main.cjs.map +1 -1
  191. package/dist/module.mjs +3 -1
  192. package/dist/module.mjs.map +1 -1
  193. package/dist/types.d.ts +47 -30
  194. package/dist/types.d.ts.map +1 -1
  195. package/icons/Skeleton.cjs.map +1 -1
  196. package/icons/Skeleton.css.map +1 -1
  197. package/icons/Skeleton.mjs.map +1 -1
  198. package/package.json +17 -17
  199. package/src/Accordion.tsx +2 -2
  200. package/src/ActionButton.tsx +3 -3
  201. package/src/AlertDialog.tsx +1 -1
  202. package/src/Avatar.tsx +1 -1
  203. package/src/AvatarGroup.tsx +1 -1
  204. package/src/Badge.tsx +1 -1
  205. package/src/Breadcrumbs.tsx +2 -2
  206. package/src/Button.tsx +19 -5
  207. package/src/ButtonGroup.tsx +1 -1
  208. package/src/Card.tsx +6 -6
  209. package/src/CardView.tsx +2 -2
  210. package/src/CenterBaseline.tsx +1 -1
  211. package/src/Checkbox.tsx +2 -2
  212. package/src/CheckboxGroup.tsx +1 -1
  213. package/src/ClearButton.tsx +1 -1
  214. package/src/CloseButton.tsx +2 -2
  215. package/src/ColorArea.tsx +1 -1
  216. package/src/ColorField.tsx +1 -1
  217. package/src/ColorHandle.tsx +1 -1
  218. package/src/ColorSlider.tsx +1 -1
  219. package/src/ColorSwatch.tsx +3 -3
  220. package/src/ColorSwatchPicker.tsx +5 -5
  221. package/src/ColorWheel.tsx +1 -1
  222. package/src/ComboBox.tsx +4 -4
  223. package/src/ContextualHelp.tsx +1 -1
  224. package/src/Dialog.tsx +1 -1
  225. package/src/Disclosure.tsx +4 -4
  226. package/src/Divider.tsx +1 -1
  227. package/src/DropZone.tsx +1 -1
  228. package/src/Field.tsx +2 -2
  229. package/src/Form.tsx +1 -1
  230. package/src/IllustratedMessage.tsx +1 -1
  231. package/src/Image.tsx +1 -1
  232. package/src/InlineAlert.tsx +2 -2
  233. package/src/Link.tsx +2 -2
  234. package/src/Menu.tsx +2 -2
  235. package/src/Meter.tsx +1 -1
  236. package/src/Modal.tsx +1 -1
  237. package/src/NumberField.tsx +2 -2
  238. package/src/Picker.tsx +4 -4
  239. package/src/Popover.tsx +1 -1
  240. package/src/ProgressBar.tsx +1 -1
  241. package/src/ProgressCircle.tsx +7 -5
  242. package/src/Provider.tsx +1 -1
  243. package/src/Radio.tsx +2 -2
  244. package/src/RadioGroup.tsx +1 -1
  245. package/src/SearchField.tsx +1 -1
  246. package/src/SegmentedControl.tsx +32 -22
  247. package/src/Skeleton.tsx +4 -1
  248. package/src/SkeletonCollection.tsx +4 -0
  249. package/src/Slider.tsx +2 -2
  250. package/src/StatusLight.tsx +1 -1
  251. package/src/Switch.tsx +2 -2
  252. package/src/Table.tsx +39 -60
  253. package/src/Tabs.tsx +3 -3
  254. package/src/TagGroup.tsx +2 -2
  255. package/src/TextField.tsx +1 -1
  256. package/src/ToggleButton.tsx +3 -2
  257. package/src/Tooltip.tsx +1 -1
  258. package/src/index.ts +2 -0
  259. package/src/style-utils.ts +0 -10
  260. package/style/dist/main.cjs +18 -1964
  261. package/style/dist/main.cjs.map +1 -1
  262. package/style/dist/module.mjs +11 -1958
  263. package/style/dist/module.mjs.map +1 -1
  264. package/style/dist/spectrum-theme.cjs +1989 -0
  265. package/style/dist/spectrum-theme.cjs.map +1 -0
  266. package/style/dist/spectrum-theme.mjs +1978 -0
  267. package/style/dist/spectrum-theme.mjs.map +1 -0
  268. package/style/dist/style-macro.cjs +4 -3
  269. package/style/dist/style-macro.cjs.map +1 -1
  270. package/style/dist/style-macro.mjs +4 -4
  271. package/style/dist/style-macro.mjs.map +1 -1
  272. package/style/dist/types.d.ts +198 -187
  273. package/style/dist/types.d.ts.map +1 -1
  274. package/style/index.ts +24 -0
  275. package/style/spectrum-theme.ts +19 -13
  276. package/style/style-macro.ts +1 -1
  277. package/style/types.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/s2",
3
- "version": "3.0.0-nightly-a626c2596-240926",
3
+ "version": "3.0.0-nightly-d57bd8d90-240927",
4
4
  "description": "Spectrum 2 UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -56,23 +56,23 @@
56
56
  "src"
57
57
  ],
58
58
  "dependencies": {
59
- "@react-aria/collections": "3.0.0-nightly-a626c2596-240926",
60
- "@react-aria/i18n": "^3.0.0-nightly-a626c2596-240926",
61
- "@react-aria/interactions": "^3.0.0-nightly-a626c2596-240926",
62
- "@react-aria/utils": "^3.0.0-nightly-a626c2596-240926",
63
- "@react-spectrum/utils": "^3.0.0-nightly-a626c2596-240926",
64
- "@react-stately/layout": "^3.0.0-nightly-a626c2596-240926",
65
- "@react-stately/virtualizer": "^3.0.0-nightly-a626c2596-240926",
66
- "@react-types/color": "3.0.0-nightly-a626c2596-240926",
67
- "@react-types/dialog": "^3.0.0-nightly-a626c2596-240926",
68
- "@react-types/grid": "^3.0.0-nightly-a626c2596-240926",
69
- "@react-types/provider": "^3.0.0-nightly-a626c2596-240926",
70
- "@react-types/shared": "^3.0.0-nightly-a626c2596-240926",
71
- "@react-types/table": "^3.0.0-nightly-a626c2596-240926",
72
- "@react-types/textfield": "^3.0.0-nightly-a626c2596-240926",
59
+ "@react-aria/collections": "3.0.0-nightly-d57bd8d90-240927",
60
+ "@react-aria/i18n": "^3.0.0-nightly-d57bd8d90-240927",
61
+ "@react-aria/interactions": "^3.0.0-nightly-d57bd8d90-240927",
62
+ "@react-aria/utils": "^3.0.0-nightly-d57bd8d90-240927",
63
+ "@react-spectrum/utils": "^3.0.0-nightly-d57bd8d90-240927",
64
+ "@react-stately/layout": "^3.0.0-nightly-d57bd8d90-240927",
65
+ "@react-stately/virtualizer": "^3.0.0-nightly-d57bd8d90-240927",
66
+ "@react-types/color": "3.0.0-nightly-d57bd8d90-240927",
67
+ "@react-types/dialog": "^3.0.0-nightly-d57bd8d90-240927",
68
+ "@react-types/grid": "^3.0.0-nightly-d57bd8d90-240927",
69
+ "@react-types/provider": "^3.0.0-nightly-d57bd8d90-240927",
70
+ "@react-types/shared": "^3.0.0-nightly-d57bd8d90-240927",
71
+ "@react-types/table": "^3.0.0-nightly-d57bd8d90-240927",
72
+ "@react-types/textfield": "^3.0.0-nightly-d57bd8d90-240927",
73
73
  "csstype": "^3.0.2",
74
- "react-aria": "^3.0.0-nightly-a626c2596-240926",
75
- "react-aria-components": "^3.0.0-nightly-a626c2596-240926"
74
+ "react-aria": "^3.0.0-nightly-d57bd8d90-240927",
75
+ "react-aria-components": "^3.0.0-nightly-d57bd8d90-240927"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "^18.0.0 || ^19.0.0",
package/src/Accordion.tsx CHANGED
@@ -26,12 +26,12 @@ export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' |
26
26
  styles?: StylesPropWithHeight,
27
27
  /**
28
28
  * The size of the accordion.
29
- * @default "M"
29
+ * @default 'M'
30
30
  */
31
31
  size?: 'S' | 'M' | 'L' | 'XL',
32
32
  /**
33
33
  * The amount of space between the disclosure items.
34
- * @default "regular"
34
+ * @default 'regular'
35
35
  */
36
36
  density?: 'compact' | 'regular' | 'spacious',
37
37
  /** Whether the accordion should be displayed with a quiet style. */
@@ -10,12 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' };
13
+ import {baseColor, focusRing, fontRelative, style} from '../style' with { type: 'macro' };
14
14
  import {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton, Text} from 'react-aria-components';
15
15
  import {centerBaseline} from './CenterBaseline';
16
16
  import {createContext, forwardRef, ReactNode, useContext} from 'react';
17
17
  import {FocusableRef, FocusableRefValue} from '@react-types/shared';
18
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };
18
+ import {getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };
19
19
  import {IconContext} from './Icon';
20
20
  import {pressScale} from './pressScale';
21
21
  import {SkeletonContext} from './Skeleton';
@@ -44,7 +44,7 @@ interface ToggleButtonStyleProps {
44
44
  isEmphasized?: boolean
45
45
  }
46
46
 
47
- export interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {
47
+ export interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'isPending'>, StyleProps, ActionButtonStyleProps {
48
48
  /** The content to display in the ActionButton. */
49
49
  children?: ReactNode
50
50
  }
@@ -24,7 +24,7 @@ import {IconContext} from './Icon';
24
24
  import intlMessages from '../intl/*.json';
25
25
  import NoticeSquare from '../s2wf-icons/S2_Icon_AlertDiamond_20_N.svg';
26
26
  import {Provider} from 'react-aria-components';
27
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
27
+ import {style} from '../style' with {type: 'macro'};
28
28
  import {UnsafeStyles} from './style-utils' with {type: 'macro'};
29
29
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
30
30
 
package/src/Avatar.tsx CHANGED
@@ -16,7 +16,7 @@ import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {filterDOMProps} from '@react-aria/utils';
17
17
  import {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};
18
18
  import {Image} from './Image';
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
  import {useSpectrumContextProps} from './useSpectrumContextProps';
22
22
 
@@ -16,7 +16,7 @@ import {ContextValue, SlotProps} from 'react-aria-components';
16
16
  import {createContext, CSSProperties, forwardRef, ReactNode} from 'react';
17
17
  import {filterDOMProps} from '@react-aria/utils';
18
18
  import {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};
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
  import {useLabel} from 'react-aria';
22
22
  import {useSpectrumContextProps} from './useSpectrumContextProps';
package/src/Badge.tsx CHANGED
@@ -15,7 +15,7 @@ import {centerBaseline} from './CenterBaseline';
15
15
  import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
16
16
  import {ContextValue, Provider, SlotProps} from 'react-aria-components';
17
17
  import {filterDOMProps} from '@react-aria/utils';
18
- import {fontRelative, style} from '../style/spectrum-theme' with {type: 'macro'};
18
+ import {fontRelative, style} from '../style' with {type: 'macro'};
19
19
  import {IconContext} from './Icon';
20
20
  import React, {createContext, forwardRef, ReactNode} from 'react';
21
21
  import {SkeletonWrapper} from './Skeleton';
@@ -27,13 +27,13 @@ import {AriaBreadcrumbItemProps, useLocale} from 'react-aria';
27
27
  import ChevronIcon from '../ui-icons/Chevron';
28
28
  import {Collection, DOMRef, DOMRefValue, LinkDOMProps, Node} from '@react-types/shared';
29
29
  import {createContext, forwardRef, Fragment, ReactNode, RefObject, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
30
- import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
30
+ import {focusRing, size, style} from '../style' with { type: 'macro' };
31
31
  import FolderIcon from '../s2wf-icons/S2_Icon_FolderBreadcrumb_20_N.svg';
32
32
  import {forwardRefType} from './types';
33
+ import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
33
34
  // @ts-ignore
34
35
  import intlMessages from '../intl/*.json';
35
36
  import {Menu, MenuItem, MenuTrigger} from './Menu';
36
- import {size, style} from '../style/spectrum-theme' with { type: 'macro' };
37
37
  import {Text} from './Content';
38
38
  import {useDOMRef, useResizeObserver} from '@react-spectrum/utils';
39
39
  import {useLayoutEffect} from '@react-aria/utils';
package/src/Button.tsx CHANGED
@@ -10,10 +10,10 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {baseColor, fontRelative, style} from '../style/spectrum-theme' with {type: 'macro'};
13
+ import {baseColor, focusRing, fontRelative, size as sizeValue, style} from '../style' with {type: 'macro'};
14
14
  import {ButtonRenderProps, ContextValue, Link, LinkProps, OverlayTriggerStateContext, Provider, Button as RACButton, ButtonProps as RACButtonProps} from 'react-aria-components';
15
15
  import {centerBaseline} from './CenterBaseline';
16
- import {centerPadding, focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
16
+ import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
17
17
  import {createContext, forwardRef, ReactNode, useContext, useEffect, useState} from 'react';
18
18
  import {FocusableRef, FocusableRefValue} from '@react-types/shared';
19
19
  import {IconContext} from './Icon';
@@ -370,8 +370,21 @@ function Button(props: ButtonProps, ref: FocusableRef<HTMLButtonElement>) {
370
370
  isProgressVisible: 1
371
371
  }
372
372
  })({isProgressVisible, isPending})}>
373
- {/* TODO: size based on t-shirt size once ProgressCircle supports custom sizes */}
374
- <ProgressCircle isIndeterminate aria-label={stringFormatter.format('button.pending')} size="S" staticColor={staticColor} UNSAFE_style={{display: 'block'}} />
373
+ <ProgressCircle
374
+ isIndeterminate
375
+ aria-label={stringFormatter.format('button.pending')}
376
+ size="S"
377
+ staticColor={staticColor}
378
+ styles={style({
379
+ size: {
380
+ size: {
381
+ S: sizeValue(14),
382
+ M: sizeValue(18),
383
+ L: 20,
384
+ XL: 24
385
+ }
386
+ }
387
+ })({size})} />
375
388
  </div>
376
389
  }
377
390
  </Provider>
@@ -405,7 +418,8 @@ function LinkButton(props: LinkButtonProps, ref: FocusableRef<HTMLAnchorElement>
405
418
  variant: props.variant || 'primary',
406
419
  fillStyle: props.fillStyle || 'fill',
407
420
  size: props.size || 'M',
408
- staticColor: props.staticColor
421
+ staticColor: props.staticColor,
422
+ isPending: false
409
423
  }, props.styles)}>
410
424
  <Provider
411
425
  values={[
@@ -15,7 +15,7 @@ import {ContextValue, Provider, SlotProps} from 'react-aria-components';
15
15
  import {createContext, forwardRef, ReactNode, useCallback, useRef} from 'react';
16
16
  import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
17
17
  import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
18
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
18
+ import {style} from '../style' with {type: 'macro'};
19
19
  import {
20
20
  useDOMRef,
21
21
  useResizeObserver
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
  /**
@@ -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';
@@ -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. */
@@ -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
@@ -21,7 +21,7 @@ import {ImageContext} from './Image';
21
21
  import intlMessages from '../intl/*.json';
22
22
  import {Modal} from './Modal';
23
23
  import {Popover} from './Popover';
24
- import {style} from '../style/spectrum-theme' with {type: 'macro'};
24
+ import {style} from '../style' with {type: 'macro'};
25
25
  import {StyleProps} from './style-utils';
26
26
  import {useDOMRef, useMediaQuery} from '@react-spectrum/utils';
27
27
  import {useLocalizedStringFormatter} from '@react-aria/i18n';
@@ -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';