@bitrise/bitkit 13.275.0 → 13.276.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
CHANGED
|
@@ -8,6 +8,7 @@ import Tr, { RowProps } from './Tr';
|
|
|
8
8
|
export interface CheckableRowProps extends RowProps {
|
|
9
9
|
id: string;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
|
+
isReversed?: boolean;
|
|
11
12
|
label: ReactNode;
|
|
12
13
|
name: string;
|
|
13
14
|
tooltipProps?: Omit<TooltipProps, 'children' | 'shouldWrapChildren'>;
|
|
@@ -15,7 +16,7 @@ export interface CheckableRowProps extends RowProps {
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
const CheckableRow = (props: CheckableRowProps) => {
|
|
18
|
-
const { children, id, isDisabled, label, name, tooltipProps, value, ...rest } = props;
|
|
19
|
+
const { children, id, isDisabled, isReversed, label, name, tooltipProps, value, ...rest } = props;
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<Tooltip isDisabled={!tooltipProps} placement="right" {...tooltipProps}>
|
|
@@ -35,15 +36,22 @@ const CheckableRow = (props: CheckableRowProps) => {
|
|
|
35
36
|
transform="scale(1)"
|
|
36
37
|
{...rest}
|
|
37
38
|
>
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
39
|
+
{!isReversed && (
|
|
40
|
+
<Td>
|
|
41
|
+
<Checkbox id={id} isDisabled={isDisabled} name={name} value={value} zIndex="1" />
|
|
42
|
+
</Td>
|
|
43
|
+
)}
|
|
41
44
|
<Td>
|
|
42
45
|
<LinkOverlay as="label" cursor={isDisabled ? 'not-allowed' : 'pointer'} htmlFor={id}>
|
|
43
46
|
{label}
|
|
44
47
|
</LinkOverlay>
|
|
45
48
|
</Td>
|
|
46
49
|
{children}
|
|
50
|
+
{!!isReversed && (
|
|
51
|
+
<Td textAlign="right">
|
|
52
|
+
<Checkbox id={id} isDisabled={isDisabled} name={name} value={value} zIndex="1" />
|
|
53
|
+
</Td>
|
|
54
|
+
)}
|
|
47
55
|
</LinkBox>
|
|
48
56
|
</Tooltip>
|
|
49
57
|
);
|