Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ced7ad2
export all utilities
reidbarber Jan 28, 2026
418056f
export remaining utils
reidbarber Jan 28, 2026
2ccfd61
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Feb 11, 2026
fe2bc92
removed unsafe exports for now
reidbarber Feb 11, 2026
4e620c3
add JSDoc descriptions
reidbarber Feb 11, 2026
0cf5ad7
rename colorScheme() to setColorScheme()
reidbarber Feb 11, 2026
acf0f38
remove raw/keyframes from s2 export
reidbarber Feb 11, 2026
9f6eb4e
export WidthProperties and HeightProperties as types
reidbarber Feb 11, 2026
2034cc0
cleanup JSDocs
reidbarber Feb 11, 2026
68a080f
add docs
reidbarber Feb 11, 2026
ef9ab31
lint
reidbarber Feb 11, 2026
afcd187
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Feb 23, 2026
c8be472
address review comments
reidbarber Feb 24, 2026
efcd314
extract docs from JSDoc
reidbarber Feb 24, 2026
3003c94
add imports to all examples
reidbarber Feb 24, 2026
c6e6cde
update styles->className in example
reidbarber Mar 9, 2026
15afa36
fix size in md output
reidbarber Mar 9, 2026
302c704
add linearGradient
reidbarber Mar 9, 2026
8ef8ff0
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Mar 9, 2026
8cc7ebf
remove getAllowedOverrides from exports/docs (could have breaking cha…
reidbarber Mar 10, 2026
4113557
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Mar 10, 2026
e5c2fd3
remove WidthProperties/HeightProperties since we removed getAllowedOv…
reidbarber Mar 13, 2026
1d716d5
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Mar 13, 2026
74b6f70
address review comments
reidbarber Mar 17, 2026
12a29ff
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Mar 17, 2026
d6b5850
rename raw -> css
reidbarber Mar 17, 2026
e2fac29
Merge remote-tracking branch 'origin/main' into style-macr-utility-audit
reidbarber Mar 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/CenterBaseline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* governing permissions and limitations under the License.
*/

import {css} from '../style/style-macro' with {type: 'macro'};
import {CSSProperties, ReactNode} from 'react';
import {mergeStyles} from '../style/runtime';
import {raw} from '../style/style-macro' with {type: 'macro'};
import {style} from '../style' with {type: 'macro'};
import {StyleString} from '../style/types';

Expand All @@ -39,7 +39,7 @@ export function CenterBaseline(props: CenterBaselineProps): ReactNode {
);
}

export const centerBaselineBefore = raw('&::before { content: "\u00a0"; width: 0; visibility: hidden }');
export const centerBaselineBefore = css('&::before { content: "\u00a0"; width: 0; visibility: hidden }');

