@@ -28,9 +28,9 @@ const UploadArea = styled.div<{
28
28
$hasFile : boolean ;
29
29
$isError ?: boolean ;
30
30
} > `
31
- background-color: ${ ( { theme } ) => theme . click . card . secondary . color . background . default } ;
32
- border: ${ ( { theme } ) => `1px solid ${ theme . click . card . primary . color . stroke . default } ` } ;
33
- border-radius: 8px ;
31
+ background-color: ${ ( { theme } ) => theme . click . fileUpload . color . background . default } ;
32
+ border: ${ ( { theme } ) => `1px solid ${ theme . click . fileUpload . color . stroke . default } ` } ;
33
+ border-radius: ${ ( { theme } ) => ` ${ theme . click . fileUpload . md . radii . all } ` } ;
34
34
padding: ${ props => ( ! props . $hasFile ? "16px" : "8px" ) } ;
35
35
display: flex;
36
36
flex-direction: ${ props =>
@@ -69,31 +69,34 @@ const UploadArea = styled.div<{
69
69
${ props =>
70
70
props . $isError &&
71
71
css `
72
- background-color: ${ ( { theme } ) => theme . click . alert . color . background . danger } ;
72
+ background-color: ${ ( { theme } ) => theme . click . fileUpload . color . background . error } ;
73
73
border: none;
74
74
` }
75
75
` ;
76
76
77
+ const FileUploadTitle = styled ( Title ) `
78
+ font-family: ${ ( { theme } ) => theme . click . fileUpload . typography . title . default } ;
79
+ color: ${ ( { theme } ) => theme . click . fileUpload . color . title . default } ;
80
+ ` ;
81
+
82
+ const FileUploadDescription = styled ( Text ) `
83
+ font-family: ${ ( { theme } ) => theme . click . fileUpload . typography . description . default } ;
84
+ color: ${ ( { theme } ) => theme . click . fileUpload . color . description . default } ;
85
+ ` ;
86
+
77
87
const DocumentIcon = styled ( Icon ) `
78
88
svg {
79
- width: 24px ;
80
- height: 24px ;
81
- color: ${ ( { theme } ) => theme . global . color . text . muted } ;
89
+ width: ${ ( { theme } ) => theme . click . fileUpload . sm . icon . size . width } ;
90
+ height: ${ ( { theme } ) => theme . click . fileUpload . sm . icon . size . height } ;
91
+ color: ${ ( { theme } ) => theme . click . fileUpload . sm . color . icon . default } ;
82
92
}
83
93
` ;
84
94
85
95
const UploadIcon = styled ( Icon ) `
86
96
svg {
87
- width: 32px;
88
- height: 32px;
89
- ${ ( { theme } ) =>
90
- theme . name === "dark"
91
- ? `
92
- color: ${ theme . global . color . text . default } ;
93
- `
94
- : `
95
- color: ${ theme . global . color . text . default } ;
96
- ` }
97
+ width: ${ ( { theme } ) => theme . click . fileUpload . md . icon . size . width } ;
98
+ height: ${ ( { theme } ) => theme . click . fileUpload . md . icon . size . height } ;
99
+ color: ${ ( { theme } ) => theme . click . fileUpload . md . color . icon . default } ;
97
100
}
98
101
` ;
99
102
@@ -133,7 +136,7 @@ const FileInfo = styled.div`
133
136
134
137
const FileDetails = styled . div `
135
138
display: flex;
136
- gap: 8px ;
139
+ gap: ${ ( { theme } ) => theme . click . fileUpload . sm . space . gap } ;
137
140
border: none;
138
141
` ;
139
142
@@ -378,13 +381,10 @@ export const FileUpload = ({
378
381
$size = { size }
379
382
$hasFile = { false }
380
383
>
381
- < Title type = "h1" > { title } </ Title >
382
- < Text
383
- size = { "lg" }
384
- color = { "muted" }
385
- >
384
+ < FileUploadTitle type = "h1" > { title } </ FileUploadTitle >
385
+ < FileUploadDescription >
386
386
Files supported: { supportedFileTypes . join ( ", " ) }
387
- </ Text >
387
+ </ FileUploadDescription >
388
388
</ UploadText >
389
389
< Button
390
390
type = { "secondary" }
0 commit comments