@bitrise/bitkit 10.3.0-alpha-cleanup.2 → 10.4.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.
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import Button, { ButtonProps } from '../../Components/Button/Button';
3
-
4
- export type Props = Omit<ButtonProps, 'level'>;
5
-
6
- /**
7
- * A Button under the hood, but set up with a
8
- * standard prop configuration for a Dropdown.
9
- */
10
- const DropdownButton: React.FunctionComponent<Props> = (props: Props) => {
11
- return <Button width="100%" variant="secondary" rightIconName="ChevronDown" {...props} />;
12
- };
13
-
14
- export default DropdownButton;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import PlacementArea, { Props as PlacementAreaProps } from '../Placement/PlacementArea';
3
-
4
- export type Props = PlacementAreaProps;
5
-
6
- /**
7
- * Provides a horizontal flex environment for a
8
- * dual view dropdown menu.
9
- */
10
- const DropdownMenus: React.FunctionComponent<Props> = (props: Props) => {
11
- return <PlacementArea {...props} direction="horizontal" />;
12
- };
13
-
14
- export default DropdownMenus;
@@ -1,4 +0,0 @@
1
- .Image {
2
- display: block;
3
- max-width: 100%;
4
- }
@@ -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;
@@ -1,3 +0,0 @@
1
- .List {
2
- padding-left: var(--size--x4);
3
- }
@@ -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,34 +0,0 @@
1
- .Ribbon {
2
- border: solid transparent;
3
- border-width: 0.0625rem 0;
4
- }
5
-
6
- .Ribbon--type-alert {
7
- border-color: var(--color-red--3);
8
- background-color: var(--color-red--1);
9
- color: var(--color-red--4);
10
- }
11
-
12
- .Ribbon--type-inform {
13
- border-color: var(--color-blue--2);
14
- background-color: var(--color-blue--1);
15
- color: var(--color-blue--4);
16
- }
17
-
18
- .Ribbon--type-progress {
19
- border-color: var(--color-grape--2);
20
- background-color: var(--color-grape--1);
21
- color: var(--color-eggplant);
22
- }
23
-
24
- .Ribbon--type-success {
25
- border-color: var(--color-green--2);
26
- background-color: var(--color-green--1);
27
- color: var(--color-green--5);
28
- }
29
-
30
- .Ribbon--type-warning {
31
- border-color: var(--color-yellow--3);
32
- background-color: var(--color-yellow--1);
33
- color: var(--color-yellow--5);
34
- }
@@ -1,50 +0,0 @@
1
- import * as React from 'react';
2
- import classnames from 'classnames';
3
- import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Icon from '../../Components/Icon/Icon';
5
- import Link from '../../Components/Link/Link';
6
- import './Ribbon.css';
7
- import Base from '../Base/Base';
8
-
9
- type TypeRibbonType = 'alert' | 'inform' | 'progress' | 'success' | 'warning';
10
-
11
- export interface Props extends FlexProps {
12
- /**
13
- * A callback to remove the ribbon, that when provided will
14
- * render a clickable cross, that when clicked will call the given
15
- * function.
16
- */
17
- onRemove?: (e: React.SyntheticEvent) => void;
18
- /**
19
- * The type of the ribbon that affects the styling.
20
- */
21
- type: TypeRibbonType;
22
- }
23
-
24
- /**
25
- * Ribbon component used to inform the user of something system wide important message.
26
- */
27
- const Ribbon: React.FunctionComponent<Props> = (props: Props) => {
28
- const { children, type, onRemove, ...rest } = props;
29
-
30
- const classes = classnames('Ribbon', `Ribbon--type-${type}`);
31
-
32
- return (
33
- <Flex {...rest} className={classes} direction="horizontal" gap="x2" paddingHorizontal="x6" paddingVertical="x4">
34
- {onRemove && <Base width="1.5rem" />}
35
- <Flex grow initial="none">
36
- {children}
37
- </Flex>
38
- {onRemove && (
39
- <Flex>
40
- {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
41
- <Link as="button" onClick={onRemove}>
42
- <Icon name="CloseSmall" />
43
- </Link>
44
- </Flex>
45
- )}
46
- </Flex>
47
- );
48
- };
49
-
50
- export default Ribbon;
@@ -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;