1
1
import React from 'react' ;
2
-
2
+ import { Fab , FabIcon , FabLabel } from '@/components/ui/Fab' ;
3
+ import { Avatar , AvatarImage } from '@/components/ui/Avatar' ;
4
+ import { AddIcon , MenuIcon , SearchIcon , CheckIcon } from '@/components/ui/Icon' ;
5
+ import { Box } from '@/components/ui/Box' ;
3
6
import {
4
- AddIcon ,
5
- Box ,
6
- MenuIcon ,
7
7
Checkbox ,
8
8
CheckboxIndicator ,
9
9
CheckboxLabel ,
10
- SearchIcon ,
11
- Link ,
12
- VStack ,
13
- HStack ,
14
- Avatar ,
15
- AvatarImage ,
16
- Heading ,
17
- Text ,
18
- Divider ,
19
- Image ,
20
10
CheckboxIcon ,
21
- } from '@gluestack-ui/themed' ;
22
-
23
- import { Fab , FabIcon , FabLabel } from '@/components/ui/Fab' ;
24
-
25
- import { CheckIcon , EditIcon , ShoppingCartIcon } from 'lucide-react-native' ;
26
-
27
- const FabBasic = ( {
28
- placement = 'bottom right' ,
29
- showLabel = true ,
30
- showIcon = true ,
31
- ...props
32
- } : any ) => {
33
- return (
34
- < Box
35
- position = "relative"
36
- bg = "$trueGray200"
37
- h = "$full"
38
- w = "$full"
39
- sx = { { _web : { w : 300 , h : 300 } } }
40
- >
41
- < Fab placement = { placement } gap = "$1" { ...props } >
42
- { showIcon && < FabIcon as = { MenuIcon } /> }
43
- { showLabel && < FabLabel > Menu</ FabLabel > }
44
- </ Fab >
45
- </ Box >
46
- ) ;
47
- } ;
48
-
49
- const FigmaFabStory = ( {
50
- placement = 'bottom right' ,
51
- showLabel = true ,
52
- _showIcon = true ,
53
- ...props
54
- } : any ) => {
11
+ } from '@/components/ui/Checkbox' ;
12
+ import { Link } from '@/components/ui/Link' ;
13
+ import { VStack } from '@/components/ui/VStack' ;
14
+ import { HStack } from '@/components/ui/HStack' ;
15
+ import { Heading } from '@/components/ui/Heading' ;
16
+ import { Text } from '@/components/ui/Text' ;
17
+ import { Divider } from '@/components/ui/Divider' ;
18
+ import { Image } from '@/components/ui/Image' ;
19
+ import { EditIcon , ShoppingCartIcon } from 'lucide-react-native' ;
20
+
21
+ const FabBasic = ( props : any ) => {
55
22
return (
56
- < Box sx = { { _web : { w : 250 , h : 80 } } } >
57
- < Fab placement = { placement } { ...props } gap = "$1" >
58
- < FabIcon as = { MenuIcon } />
59
- { showLabel && < Fab . Label > Menu</ Fab . Label > }
23
+ < Box className = "h-[300px] w-[300px] bg-background-200 rounded-md " >
24
+ < Fab placement = { props . placement } { ...props } >
25
+ { props . showIcon && < FabIcon as = { MenuIcon } /> }
26
+ { props . showLabel && < FabLabel > Menu</ FabLabel > }
60
27
</ Fab >
61
28
</ Box >
62
29
) ;
@@ -68,27 +35,27 @@ FabBasic.description =
68
35
export default FabBasic ;
69
36
70
37
export {
71
- FigmaFabStory ,
72
38
Fab ,
73
39
FabIcon ,
74
40
FabLabel ,
75
- SearchIcon ,
76
- EditIcon ,
77
- Box ,
78
- VStack ,
79
- HStack ,
80
41
Avatar ,
81
42
AvatarImage ,
82
- Heading ,
83
- Text ,
84
- Divider ,
85
43
AddIcon ,
44
+ MenuIcon ,
45
+ SearchIcon ,
46
+ CheckIcon ,
47
+ Box ,
86
48
Checkbox ,
87
49
CheckboxIndicator ,
88
50
CheckboxLabel ,
89
51
CheckboxIcon ,
90
- CheckIcon ,
91
- Image ,
92
52
Link ,
53
+ VStack ,
54
+ HStack ,
55
+ Heading ,
56
+ Text ,
57
+ Divider ,
58
+ Image ,
59
+ EditIcon ,
93
60
ShoppingCartIcon ,
94
61
} ;
0 commit comments