({
theme,
textColor,
disabled,
}: BaseProps & { textColor?: string })
| 312 | type Mode = 'flat' | 'outlined'; |
| 313 | |
| 314 | const getInputTextColor = ({ |
| 315 | theme, |
| 316 | textColor, |
| 317 | disabled, |
| 318 | }: BaseProps & { textColor?: string }) => { |
| 319 | if (textColor) { |
| 320 | return textColor; |
| 321 | } |
| 322 | |
| 323 | if (theme.isV3) { |
| 324 | if (disabled) { |
| 325 | return theme.colors.onSurfaceDisabled; |
| 326 | } |
| 327 | |
| 328 | return theme.colors.onSurface; |
| 329 | } |
| 330 | |
| 331 | if (disabled) { |
| 332 | return color(theme.colors.text).alpha(0.54).rgb().string(); |
| 333 | } |
| 334 | |
| 335 | return theme.colors.text; |
| 336 | }; |
| 337 | |
| 338 | const getActiveColor = ({ |
| 339 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…