({
as = 'span',
onClick,
onFocus,
tabIndex = -1,
disabled,
}: Pick<ComponentProps<typeof TokenBase>, 'disabled' | 'as' | 'onClick' | 'onFocus' | 'tabIndex'>)
| 52 | } |
| 53 | |
| 54 | export const isTokenInteractive = ({ |
| 55 | as = 'span', |
| 56 | onClick, |
| 57 | onFocus, |
| 58 | tabIndex = -1, |
| 59 | disabled, |
| 60 | }: Pick<ComponentProps<typeof TokenBase>, 'disabled' | 'as' | 'onClick' | 'onFocus' | 'tabIndex'>) => { |
| 61 | if (disabled) { |
| 62 | return false |
| 63 | } |
| 64 | return Boolean(onFocus || onClick || tabIndex > -1 || ['a', 'button'].includes(as)) |
| 65 | } |
| 66 | |
| 67 | const xlargeVariantStyles = { |
| 68 | fontSize: 1, |
no outgoing calls
no test coverage detected