@bitrise/bitkit 13.242.0 → 13.244.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
|
@@ -386,6 +386,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
|
|
|
386
386
|
isError,
|
|
387
387
|
isWarning,
|
|
388
388
|
label,
|
|
389
|
+
labelHelp,
|
|
389
390
|
name,
|
|
390
391
|
onBlur,
|
|
391
392
|
onChange,
|
|
@@ -498,6 +499,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
|
|
|
498
499
|
badge={badge}
|
|
499
500
|
infoTooltipLabel={infoTooltipLabel}
|
|
500
501
|
infoTooltipProps={infoTooltipProps}
|
|
502
|
+
labelHelp={labelHelp}
|
|
501
503
|
htmlFor={buttonId}
|
|
502
504
|
>
|
|
503
505
|
{label}
|
|
@@ -10,13 +10,14 @@ export interface FormLabelProps extends ChakraFormLabelProps {
|
|
|
10
10
|
children?: string;
|
|
11
11
|
infoTooltipLabel?: string;
|
|
12
12
|
infoTooltipProps?: TooltipProps;
|
|
13
|
+
labelHelp?: (icon: ReactNode) => ReactNode;
|
|
13
14
|
maxLength?: number;
|
|
14
15
|
valueLength?: number;
|
|
15
16
|
withCounter?: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const FormLabel = forwardRef<FormLabelProps, 'label'>((props, ref) => {
|
|
19
|
-
const { badge, infoTooltipLabel, infoTooltipProps, maxLength, valueLength, withCounter, ...rest } = props;
|
|
20
|
+
const { badge, infoTooltipLabel, infoTooltipProps, labelHelp, maxLength, valueLength, withCounter, ...rest } = props;
|
|
20
21
|
|
|
21
22
|
const showLabel = rest.children || !!infoTooltipLabel || (withCounter && maxLength);
|
|
22
23
|
|
|
@@ -39,6 +40,8 @@ const FormLabel = forwardRef<FormLabelProps, 'label'>((props, ref) => {
|
|
|
39
40
|
ref={ref}
|
|
40
41
|
/>
|
|
41
42
|
|
|
43
|
+
{labelHelp?.(<Icon color="icon/tertiary" name="Info" size="16" />)}
|
|
44
|
+
|
|
42
45
|
{!!infoTooltipLabel && (
|
|
43
46
|
<Tooltip label={infoTooltipLabel} placement="right" {...infoTooltipProps}>
|
|
44
47
|
<Icon color="icon/tertiary" name="Info" size="16" />
|
|
@@ -10,7 +10,7 @@ export interface CheckableRowProps extends RowProps {
|
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
label: ReactNode;
|
|
12
12
|
name: string;
|
|
13
|
-
tooltipProps?: Omit<TooltipProps, 'children'>;
|
|
13
|
+
tooltipProps?: Omit<TooltipProps, 'children' | 'shouldWrapChildren'>;
|
|
14
14
|
value: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,34 +18,34 @@ const CheckableRow = (props: CheckableRowProps) => {
|
|
|
18
18
|
const { children, id, isDisabled, label, name, tooltipProps, value, ...rest } = props;
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
21
|
+
<Tooltip isDisabled={!tooltipProps} placement="right" {...tooltipProps}>
|
|
22
|
+
<LinkBox
|
|
23
|
+
_hover={{
|
|
24
|
+
':has(input:checked)': {
|
|
25
|
+
td: { background: 'purple.93' },
|
|
26
|
+
},
|
|
27
|
+
td: { background: 'neutral.95' },
|
|
28
|
+
}}
|
|
29
|
+
as={Tr}
|
|
30
|
+
sx={{
|
|
31
|
+
':has(input:checked)': {
|
|
32
|
+
td: { background: 'purple.95' },
|
|
33
|
+
},
|
|
34
|
+
}}
|
|
35
|
+
transform="scale(1)"
|
|
36
|
+
{...rest}
|
|
37
|
+
>
|
|
38
|
+
<Td>
|
|
39
39
|
<Checkbox id={id} isDisabled={isDisabled} name={name} value={value} zIndex="1" />
|
|
40
|
-
</
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</
|
|
40
|
+
</Td>
|
|
41
|
+
<Td>
|
|
42
|
+
<LinkOverlay as="label" cursor={isDisabled ? 'not-allowed' : 'pointer'} htmlFor={id}>
|
|
43
|
+
{label}
|
|
44
|
+
</LinkOverlay>
|
|
45
|
+
</Td>
|
|
46
|
+
{children}
|
|
47
|
+
</LinkBox>
|
|
48
|
+
</Tooltip>
|
|
49
49
|
);
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -9,7 +9,7 @@ export interface SelectableRowProps extends RowProps {
|
|
|
9
9
|
id: string;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
label: ReactNode;
|
|
12
|
-
tooltipProps?: Omit<TooltipProps, 'children'>;
|
|
12
|
+
tooltipProps?: Omit<TooltipProps, 'children' | 'shouldWrapChildren'>;
|
|
13
13
|
value: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -17,34 +17,34 @@ const SelectableRow = (props: SelectableRowProps) => {
|
|
|
17
17
|
const { children, id, isDisabled, label, tooltipProps, value, ...rest } = props;
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<
|
|
20
|
+
<Tooltip isDisabled={!tooltipProps} placement="right" {...tooltipProps}>
|
|
21
|
+
<LinkBox
|
|
22
|
+
_hover={{
|
|
23
|
+
':has(input:checked)': {
|
|
24
|
+
td: { background: 'purple.93' },
|
|
25
|
+
},
|
|
26
|
+
td: { background: 'neutral.95' },
|
|
27
|
+
}}
|
|
28
|
+
as={Tr}
|
|
29
|
+
sx={{
|
|
30
|
+
':has(input:checked)': {
|
|
31
|
+
td: { background: 'purple.95' },
|
|
32
|
+
},
|
|
33
|
+
}}
|
|
34
|
+
transform="scale(1)"
|
|
35
|
+
{...rest}
|
|
36
|
+
>
|
|
37
|
+
<Td>
|
|
38
38
|
<Radio id={id} isDisabled={isDisabled} value={value} zIndex="1" />
|
|
39
|
-
</
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</
|
|
39
|
+
</Td>
|
|
40
|
+
<Td>
|
|
41
|
+
<LinkOverlay as="label" cursor={isDisabled ? 'not-allowed' : 'pointer'} htmlFor={id}>
|
|
42
|
+
{label}
|
|
43
|
+
</LinkOverlay>
|
|
44
|
+
</Td>
|
|
45
|
+
{children}
|
|
46
|
+
</LinkBox>
|
|
47
|
+
</Tooltip>
|
|
48
48
|
);
|
|
49
49
|
};
|
|
50
50
|
|