@bitrise/bitkit 10.30.0-alpha-input.1 → 10.30.0
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/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 +0 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Components/Form/FormHelperText/FormHelperText.tsx +0 -9
- package/src/Components/Form/FormLabel/FormLabel.tsx +0 -9
- package/src/Old/Input/Input.css +0 -82
- package/src/Old/Input/Input.tsx +0 -14
- package/src/Old/Input/InputInlineHelp.tsx +0 -11
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FormLabel as ChakraFormLabel, FormLabelProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
const FormLabel = forwardRef<FormLabelProps, 'label'>((props, ref) => {
|
|
4
|
-
return <ChakraFormLabel {...props} ref={ref} />;
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export type { FormLabelProps };
|
|
8
|
-
|
|
9
|
-
export default FormLabel;
|
package/src/Old/Input/Input.css
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--Input--border: 0.0625rem;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.Input {
|
|
6
|
-
min-width: 0;
|
|
7
|
-
padding: calc(var(--size--x3) - var(--Input--border)) 0;
|
|
8
|
-
border: 0;
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
color: inherit;
|
|
11
|
-
text-overflow: ellipsis;
|
|
12
|
-
line-height: inherit;
|
|
13
|
-
appearance: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.Input:focus { outline: none; }
|
|
17
|
-
.Input::placeholder { color: var(--color-gray--7); }
|
|
18
|
-
|
|
19
|
-
.Input__container {
|
|
20
|
-
border: var(--Input--border) solid var(--color-gray--3);
|
|
21
|
-
border-radius: var(--size--x1);
|
|
22
|
-
box-shadow: inset 0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
|
|
23
|
-
background-color: var(--color-white);
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
transition-property: border-color, box-shadow;
|
|
26
|
-
transition-duration: var(--transition-duration--base);
|
|
27
|
-
transition-timing-function: var(--transition-timing-function);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.Input__content {
|
|
31
|
-
padding: 0 var(--size--x3);
|
|
32
|
-
border-right: var(--Input--border) solid var(--color-gray--3);
|
|
33
|
-
color: var(--color-grape--5);
|
|
34
|
-
transition-property: border-color, color;
|
|
35
|
-
transition-duration: var(--transition-duration--base);
|
|
36
|
-
transition-timing-function: var(--transition-timing-function);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.Input__content:last-child {
|
|
40
|
-
border-right: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.Input__content--outside {
|
|
44
|
-
background-color: var(--color-white);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.Input__content--outside:first-child {
|
|
48
|
-
border-top-left-radius: var(--size--x1);
|
|
49
|
-
border-bottom-left-radius: var(--size--x1);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.Input__content--outside:last-child {
|
|
53
|
-
border-top-right-radius: var(--size--x1);
|
|
54
|
-
border-bottom-right-radius: var(--size--x1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.Input__container--disabled,
|
|
58
|
-
.Input__container--readonly {
|
|
59
|
-
box-shadow: none;
|
|
60
|
-
background-color: var(--color-gray--1);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.Input__container--invalid,
|
|
64
|
-
.Input__container--invalid .Input__content,
|
|
65
|
-
.Input__container--invalid .Input::placeholder {
|
|
66
|
-
border-color: var(--color-red--3);
|
|
67
|
-
color: var(--color-red--3);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.Input__container:focus-within {
|
|
71
|
-
border-color: var(--color-grape--3);
|
|
72
|
-
box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.Input__container:focus-within .Input__content {
|
|
76
|
-
border-color: var(--color-grape--3);
|
|
77
|
-
color: var(--color-grape--5);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.Input__content .Input {
|
|
81
|
-
box-shadow: none;
|
|
82
|
-
}
|
package/src/Old/Input/Input.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
3
|
-
|
|
4
|
-
export type Props = FlexProps;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Flex enabled input element component. Should be used in conjunction
|
|
8
|
-
* with the Container and Content components for styling.
|
|
9
|
-
*/
|
|
10
|
-
const Input: React.FunctionComponent<Props> = (props: Props) => {
|
|
11
|
-
return <Flex {...props} Component="input" className="Input" grow />;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default Input;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Text, { TextProps } from '../../Components/Text/Text';
|
|
3
|
-
|
|
4
|
-
export type Props = TextProps;
|
|
5
|
-
|
|
6
|
-
/** Provides specific styling for an inline input label */
|
|
7
|
-
const InputInlineHelp: React.FunctionComponent<Props> = (props: Props) => {
|
|
8
|
-
return <Text marginY="8" size="2" color="neutral.50" {...props} />;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default InputInlineHelp;
|