@@ -37,7 +37,7 @@ export const Heading = forwardRef(// Wrapper around RAC Heading to unmount when
37
37
function Heading ( props : HeadingProps , ref : DOMRef < HTMLHeadingElement > ) {
38
38
[ props , ref ] = useSpectrumContextProps ( props , ref , HeadingContext ) ;
39
39
let domRef = useDOMRef ( ref ) ;
40
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, ...otherProps } = props ;
40
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, ...otherProps } = props ;
41
41
if ( isHidden ) {
42
42
return null ;
43
43
}
@@ -57,7 +57,7 @@ export const HeaderContext = createContext<ContextValue<Partial<ContentProps>, D
57
57
export const Header = forwardRef ( function Header ( props : ContentProps , ref : DOMRef ) {
58
58
[ props , ref ] = useSpectrumContextProps ( props , ref , HeaderContext ) ;
59
59
let domRef = useDOMRef ( ref ) ;
60
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, ...otherProps } = props ;
60
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, ...otherProps } = props ;
61
61
if ( isHidden ) {
62
62
return null ;
63
63
}
@@ -77,7 +77,7 @@ export const ContentContext = createContext<ContextValue<Partial<ContentProps>,
77
77
export const Content = forwardRef ( function Content ( props : ContentProps , ref : DOMRef < HTMLDivElement > ) {
78
78
[ props , ref ] = useSpectrumContextProps ( props , ref , ContentContext ) ;
79
79
let domRef = useDOMRef ( ref ) ;
80
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, ...otherProps } = props ;
80
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, ...otherProps } = props ;
81
81
if ( isHidden ) {
82
82
return null ;
83
83
}
@@ -96,7 +96,7 @@ export const TextContext = createContext<ContextValue<Partial<ContentProps>, DOM
96
96
export const Text = forwardRef ( function Text ( props : ContentProps , ref : DOMRef ) {
97
97
[ props , ref ] = useSpectrumContextProps ( props , ref , TextContext ) ;
98
98
let domRef = useDOMRef ( ref ) ;
99
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, children, ...otherProps } = props ;
99
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, children, ...otherProps } = props ;
100
100
let racContext = useContext ( RACTextContext ) ;
101
101
let isSkeleton = useIsSkeleton ( ) ;
102
102
[ children , UNSAFE_style ] = useSkeletonText ( children , UNSAFE_style ) ;
@@ -130,7 +130,7 @@ export const KeyboardContext = createContext<ContextValue<Partial<ContentProps>,
130
130
export const Keyboard = forwardRef ( function Keyboard ( props : ContentProps , ref : DOMRef ) {
131
131
[ props , ref ] = useSpectrumContextProps ( props , ref , KeyboardContext ) ;
132
132
let domRef = useDOMRef ( ref ) ;
133
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, ...otherProps } = props ;
133
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, ...otherProps } = props ;
134
134
if ( isHidden ) {
135
135
return null ;
136
136
}
@@ -149,7 +149,7 @@ export const FooterContext = createContext<ContextValue<Partial<ContentProps>, D
149
149
export const Footer = forwardRef ( function Footer ( props : ContentProps , ref : DOMRef ) {
150
150
[ props , ref ] = useSpectrumContextProps ( props , ref , FooterContext ) ;
151
151
let domRef = useDOMRef ( ref ) ;
152
- let { UNSAFE_className = '' , UNSAFE_style, styles, isHidden, slot, ...otherProps } = props ;
152
+ let { UNSAFE_className = '' , UNSAFE_style, styles = '' , isHidden, slot, ...otherProps } = props ;
153
153
if ( isHidden ) {
154
154
return null ;
155
155
}
0 commit comments