export function centerBaseline(props: Omit<CenterBaselineProps, 'children'> = {}): (icon: ReactNode) => ReactNode {
return (icon: ReactNode) => <CenterBaseline {...props}>{icon}</CenterBaseline>;
Expand Down
10 changes: 5 additions & 5 deletions packages/@react-spectrum/s2/src/CoachMark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
import {ButtonContext} from './Button';
import {Card} from './Card';
import {CheckboxContext} from './Checkbox';
import {colorScheme, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {ColorSchemeContext} from './Provider';
import {ContentContext, FooterContext, KeyboardContext, TextContext} from './Content';
import {
Expand All @@ -38,16 +37,17 @@ import {
useContext,
useRef
} from 'react';
import {css, keyframes} from '../style/style-macro' with {type: 'macro'};
import {DividerContext} from './Divider';
import {forwardRefType} from './types';
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {GlobalDOMAttributes} from '@react-types/shared';
import {ImageContext} from './Image';
import {ImageCoordinator} from './ImageCoordinator';
import {keyframes, raw} from '../style/style-macro' with {type: 'macro'};
import {mergeStyles} from '../style/runtime';
import {PressResponder} from '@react-aria/interactions';
import {setColorScheme, space, style} from '../style' with {type: 'macro'};
import {SliderContext} from './Slider';
import {space, style} from '../style' with {type: 'macro'};
import {useId, useObjectRef, useOverlayTrigger} from 'react-aria';
import {useLayoutEffect} from '@react-aria/utils';
import {useMenuTriggerState} from 'react-stately';
Expand Down Expand Up @@ -106,7 +106,7 @@ const slideLeftKeyframes = keyframes(`
`);

let popover = style({
...colorScheme(),
...setColorScheme(),
'--s2-container-bg': {
type: 'backgroundColor',
value: 'layer-2'
Expand Down Expand Up @@ -474,7 +474,7 @@ const indicator = style({
}
});

const pulse = raw(`&:before { content: ""; display: inline-block; position: absolute; top: var(--borderOffset); bottom: var(--borderOffset); left: var(--borderOffset); right: var(--borderOffset); border-radius: var(--ringRadius); outline-style: solid; outline-color: var(--activeElement); outline-width: 4px; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-name: ${pulseAnimation}}`);
const pulse = css(`&:before { content: ""; display: inline-block; position: absolute; top: var(--borderOffset); bottom: var(--borderOffset); left: var(--borderOffset); right: var(--borderOffset); border-radius: var(--ringRadius); outline-style: solid; outline-color: var(--activeElement); outline-width: 4px; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-name: ${pulseAnimation}}`);

interface CoachMarkIndicatorProps {
children: ReactNode,
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ import {
import {AsyncLoadable, GlobalDOMAttributes, HelpTextProps, LoadingState, SingleSelection, SpectrumLabelableProps} from '@react-types/shared';
import {AvatarContext} from './Avatar';
import {BaseCollection, CollectionNode, createLeafComponent} from '@react-aria/collections';
import {baseColor, focusRing, space, style} from '../style' with {type: 'macro'};
import {baseColor, centerPadding, focusRing, space, style} from '../style' with {type: 'macro'};
import {centerBaseline} from './CenterBaseline';
import {centerPadding, control, controlBorderRadius, controlFont, controlSize, field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {
checkmark,
description,
Expand All @@ -49,6 +48,7 @@ import {
} from './Menu';
import CheckmarkIcon from '../ui-icons/Checkmark';
import ChevronIcon from '../ui-icons/Chevron';
import {control, controlBorderRadius, controlFont, controlSize, field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {createContext, CSSProperties, ForwardedRef, forwardRef, ReactNode, Ref, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react';
import {createFocusableRef} from '@react-spectrum/utils';
import {edgeToText} from '../style/spectrum-theme' with {type: 'macro'};
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/Disclosure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

import {ActionButtonContext} from './ActionButton';
import {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue, forwardRefType, GlobalDOMAttributes} from '@react-types/shared';
import {baseColor, focusRing, lightDark, space, style} from '../style' with { type: 'macro' };
import {baseColor, centerPadding, focusRing, lightDark, space, style} from '../style' with { type: 'macro' };
import {Button, ContextValue, DisclosureStateContext, Heading, Provider, Disclosure as RACDisclosure, DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';
import {CenterBaseline} from './CenterBaseline';
import {centerPadding, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };
import Chevron from '../ui-icons/Chevron';
import {filterDOMProps} from '@react-aria/utils';
import {getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
import React, {createContext, forwardRef, ReactNode, useContext} from 'react';
import {useDOMRef} from '@react-spectrum/utils';
import {useSpectrumContextProps} from './useSpectrumContextProps';
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ import {
Separator,
SeparatorProps
} from 'react-aria-components';
import {baseColor, focusRing, fontRelative, size, space, style} from '../style' with {type: 'macro'};
import {baseColor, centerPadding, focusRing, fontRelative, size, space, style} from '../style' with {type: 'macro'};
import {box, iconStyles} from './Checkbox';
import {centerBaseline} from './CenterBaseline';
import {centerPadding, control, controlFont, controlSize, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import CheckmarkIcon from '../ui-icons/Checkmark';
import ChevronRightIcon from '../ui-icons/Chevron';
import {control, controlFont, controlSize, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {createContext, forwardRef, JSX, ReactElement, ReactNode, useContext, useRef, useState} from 'react';
import {divider} from './Divider';
import {DOMRef, DOMRefValue, GlobalDOMAttributes, PressEvent} from '@react-types/shared';
Expand Down
5 changes: 2 additions & 3 deletions packages/@react-spectrum/s2/src/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
* governing permissions and limitations under the License.
*/

import {colorScheme} from './style-utils' with {type: 'macro'};
import {ColorSchemeContext} from './Provider';
import {DOMRef, GlobalDOMAttributes} from '@react-types/shared';
import {forwardRef, MutableRefObject, useCallback, useContext} from 'react';
import {ModalOverlay, ModalOverlayProps, Modal as RACModal, useLocale} from 'react-aria-components';
import {style} from '../style' with {type: 'macro'};
import {setColorScheme, style} from '../style' with {type: 'macro'};
import {useDOMRef} from '@react-spectrum/utils';

interface ModalProps extends Omit<ModalOverlayProps, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes> {
Expand All @@ -28,7 +27,7 @@ interface ModalProps extends Omit<ModalOverlayProps, 'className' | 'style' | 're
}

const modalOverlayStyles = style({
...colorScheme(),
...setColorScheme(),
position: 'absolute',
top: 0,
left: 0,
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import ChevronIcon from '../ui-icons/Chevron';
import {control, controlBorderRadius, controlFont, field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {createHideableComponent} from '@react-aria/collections';
import {createShadowTreeWalker, getOwnerDocument, isFocusable, useGlobalListeners, useSlotId} from '@react-aria/utils';
import {css} from '../style/style-macro' with {type: 'macro'};
import {
Divider,
listbox,
Expand All @@ -77,7 +78,6 @@ import {Popover} from './Popover';
import {PressResponder} from '@react-aria/interactions';
import {pressScale} from './pressScale';
import {ProgressCircle} from './ProgressCircle';
import {raw} from '../style/style-macro' with {type: 'macro'};
import React, {createContext, forwardRef, ReactNode, useContext, useEffect, useMemo, useRef, useState} from 'react';
import {useFocusableRef} from '@react-spectrum/utils';
import {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';
Expand Down Expand Up @@ -584,7 +584,7 @@ const PickerButton = createHideableComponent(function PickerButton<T extends obj
<SelectValue
className={
valueStyles({isQuiet}) +
(renderValue ? '' : ' ' + raw('&> :not([slot=icon], [slot=avatar], [slot=label], [data-slot=label]) {display: none;}'))
(renderValue ? '' : ' ' + css('&> :not([slot=icon], [slot=avatar], [slot=label], [data-slot=label]) {display: none;}'))
}>
{({selectedItems, defaultChildren}) => {
const selectedValues = selectedItems.filter((item): item is T => item != null);
Expand Down
6 changes: 3 additions & 3 deletions packages/@react-spectrum/s2/src/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import {
OverlayTriggerStateContext,
useLocale
} from 'react-aria-components';
import {colorScheme, getAllowedOverrides, heightProperties, UnsafeStyles, widthProperties} from './style-utils' with {type: 'macro'};
import {ColorSchemeContext} from './Provider';
import {createContext, ForwardedRef, forwardRef, ReactNode, useCallback, useContext, useMemo} from 'react';
import {DOMRef, DOMRefValue, GlobalDOMAttributes} from '@react-types/shared';
import {lightDark, style} from '../style' with {type: 'macro'};
import {getAllowedOverrides, heightProperties, UnsafeStyles, widthProperties} from './style-utils' with {type: 'macro'};
import {lightDark, setColorScheme, style} from '../style' with {type: 'macro'};
import {mergeRefs} from '@react-aria/utils';
import {mergeStyles} from '../style/runtime';
import {StyleString} from '../style/types' with {type: 'macro'};
Expand Down Expand Up @@ -62,7 +62,7 @@ export interface PopoverProps extends UnsafeStyles, Omit<AriaPopoverProps,
}

let popover = style({
...colorScheme(),
...setColorScheme(),
'--s2-container-bg': {
type: 'backgroundColor',
value: {
Expand Down
6 changes: 3 additions & 3 deletions packages/@react-spectrum/s2/src/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
*/

import type {ColorScheme, Router} from '@react-types/provider';
import {colorScheme, UnsafeStyles} from './style-utils' with {type: 'macro'};
import {createContext, JSX, ReactNode, useContext} from 'react';
import {DOMProps} from '@react-types/shared';
import {filterDOMProps} from '@react-aria/utils';
import {Fonts} from './Fonts';
import {generateDefaultColorSchemeStyles} from './page.macro' with {type: 'macro'};
import {I18nProvider, RouterProvider, useLocale} from 'react-aria-components';
import {mergeStyles} from '../style/runtime';
import {style} from '../style' with {type: 'macro'};
import {setColorScheme, style} from '../style' with {type: 'macro'};
import {StyleString} from '../style/types';
import {UnsafeStyles} from './style-utils' with {type: 'macro'};

export interface ProviderProps extends UnsafeStyles, DOMProps {
/** The content of the Provider. */
Expand Down Expand Up @@ -77,7 +77,7 @@ export function Provider(props: ProviderProps): JSX.Element {
generateDefaultColorSchemeStyles();

let providerStyles = style({
...colorScheme(),
...setColorScheme(),
'--s2-container-bg': {
type: 'backgroundColor',
value: {
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/SearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import {centerBaseline} from './CenterBaseline';
import {ClearButton} from './ClearButton';
import {createContext, forwardRef, Ref, useContext, useImperativeHandle, useRef} from 'react';
import {createFocusableRef} from '@react-spectrum/utils';
import {css} from '../style/style-macro' with {type: 'macro'};
import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {FieldGroup, FieldLabel, HelpText, Input} from './Field';
import {FormContext, useFormProps} from './Form';
import {GlobalDOMAttributes, HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';
import {IconContext} from './Icon';
import {raw} from '../style/style-macro' with {type: 'macro'};
import SearchIcon from '../s2wf-icons/S2_Icon_Search_20_N.svg';
import {TextFieldRef} from '@react-types/textfield';
import {useSpectrumContextProps} from './useSpectrumContextProps';
Expand Down Expand Up @@ -142,7 +142,7 @@ export const SearchField = /*#__PURE__*/ forwardRef(function SearchField(props:
]}>
<SearchIcon />
</Provider>
<Input ref={inputRef} UNSAFE_className={raw('&::-webkit-search-cancel-button { display: none }')} />
<Input ref={inputRef} UNSAFE_className={css('&::-webkit-search-cancel-button { display: none }')} />
{!isEmpty && !searchFieldProps.isReadOnly && <ClearButton size={props.size} />}
</FieldGroup>
<HelpText
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

import {cloneElement, createContext, CSSProperties, ReactElement, ReactNode, Ref, useCallback, useContext, useRef} from 'react';
import {color, style} from '../style' with {type: 'macro'};
import {css} from '../style/style-macro' with {type: 'macro'};
import {inertValue, mergeRefs} from '@react-aria/utils';
import {mergeStyles} from '../style/runtime';
import {raw} from '../style/style-macro' with {type: 'macro'};
import {StyleString} from '../style/types';
import {useMediaQuery} from '@react-spectrum/utils';

Expand Down Expand Up @@ -73,7 +73,7 @@ export function Skeleton({children, isLoading}: SkeletonProps): ReactNode {
);
}

export const loadingStyle = raw(`
export const loadingStyle = css(`
background-image: linear-gradient(to right, ${color('gray-100')} 33%, light-dark(${color('gray-25')}, ${color('gray-300')}), ${color('gray-100')} 66%);
background-size: 300%;
* {
Expand Down
10 changes: 5 additions & 5 deletions packages/@react-spectrum/s2/src/TableView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

import {ActionButton, ActionButtonContext} from './ActionButton';
import {baseColor, colorMix, focusRing, fontRelative, lightDark, space, style} from '../style' with {type: 'macro'};
import {baseColor, centerPadding, colorMix, focusRing, fontRelative, lightDark, setColorScheme, space, style} from '../style' with {type: 'macro'};
import {
Button,
ButtonContext,
Expand Down Expand Up @@ -53,12 +53,13 @@ import {
Virtualizer
} from 'react-aria-components';
import {ButtonGroup} from './ButtonGroup';
import {centerPadding, colorScheme, controlFont, getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
import {Checkbox} from './Checkbox';
import Checkmark from '../s2wf-icons/S2_Icon_Checkmark_20_N.svg';
import Chevron from '../ui-icons/Chevron';
import Close from '../s2wf-icons/S2_Icon_Close_20_N.svg';
import {ColumnSize} from '@react-types/table';
import {controlFont, getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
import {css} from '../style/style-macro' with {type: 'macro'};
import {CustomDialog, DialogContainer} from '..';
import {DOMProps, DOMRef, DOMRefValue, forwardRefType, GlobalDOMAttributes, LinkDOMProps, LoadingState, Node} from '@react-types/shared';
import {getActiveElement, getOwnerDocument, isFocusWithin, nodeContains, useLayoutEffect, useObjectRef} from '@react-aria/utils';
Expand All @@ -70,7 +71,6 @@ import {LayoutNode} from '@react-stately/layout';
import {Menu, MenuItem, MenuSection, MenuTrigger} from './Menu';
import Nubbin from '../ui-icons/S2_MoveHorizontalTableWidget.svg';
import {ProgressCircle} from './ProgressCircle';
import {raw} from '../style/style-macro' with {type: 'macro'};
import React, {createContext, CSSProperties, FormEvent, FormHTMLAttributes, ForwardedRef, forwardRef, ReactElement, ReactNode, RefObject, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
import SortDownArrow from '../s2wf-icons/S2_Icon_SortDown_20_N.svg';
import SortUpArrow from '../s2wf-icons/S2_Icon_SortUp_20_N.svg';
Expand Down Expand Up @@ -1189,7 +1189,7 @@ const editableCell = style<CellRenderProps & S2TableProps & {isDivider: boolean,
});

let editPopover = style({
...colorScheme(),
...setColorScheme(),
'--s2-container-bg': {
type: 'backgroundColor',
value: 'layer-2'
Expand Down Expand Up @@ -1583,7 +1583,7 @@ export const Row = /*#__PURE__*/ (forwardRef as forwardRefType)(function Row<T e
className={renderProps => row({
...renderProps,
...tableVisualOptions
}) + (renderProps.isFocusVisible ? ' ' + raw('&:before { content: ""; display: inline-block; position: sticky; inset-inline-start: 0; width: 3px; height: 100%; margin-inline-end: -3px; margin-block-end: 1px; z-index: 3; background-color: var(--rowFocusIndicatorColor)') : '')}
}) + (renderProps.isFocusVisible ? ' ' + css('&:before { content: ""; display: inline-block; position: sticky; inset-inline-start: 0; width: 3px; height: 100%; margin-inline-end: -3px; margin-block-end: 1px; z-index: 3; background-color: var(--rowFocusIndicatorColor)') : '')}
{...otherProps}>
{selectionMode !== 'none' && selectionBehavior === 'toggle' && (
// Not sure what we want to do with this className, in Cell it currently overrides the className that would have been applied.
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/TabsPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
import CheckmarkIcon from '../ui-icons/Checkmark';
import ChevronIcon from '../ui-icons/Chevron';
import {controlFont, fieldInput, StyleProps} from './style-utils' with {type: 'macro'};
import {css} from '../style/style-macro' with {type: 'macro'};
import {edgeToText} from '../style/spectrum-theme' with {type: 'macro'};
import {
FieldLabel
Expand All @@ -48,7 +49,6 @@ import {IconContext} from './Icon';
import {Placement, useLocale} from 'react-aria';
import {Popover} from './Popover';
import {pressScale} from './pressScale';
import {raw} from '../style/style-macro' with {type: 'macro'};
import React, {createContext, forwardRef, ReactNode, useContext, useRef} from 'react';
import {useFocusableRef} from '@react-spectrum/utils';
import {useFormProps} from './Form';
Expand Down Expand Up @@ -204,7 +204,7 @@ function Picker<T extends object>(props: PickerProps<T>, ref: FocusableRef<HTMLB
isQuiet,
density
})}>
<SelectValue className={valueStyles + ' ' + raw('&> * {display: none;}')}>
<SelectValue className={valueStyles + ' ' + css('&> * {display: none;}')}>
{({defaultChildren}) => {
return (
<Provider
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import {
InputProps,
useSlottedContext
} from 'react-aria-components';
import {centerPadding, controlSize, field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {centerPadding, style} from '../style' with {type: 'macro'};
import {controlSize, field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
import {createContext, forwardRef, ReactNode, Ref, useContext, useImperativeHandle, useRef} from 'react';
import {createFocusableRef} from '@react-spectrum/utils';
import {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';
import {FormContext, useFormProps} from './Form';
import {GlobalDOMAttributes, HelpTextProps, RefObject, SpectrumLabelableProps} from '@react-types/shared';
import {mergeRefs} from '@react-aria/utils';
import {style} from '../style' with {type: 'macro'};
import {StyleString} from '../style/types';
import {TextFieldRef} from '@react-types/textfield';
import {useSpectrumContextProps} from './useSpectrumContextProps';
Expand Down
Loading
Loading