@bitrise/bitkit 10.20.0 → 10.20.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/Dropdown/Dropdown.stories.tsx +2 -2
- package/src/Old/DatePicker/DatePickerGrid.tsx +5 -3
- package/src/Old/DatePicker/DatePickerMonth.tsx +2 -2
- package/src/Old/Placement/Placement.tsx +3 -8
- package/src/Old/Progress/ProgressBitbot.tsx +3 -3
- package/src/old.ts +0 -31
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Grid/Grid.css +0 -40
- package/src/Old/Grid/Grid.test.tsx +0 -49
- package/src/Old/Grid/Grid.tsx +0 -76
- package/src/Old/Grid/__snapshots__/Grid.test.tsx.snap +0 -127
- package/src/Old/Logo/Logo.css +0 -3
- package/src/Old/Logo/Logo.tsx +0 -50
- package/src/Old/Modal/ModalContext.ts +0 -6
- package/src/Old/Status/Status500.tsx +0 -40
- package/src/Old/Table/Table.css +0 -77
- package/src/Old/Table/Table.tsx +0 -28
- package/src/Old/Table/TableBody.tsx +0 -14
- package/src/Old/Table/TableCell.tsx +0 -23
- package/src/Old/Table/TableHeader.tsx +0 -14
- package/src/Old/Table/TableHeaderCell.tsx +0 -62
- package/src/Old/Table/TableHeaderRow.tsx +0 -14
- package/src/Old/Table/TableRow.tsx +0 -23
- package/src/Old/Text/Text.css +0 -33
- package/src/Old/Text/Text.tsx +0 -87
- package/src/Old/Text/TextSizes.css +0 -0
package/package.json
CHANGED
|
@@ -114,8 +114,8 @@ export const Default: ComponentStoryFn<typeof Dropdown> = (args) => {
|
|
|
114
114
|
export const InsideDialog = () => {
|
|
115
115
|
return (
|
|
116
116
|
<Provider>
|
|
117
|
-
<Dialog isOpen isClosable>
|
|
118
|
-
<DialogBody>
|
|
117
|
+
<Dialog isOpen isClosable title="Dropdown inside Dialog">
|
|
118
|
+
<DialogBody paddingBottom="24">
|
|
119
119
|
<Dropdown search={false}>
|
|
120
120
|
<DropdownOption value="x">Test Opt1</DropdownOption>
|
|
121
121
|
</Dropdown>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Box, { BoxProps } from '../../Components/Box/Box';
|
|
3
3
|
|
|
4
|
-
type Props =
|
|
4
|
+
type Props = BoxProps;
|
|
5
5
|
|
|
6
6
|
const DatePickerGrid: React.FunctionComponent<Props> = (props: Props) => {
|
|
7
|
-
return
|
|
7
|
+
return (
|
|
8
|
+
<Box display="grid" {...props} gridTemplateColumns="repeat(7, 3rem)" gridAutoRows="max-content" gridRowGap="4" />
|
|
9
|
+
);
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
export default DatePickerGrid;
|
|
@@ -57,7 +57,7 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
57
57
|
</Flex>
|
|
58
58
|
</Flex>
|
|
59
59
|
|
|
60
|
-
<DatePickerGrid
|
|
60
|
+
<DatePickerGrid marginY="4">
|
|
61
61
|
{daysOfTheWeek.map((day) => (
|
|
62
62
|
<Text textAlign="center" key={day} paddingY="16" size="2" color="neutral.70" textTransform="uppercase">
|
|
63
63
|
{day}
|
|
@@ -65,7 +65,7 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
65
65
|
))}
|
|
66
66
|
</DatePickerGrid>
|
|
67
67
|
|
|
68
|
-
<DatePickerGrid
|
|
68
|
+
<DatePickerGrid borderTop="1px solid" borderTopColor="neutral.93" paddingY="8">
|
|
69
69
|
{Array.from({ length: daysCount }).map((_, i) => (
|
|
70
70
|
<DatePickerDay
|
|
71
71
|
dateSelectableFrom={dateSelectableFrom}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Placement as TypePlacement } from '@popperjs/core';
|
|
3
3
|
import { Props as BaseProps } from '../Base/Base';
|
|
4
|
-
import { ModalContext } from '../Modal/ModalContext';
|
|
5
4
|
import PlacementPopper from './PlacementPopper';
|
|
6
5
|
import './Placement.css';
|
|
7
6
|
|
|
@@ -63,13 +62,9 @@ export interface Props extends BaseProps {
|
|
|
63
62
|
* and PlacementReference. If the target is an existing reference element
|
|
64
63
|
* it can be used by iteself by using the referenceElement prop.
|
|
65
64
|
*/
|
|
66
|
-
const Placement: React.FunctionComponent<Props> = (props: Props) =>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{({ modalElement }) => <PlacementPopper {...props} closeElement={modalElement} isInsideModal={!!modalElement} />}
|
|
70
|
-
</ModalContext.Consumer>
|
|
71
|
-
);
|
|
72
|
-
};
|
|
65
|
+
const Placement: React.FunctionComponent<Props> = (props: Props) => (
|
|
66
|
+
<PlacementPopper {...props} closeElement={null} isInsideModal={false} />
|
|
67
|
+
);
|
|
73
68
|
|
|
74
69
|
Placement.defaultProps = {
|
|
75
70
|
flip: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Props as BaseProps } from '../Base/Base';
|
|
3
|
-
import Text from '
|
|
3
|
+
import Text from '../../Components/Text/Text';
|
|
4
4
|
|
|
5
5
|
export interface Props extends BaseProps {
|
|
6
6
|
/**
|
|
@@ -62,7 +62,7 @@ const ProgressBitbot: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
62
62
|
const { content, size, ...rest } = props;
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
|
-
<Text {...rest}
|
|
65
|
+
<Text {...rest} textAlign="center">
|
|
66
66
|
<svg fill="currentColor" height={size} viewBox="0 0 24 24" width={size}>
|
|
67
67
|
<g fill="currentColor" fillRule="evenodd" stroke="none" strokeWidth="1">
|
|
68
68
|
<path d={dot0}>
|
|
@@ -159,7 +159,7 @@ const ProgressBitbot: React.FunctionComponent<Props> = (props: Props) => {
|
|
|
159
159
|
</svg>
|
|
160
160
|
|
|
161
161
|
{content && (
|
|
162
|
-
<Text
|
|
162
|
+
<Text textAlign="center" size="1" textTransform="uppercase">
|
|
163
163
|
{content}
|
|
164
164
|
</Text>
|
|
165
165
|
)}
|
package/src/old.ts
CHANGED
|
@@ -27,9 +27,6 @@ export { default as DropdownMenuItemGroup } from './Old/Dropdown/DropdownMenuIte
|
|
|
27
27
|
export type { Props as FlexProps } from './Old/Flex/Flex';
|
|
28
28
|
export { default as Flex } from './Old/Flex/Flex';
|
|
29
29
|
|
|
30
|
-
export type { Props as GridProps } from './Old/Grid/Grid';
|
|
31
|
-
export { default as Grid } from './Old/Grid/Grid';
|
|
32
|
-
|
|
33
30
|
export type { Props as InputProps } from './Old/Input/Input';
|
|
34
31
|
export { default as Input } from './Old/Input/Input';
|
|
35
32
|
|
|
@@ -45,9 +42,6 @@ export { default as InputInlineHelp } from './Old/Input/InputInlineHelp';
|
|
|
45
42
|
export type { Props as InputLabelProps } from './Old/Input/InputLabel';
|
|
46
43
|
export { default as InputLabel } from './Old/Input/InputLabel';
|
|
47
44
|
|
|
48
|
-
export type { Props as LogoProps } from './Old/Logo/Logo';
|
|
49
|
-
export { default as Logo } from './Old/Logo/Logo';
|
|
50
|
-
|
|
51
45
|
export type { Props as ProgressBarProps } from './Old/Progress/ProgressBar';
|
|
52
46
|
export { default as ProgressBar } from './Old/Progress/ProgressBar';
|
|
53
47
|
|
|
@@ -63,31 +57,6 @@ export { default as Skeleton } from './Old/Skeleton/Skeleton';
|
|
|
63
57
|
export type { Props as SkeletonBoxProps } from './Old/Skeleton/SkeletonBox';
|
|
64
58
|
export { default as SkeletonBox } from './Old/Skeleton/SkeletonBox';
|
|
65
59
|
|
|
66
|
-
export type { Props as Status500Props } from './Old/Status/Status500';
|
|
67
|
-
export { default as Status500 } from './Old/Status/Status500';
|
|
68
|
-
|
|
69
|
-
export type { Props as OldTableProps } from './Old/Table/Table';
|
|
70
|
-
export { default as OldTable } from './Old/Table/Table';
|
|
71
|
-
|
|
72
|
-
export type { Props as OldTableBodyProps } from './Old/Table/TableBody';
|
|
73
|
-
export { default as OldTableBody } from './Old/Table/TableBody';
|
|
74
|
-
|
|
75
|
-
export type { Props as OldTableCellProps } from './Old/Table/TableCell';
|
|
76
|
-
export { default as OldTableCell } from './Old/Table/TableCell';
|
|
77
|
-
|
|
78
|
-
export type { Props as OldTableHeaderProps } from './Old/Table/TableHeader';
|
|
79
|
-
export { default as OldTableHeader } from './Old/Table/TableHeader';
|
|
80
|
-
|
|
81
|
-
export type { Props as OldTableHeaderCellProps } from './Old/Table/TableHeaderCell';
|
|
82
|
-
export type { TypeTableSort } from './Old/Table/TableHeaderCell';
|
|
83
|
-
export { default as OldTableHeaderCell } from './Old/Table/TableHeaderCell';
|
|
84
|
-
|
|
85
|
-
export type { Props as OldTableHeaderRowProps } from './Old/Table/TableHeaderRow';
|
|
86
|
-
export { default as OldTableHeaderRow } from './Old/Table/TableHeaderRow';
|
|
87
|
-
|
|
88
|
-
export type { Props as OldTableRowProps } from './Old/Table/TableRow';
|
|
89
|
-
export { default as OldTableRow } from './Old/Table/TableRow';
|
|
90
|
-
|
|
91
60
|
export type { Props as VisibilityProps } from './Old/Visibility/Visibility';
|
|
92
61
|
export { default as Visibility } from './Old/Visibility/Visibility';
|
|
93
62
|
|