@bitrise/bitkit 10.2.1 → 10.2.2
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/Old/Status/Status500.tsx +2 -2
- package/src/old.ts +0 -24
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Image/Image.css +0 -4
- package/src/Old/Image/Image.tsx +0 -15
- package/src/Old/List/List.css +0 -3
- package/src/Old/List/List.tsx +0 -14
- package/src/Old/List/ListItem.tsx +0 -13
- package/src/Old/Portal/Portal.tsx +0 -15
- package/src/Old/RadioButton/RadioButton.css +0 -46
- package/src/Old/RadioButton/RadioButton.tsx +0 -27
- package/src/Old/Status/Status404.tsx +0 -43
package/src/Old/Image/Image.css
DELETED
package/src/Old/Image/Image.tsx
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Base, { Props as BaseProps } from '../Base/Base';
|
|
3
|
-
import './Image.css';
|
|
4
|
-
|
|
5
|
-
export type Props = BaseProps;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Standard img element component component, that scales to the
|
|
9
|
-
* available container width
|
|
10
|
-
* */
|
|
11
|
-
const Image: React.FunctionComponent<Props> = (props: Props) => {
|
|
12
|
-
return <Base {...props} Component="img" className="Image" />;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default Image;
|
package/src/Old/List/List.css
DELETED
package/src/Old/List/List.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Base, { Props as BaseProps } from '../Base/Base';
|
|
3
|
-
import './List.css';
|
|
4
|
-
|
|
5
|
-
export type Props = BaseProps;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Standard unordered list component.
|
|
9
|
-
*/
|
|
10
|
-
const List: React.FunctionComponent<Props> = (props: Props) => {
|
|
11
|
-
return <Base {...props} Component="ul" className="List" />;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default List;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Base, { Props as BaseProps } from '../Base/Base';
|
|
3
|
-
|
|
4
|
-
export type Props = BaseProps;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Standard list item component.
|
|
8
|
-
*/
|
|
9
|
-
const ListItem: React.FunctionComponent<Props> = (props: Props) => {
|
|
10
|
-
return <Base {...props} Component="li" className="List__item" />;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default ListItem;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { createPortal } from 'react-dom';
|
|
3
|
-
|
|
4
|
-
export interface Props {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
element: Element;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const Portal: React.FunctionComponent<Props> = (props: Props) => {
|
|
10
|
-
const { children, element } = props;
|
|
11
|
-
|
|
12
|
-
return createPortal(children, element);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default Portal;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--Checkbox--size: var(--size--x6);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.RadioButton__input {
|
|
6
|
-
position: absolute;
|
|
7
|
-
opacity: 0;
|
|
8
|
-
z-index: -1;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.RadioButton__indicator {
|
|
12
|
-
width: var(--Checkbox--size);
|
|
13
|
-
height: var(--Checkbox--size);
|
|
14
|
-
border: 0.0625rem solid var(--color-gray--3);
|
|
15
|
-
border-radius: 50%;
|
|
16
|
-
box-shadow: inset 0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
|
|
17
|
-
background-color: var(--color-white);
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
transition-property: border-color, box-shadow, background-color, color;
|
|
20
|
-
transition-duration: var(--transition-duration--base);
|
|
21
|
-
transition-timing-function: var(--transition-timing-function);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.RadioButton__circle {
|
|
25
|
-
width: 1rem;
|
|
26
|
-
height: 1rem;
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
transition-property: background-color;
|
|
30
|
-
transition-duration: var(--transition-duration--base);
|
|
31
|
-
transition-timing-function: var(--transition-timing-function);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.RadioButton__input:disabled + .RadioButton__indicator {
|
|
35
|
-
background-color: var(--color-gray--2);
|
|
36
|
-
cursor: default;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.RadioButton__input:focus + .RadioButton__indicator {
|
|
40
|
-
border-color: var(--color-grape--3);
|
|
41
|
-
box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.RadioButton__input:checked + .RadioButton__indicator .RadioButton__circle {
|
|
45
|
-
background-color: var(--color-eggplant);
|
|
46
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Flex from '../Flex/Flex';
|
|
3
|
-
import './RadioButton.css';
|
|
4
|
-
|
|
5
|
-
export type Props = React.InputHTMLAttributes<HTMLInputElement>;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Run-of-the-mill RadioButton component.
|
|
9
|
-
*/
|
|
10
|
-
const RadioButton: React.FunctionComponent<Props> = (props: Props) => {
|
|
11
|
-
const { children, ...rest } = props;
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Flex Component="label" alignChildrenVertical="middle" className="RadioButton" direction="horizontal" gap="x2">
|
|
15
|
-
<Flex>
|
|
16
|
-
<input {...rest} className="RadioButton__input" type="radio" />
|
|
17
|
-
<Flex alignChildren="middle" className="RadioButton__indicator" direction="horizontal">
|
|
18
|
-
<span className="RadioButton__circle" />
|
|
19
|
-
</Flex>
|
|
20
|
-
</Flex>
|
|
21
|
-
|
|
22
|
-
{children && <Flex textColor="purple.10">{children}</Flex>}
|
|
23
|
-
</Flex>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default RadioButton;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useMediaQuery } from '../hooks';
|
|
3
|
-
import Flex, { Props as FlexProps } from '../Flex/Flex';
|
|
4
|
-
import Image from '../Image/Image';
|
|
5
|
-
import Text from '../../Components/Text/Text';
|
|
6
|
-
|
|
7
|
-
export type Props = FlexProps;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A composite component used as a placeholder page for when there
|
|
11
|
-
* is a 404 page cannot be found error.
|
|
12
|
-
*/
|
|
13
|
-
const Status404: React.FunctionComponent<Props> = (props: Props) => {
|
|
14
|
-
const match = useMediaQuery(['65rem']);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Flex {...props}>
|
|
18
|
-
<Flex
|
|
19
|
-
alignChildren="middle"
|
|
20
|
-
direction={match('65rem') ? 'horizontal' : 'vertical'}
|
|
21
|
-
gap={match('65rem') ? 'x8' : 'x4'}
|
|
22
|
-
paddingHorizontal="x6"
|
|
23
|
-
>
|
|
24
|
-
<Text align="center" size="7" fontWeight="bold">
|
|
25
|
-
404
|
|
26
|
-
</Text>
|
|
27
|
-
<Text align="center" size="6" fontWeight="bold">
|
|
28
|
-
The coordinates you are looking for do not exist
|
|
29
|
-
</Text>
|
|
30
|
-
</Flex>
|
|
31
|
-
|
|
32
|
-
<Flex container grow height="33.125rem" overflow="hidden">
|
|
33
|
-
<Image
|
|
34
|
-
absolute="center"
|
|
35
|
-
height="530px"
|
|
36
|
-
src="https://bitrise-bitkit.s3.us-east-2.amazonaws.com/assets/Status404.svg"
|
|
37
|
-
/>
|
|
38
|
-
</Flex>
|
|
39
|
-
</Flex>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default Status404;
|