@bitrise/bitkit 10.18.2 → 10.19.0-alpha-chakra.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/Form/Form.theme.ts +32 -0
- package/src/Components/Form/Textarea/Textarea.stories.tsx +20 -0
- package/src/Components/Form/Textarea/Textarea.theme.ts +31 -0
- package/src/Components/Form/Textarea/Textarea.tsx +34 -0
- package/src/Components/Toggle/Toggle.theme.ts +4 -6
- package/src/Components/Toggle/Toggle.tsx +7 -3
- package/src/index.ts +3 -0
- package/src/old.ts +0 -3
- package/src/theme.ts +4 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Textarea/Textarea.css +0 -34
- package/src/Old/Textarea/Textarea.tsx +0 -23
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.TextArea {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
min-width: 0;
|
|
5
|
-
border: 0.0625rem solid var(--color-gray--3);
|
|
6
|
-
border-radius: var(--size--x1);
|
|
7
|
-
box-shadow: inset 0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
|
|
8
|
-
background-color: var(--color-white);
|
|
9
|
-
color: var(--color-grape--5);
|
|
10
|
-
line-height: inherit;
|
|
11
|
-
resize: none;
|
|
12
|
-
transition-property: background-color, border-color, box-shadow;
|
|
13
|
-
transition-duration: var(--transition-duration--base);
|
|
14
|
-
transition-timing-function: var(--transition-timing-function);
|
|
15
|
-
appearance: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.TextArea::placeholder { color: var(--color-gray--7); }
|
|
19
|
-
.TextArea:disabled { background-color: var(--color-gray--2); }
|
|
20
|
-
|
|
21
|
-
.TextArea--invalid {
|
|
22
|
-
border-color: var(--color-red--3);
|
|
23
|
-
color: var(--color-red--3);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.TextArea--invalid::placeholder { color: var(--color-red--3); }
|
|
27
|
-
|
|
28
|
-
.TextArea:focus,
|
|
29
|
-
.TextArea--invalid:focus {
|
|
30
|
-
outline: none;
|
|
31
|
-
border-color: var(--color-grape--3);
|
|
32
|
-
box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
|
|
33
|
-
color: var(--color-grape--5);
|
|
34
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import './Textarea.css';
|
|
5
|
-
|
|
6
|
-
export interface Props extends FlexProps {
|
|
7
|
-
/** Applies styling to indicate the textarea is invalid */
|
|
8
|
-
invalid?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Flex enabled textarea element component.
|
|
13
|
-
*/
|
|
14
|
-
const Textarea: React.FunctionComponent<Props> = (props: Props) => {
|
|
15
|
-
const { invalid, ...rest } = props;
|
|
16
|
-
const classes = classnames('TextArea', {
|
|
17
|
-
'TextArea--invalid': invalid,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
return <Flex {...rest} Component="textarea" className={classes} padding="x4" />;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default Textarea;
|