@bitrise/bitkit 12.43.0-alpha-fileinput.1 → 12.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,7 +10,8 @@ const getContainerType = (hasSelectedFiles?: boolean) => {
|
|
|
10
10
|
justifyContent: 'space-between',
|
|
11
11
|
borderRadius: '8',
|
|
12
12
|
backgroundColor: 'neutral.100',
|
|
13
|
-
|
|
13
|
+
paddingX: '24',
|
|
14
|
+
paddingY: '16',
|
|
14
15
|
border: '1px solid',
|
|
15
16
|
borderColor: 'neutral.90',
|
|
16
17
|
};
|
|
@@ -94,7 +94,12 @@ const FileInput = forwardRef<FileInputProps, 'div'>((props, ref) => {
|
|
|
94
94
|
<Box __css={style.container} data-disabled={isDisabled || undefined}>
|
|
95
95
|
{selectedFileNames.length > 0 ? (
|
|
96
96
|
<>
|
|
97
|
-
<
|
|
97
|
+
<div>
|
|
98
|
+
<Text as="h6" size="2" fontWeight="bold">
|
|
99
|
+
Selected file
|
|
100
|
+
</Text>
|
|
101
|
+
<Text as="span">{selectedFileNames[0]}</Text>
|
|
102
|
+
</div>
|
|
98
103
|
<Button leftIconName="MinusRemove" size="small" variant="secondary" onClick={onRemoveClick}>
|
|
99
104
|
Remove
|
|
100
105
|
</Button>
|
|
@@ -114,8 +119,14 @@ const FileInput = forwardRef<FileInputProps, 'div'>((props, ref) => {
|
|
|
114
119
|
</Box>
|
|
115
120
|
)}
|
|
116
121
|
</Box>
|
|
117
|
-
<FormErrorMessage as="p"
|
|
118
|
-
|
|
122
|
+
<FormErrorMessage as="p" marginBlockStart="8">
|
|
123
|
+
{errorText || internalErrorMessage}
|
|
124
|
+
</FormErrorMessage>
|
|
125
|
+
{helperText && (
|
|
126
|
+
<FormHelperText as="p" marginBlockStart={isInvalid ? '4' : '8'}>
|
|
127
|
+
{helperText}
|
|
128
|
+
</FormHelperText>
|
|
129
|
+
)}
|
|
119
130
|
<Box
|
|
120
131
|
as="input"
|
|
121
132
|
aria-hidden="true"
|
|
@@ -3,14 +3,12 @@ import { defineStyleConfig } from '@chakra-ui/styled-system';
|
|
|
3
3
|
const ProgressBarTheme = defineStyleConfig({
|
|
4
4
|
baseStyle: {
|
|
5
5
|
filledTrack: {
|
|
6
|
-
backgroundColor: 'purple.
|
|
7
|
-
borderRadius: '8',
|
|
6
|
+
backgroundColor: 'purple.90',
|
|
8
7
|
height: '100%',
|
|
9
8
|
transition: '400ms',
|
|
10
9
|
},
|
|
11
10
|
track: {
|
|
12
|
-
backgroundColor: '
|
|
13
|
-
borderRadius: '8',
|
|
11
|
+
backgroundColor: 'transparent',
|
|
14
12
|
height: '4',
|
|
15
13
|
},
|
|
16
14
|
},
|