@@ -6,38 +6,38 @@ import {useTheme} from '../../theme/useTheme.hook';
66import { type IconProps } from '../../icons/icon-props' ;
77import { EditIcon } from '../../icons/edit-icon/EditIcon.component' ;
88import { useTypography } from '../../typography/useTypography.component' ;
9- import { getBaseFloatingButtonShape , styles } from './floating-button.styles' ;
9+ import { getBaseFloatingButtonShape , styles } from './floating-action- button.styles' ;
1010
11- export enum FloatingButtonSize {
11+ export enum FloatingActionButtonSize {
1212 SMALL = 'SMALL' ,
1313 BIG = 'BIG' ,
1414}
1515
16- export enum FloatingButtonType {
16+ export enum FloatingActionButtonType {
1717 SURFACE = 'SURFACE' ,
1818 PRIMARY = 'PRIMARY' ,
1919 SECONDARY = 'SECONDARY' ,
2020 TERTIARY = 'TERTIARY' ,
2121}
2222
23- export interface FloatingButtonProps extends TouchableOpacityProps {
24- type ?: FloatingButtonType ;
23+ export interface FloatingActionButtonProps extends TouchableOpacityProps {
24+ type ?: FloatingActionButtonType ;
2525 label ?: string ;
2626 extended ?: boolean ;
2727 Icon ?: React . FC < IconProps > ;
2828 iconProps ?: IconProps ;
29- size ?: FloatingButtonSize ;
29+ size ?: FloatingActionButtonSize ;
3030 labelStyle ?: StyleProp < TextStyle > ;
3131}
3232
33- export const FloatingButton : React . FC < FloatingButtonProps > = ( {
33+ export const FloatingActionButton : React . FC < FloatingActionButtonProps > = ( {
3434 label,
3535 iconProps,
3636 labelStyle,
3737 Icon = EditIcon ,
3838 extended = true ,
39- size = FloatingButtonSize . SMALL ,
40- type = FloatingButtonType . PRIMARY ,
39+ size = FloatingActionButtonSize . SMALL ,
40+ type = FloatingActionButtonType . PRIMARY ,
4141 style,
4242 ...props
4343} ) => {
@@ -46,10 +46,10 @@ export const FloatingButton: React.FC<FloatingButtonProps> = ({
4646
4747 const colors = useMemo (
4848 ( ) => ( {
49- [ FloatingButtonType . SURFACE ] : { backgroundColor : surfaceContainer . backgroundHigh , iconColor : primary . background } ,
50- [ FloatingButtonType . PRIMARY ] : { backgroundColor : primaryContainer . background , iconColor : primaryContainer . text } ,
51- [ FloatingButtonType . SECONDARY ] : { backgroundColor : secondaryContainer . background , iconColor : secondaryContainer . text } ,
52- [ FloatingButtonType . TERTIARY ] : { backgroundColor : tertiaryContainer . background , iconColor : tertiaryContainer . text } ,
49+ [ FloatingActionButtonType . SURFACE ] : { backgroundColor : surfaceContainer . backgroundHigh , iconColor : primary . background } ,
50+ [ FloatingActionButtonType . PRIMARY ] : { backgroundColor : primaryContainer . background , iconColor : primaryContainer . text } ,
51+ [ FloatingActionButtonType . SECONDARY ] : { backgroundColor : secondaryContainer . background , iconColor : secondaryContainer . text } ,
52+ [ FloatingActionButtonType . TERTIARY ] : { backgroundColor : tertiaryContainer . background , iconColor : tertiaryContainer . text } ,
5353 } ) ,
5454 [ ]
5555 ) ;
0 commit comments