@bitrise/bitkit 10.29.0-alpha-input.1 → 10.30.0-alpha-input.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 +1 -1
- package/src/Components/Fade/Fade.stories.tsx +5 -0
- package/src/Components/Fade/Fade.tsx +4 -0
- package/src/Components/Form/FormHelperText/FormHelperText.tsx +9 -0
- package/src/Components/Form/Input/Input.tsx +2 -2
- package/src/Components/Form/Textarea/Textarea.tsx +2 -2
- package/src/Components/Select/Select.tsx +2 -2
- package/src/Components/Toggle/Toggle.tsx +2 -2
- package/src/index.ts +6 -0
- package/src/old.ts +0 -18
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Input/InputContainer.tsx +0 -30
- package/src/Old/Input/InputContent.tsx +0 -35
- package/src/Old/Input/InputLabel.tsx +0 -16
- package/src/Old/Visibility/Visibility.css +0 -13
- package/src/Old/Visibility/Visibility.tsx +0 -29
- package/src/Old/Visibility/VisibilityContainer.tsx +0 -27
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.30.0-alpha-input.1",
|
|
5
5
|
"repository": "git@github.com:bitrise-io/bitkit.git",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormHelperText as ChakraFormHelperText, HelpTextProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const FormHelperText = forwardRef<HelpTextProps, 'div'>((props, ref) => {
|
|
4
|
+
return <ChakraFormHelperText {...props} ref={ref} />;
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
export type { HelpTextProps };
|
|
8
|
+
|
|
9
|
+
export default FormHelperText;
|
|
@@ -3,8 +3,6 @@ import {
|
|
|
3
3
|
FormControl,
|
|
4
4
|
FormControlProps,
|
|
5
5
|
FormErrorMessage,
|
|
6
|
-
FormHelperText,
|
|
7
|
-
FormLabel,
|
|
8
6
|
Input as ChakraInput,
|
|
9
7
|
InputProps as ChakraInputProps,
|
|
10
8
|
forwardRef,
|
|
@@ -13,6 +11,8 @@ import {
|
|
|
13
11
|
InputRightElement,
|
|
14
12
|
} from '@chakra-ui/react';
|
|
15
13
|
import Icon, { TypeIconName } from '../../Icon/Icon';
|
|
14
|
+
import FormLabel from '../FormLabel/FormLabel';
|
|
15
|
+
import FormHelperText from '../FormHelperText/FormHelperText';
|
|
16
16
|
|
|
17
17
|
type UsedFormControlProps = Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'>;
|
|
18
18
|
type UsedChakraInputProps = Pick<
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
FormControl,
|
|
4
4
|
FormControlProps,
|
|
5
5
|
FormErrorMessage,
|
|
6
|
-
FormHelperText,
|
|
7
|
-
FormLabel,
|
|
8
6
|
Textarea as ChakraTextarea,
|
|
9
7
|
TextareaProps as ChakraTextareaProps,
|
|
10
8
|
forwardRef,
|
|
11
9
|
} from '@chakra-ui/react';
|
|
10
|
+
import FormLabel from '../FormLabel/FormLabel';
|
|
11
|
+
import FormHelperText from '../FormHelperText/FormHelperText';
|
|
12
12
|
|
|
13
13
|
export interface TextareaProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
|
|
14
14
|
'data-testid'?: string;
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
FormControl,
|
|
4
4
|
FormControlProps,
|
|
5
5
|
FormErrorMessage,
|
|
6
|
-
FormHelperText,
|
|
7
|
-
FormLabel,
|
|
8
6
|
forwardRef,
|
|
9
7
|
Select as ChakraSelect,
|
|
10
8
|
SelectProps as ChakraSelectProps,
|
|
11
9
|
Spinner,
|
|
12
10
|
} from '@chakra-ui/react';
|
|
13
11
|
import Icon from '../Icon/Icon';
|
|
12
|
+
import FormLabel from '../Form/FormLabel/FormLabel';
|
|
13
|
+
import FormHelperText from '../Form/FormHelperText/FormHelperText';
|
|
14
14
|
|
|
15
15
|
export interface SelectProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
|
|
16
16
|
'data-testid'?: string;
|
|
@@ -3,8 +3,6 @@ import {
|
|
|
3
3
|
FormControl,
|
|
4
4
|
FormControlProps,
|
|
5
5
|
FormErrorMessage,
|
|
6
|
-
FormHelperText,
|
|
7
|
-
FormLabel,
|
|
8
6
|
Spinner,
|
|
9
7
|
Switch,
|
|
10
8
|
SwitchProps,
|
|
@@ -12,6 +10,8 @@ import {
|
|
|
12
10
|
useMultiStyleConfig,
|
|
13
11
|
} from '@chakra-ui/react';
|
|
14
12
|
import Box from '../Box/Box';
|
|
13
|
+
import FormLabel from '../Form/FormLabel/FormLabel';
|
|
14
|
+
import FormHelperText from '../Form/FormHelperText/FormHelperText';
|
|
15
15
|
|
|
16
16
|
export interface ToggleProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
|
|
17
17
|
'data-testid'?: string;
|
package/src/index.ts
CHANGED
|
@@ -202,8 +202,14 @@ export { default as Collapse } from './Components/Collapse/Collapse';
|
|
|
202
202
|
export type { TextareaProps } from './Components/Form/Textarea/Textarea';
|
|
203
203
|
export { default as Textarea } from './Components/Form/Textarea/Textarea';
|
|
204
204
|
|
|
205
|
+
export type { FadeProps } from './Components/Fade/Fade';
|
|
206
|
+
export { default as Fade } from './Components/Fade/Fade';
|
|
207
|
+
|
|
205
208
|
export type { InputProps } from './Components/Form/Input/Input';
|
|
206
209
|
export { default as Input } from './Components/Form/Input/Input';
|
|
207
210
|
|
|
208
211
|
export type { FormLabelProps } from './Components/Form/FormLabel/FormLabel';
|
|
209
212
|
export { default as FormLabel } from './Components/Form/FormLabel/FormLabel';
|
|
213
|
+
|
|
214
|
+
export type { HelpTextProps as FormHelperTextProps } from './Components/Form/FormHelperText/FormHelperText';
|
|
215
|
+
export { default as FormHelperText } from './Components/Form/FormHelperText/FormHelperText';
|
package/src/old.ts
CHANGED
|
@@ -18,18 +18,6 @@ export { default as DatePicker } from './Old/DatePicker/DatePicker';
|
|
|
18
18
|
export type { Props as FlexProps } from './Old/Flex/Flex';
|
|
19
19
|
export { default as Flex } from './Old/Flex/Flex';
|
|
20
20
|
|
|
21
|
-
export type { Props as InputContainerProps } from './Old/Input/InputContainer';
|
|
22
|
-
export { default as InputContainer } from './Old/Input/InputContainer';
|
|
23
|
-
|
|
24
|
-
export type { Props as InputContentProps } from './Old/Input/InputContent';
|
|
25
|
-
export { default as InputContent } from './Old/Input/InputContent';
|
|
26
|
-
|
|
27
|
-
export type { Props as InputInlineHelpProps } from './Old/Input/InputInlineHelp';
|
|
28
|
-
export { default as InputInlineHelp } from './Old/Input/InputInlineHelp';
|
|
29
|
-
|
|
30
|
-
export type { Props as InputLabelProps } from './Old/Input/InputLabel';
|
|
31
|
-
export { default as InputLabel } from './Old/Input/InputLabel';
|
|
32
|
-
|
|
33
21
|
export type { Props as ProgressBarProps } from './Old/Progress/ProgressBar';
|
|
34
22
|
export { default as ProgressBar } from './Old/Progress/ProgressBar';
|
|
35
23
|
|
|
@@ -44,9 +32,3 @@ export { default as Skeleton } from './Old/Skeleton/Skeleton';
|
|
|
44
32
|
|
|
45
33
|
export type { Props as SkeletonBoxProps } from './Old/Skeleton/SkeletonBox';
|
|
46
34
|
export { default as SkeletonBox } from './Old/Skeleton/SkeletonBox';
|
|
47
|
-
|
|
48
|
-
export type { Props as VisibilityProps } from './Old/Visibility/Visibility';
|
|
49
|
-
export { default as Visibility } from './Old/Visibility/Visibility';
|
|
50
|
-
|
|
51
|
-
export type { Props as VisibilityContainerProps } from './Old/Visibility/VisibilityContainer';
|
|
52
|
-
export { default as VisibilityContainer } from './Old/Visibility/VisibilityContainer';
|