@@ -20,7 +20,6 @@ import {
20
20
DefaultCollectionRenderer ,
21
21
HeadingContext ,
22
22
Link ,
23
- LinkRenderProps ,
24
23
Provider ,
25
24
Breadcrumbs as RACBreadcrumbs
26
25
} from 'react-aria-components' ;
@@ -98,7 +97,7 @@ const wrapper = style<BreadcrumbsStyleProps>({
98
97
99
98
const InternalBreadcrumbsContext = createContext < Partial < BreadcrumbsProps < any > > > ( { } ) ;
100
99
101
- /** Breadcrumbs show hierarchy and navigational context for a user' s location within an application. */
100
+ /** Breadcrumbs show hierarchy and navigational context for a user’ s location within an application. */
102
101
export const Breadcrumbs = /*#__PURE__*/ ( forwardRef as forwardRefType ) ( function Breadcrumbs < T extends object > ( props : BreadcrumbsProps < T > , ref : DOMRef < HTMLOListElement > ) {
103
102
[ props , ref ] = useSpectrumContextProps ( props , ref , BreadcrumbsContext ) ;
104
103
let domRef = useDOMRef ( ref ) ;
@@ -201,7 +200,7 @@ let HiddenBreadcrumbs = function (props: {listRef: RefObject<HTMLDivElement | nu
201
200
) ;
202
201
} ;
203
202
204
- const breadcrumbStyles = style < BreadcrumbsStyleProps & { isMenu ?: boolean , isCurrent ?: boolean } > ( {
203
+ const breadcrumbStyles = style ( {
205
204
display : 'flex' ,
206
205
alignItems : 'center' ,
207
206
justifyContent : 'start' ,
@@ -246,7 +245,7 @@ const chevronStyles = style({
246
245
}
247
246
} ) ;
248
247
249
- const linkStyles = style < LinkRenderProps & { size ?: 'M' | 'L' , isCurrent ?: boolean } > ( {
248
+ const linkStyles = style ( {
250
249
...focusRing ( ) ,
251
250
borderRadius : 'sm' ,
252
251
font : 'control' ,
@@ -256,8 +255,7 @@ const linkStyles = style<LinkRenderProps & {size?: 'M' | 'L', isCurrent?: boolea
256
255
isCurrent : 'neutral' ,
257
256
forcedColors : {
258
257
default : 'LinkText' ,
259
- isDisabled : 'GrayText' ,
260
- isCurrent : 'GrayText'
258
+ isDisabled : 'GrayText'
261
259
}
262
260
} ,
263
261
transition : 'default' ,
@@ -339,7 +337,7 @@ export const Breadcrumb = /*#__PURE__*/ (forwardRef as forwardRefType)(function
339
337
ping = { ping }
340
338
referrerPolicy = { referrerPolicy }
341
339
isDisabled = { isDisabled || isCurrent }
342
- className = { ( { isFocused, isFocusVisible, isHovered, isDisabled, isPressed} ) => linkStyles ( { isFocused, isFocusVisible, isHovered, isDisabled, size, isPressed, isCurrent } ) } >
340
+ className = { ( { isFocused, isFocusVisible, isHovered, isDisabled, isPressed} ) => linkStyles ( { isFocused, isFocusVisible, isHovered, isDisabled, size, isPressed} ) } >
343
341
{ children }
344
342
</ Link >
345
343
< ChevronIcon
0 commit comments