@bitrise/bitkit 12.23.1 → 12.23.3
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
|
@@ -25,6 +25,7 @@ const IconButton = forwardRef<IconButtonProps, 'button'>((props, ref) => {
|
|
|
25
25
|
isDisabled,
|
|
26
26
|
isTooltipDisabled,
|
|
27
27
|
label,
|
|
28
|
+
size,
|
|
28
29
|
tooltipCloseDelay,
|
|
29
30
|
tooltipProps,
|
|
30
31
|
variant,
|
|
@@ -32,8 +33,9 @@ const IconButton = forwardRef<IconButtonProps, 'button'>((props, ref) => {
|
|
|
32
33
|
} = props;
|
|
33
34
|
const properties: ChakraIconButtonProps = {
|
|
34
35
|
as: isDisabled ? 'button' : as,
|
|
35
|
-
icon: <Icon name={iconName} />,
|
|
36
|
+
icon: <Icon name={iconName} size={size === 'small' ? '16' : '24'} />,
|
|
36
37
|
isDisabled,
|
|
38
|
+
size,
|
|
37
39
|
variant: isDanger ? `${variant}--danger` : variant,
|
|
38
40
|
...rest,
|
|
39
41
|
};
|
|
@@ -34,6 +34,7 @@ export interface ToggleProps extends Omit<FormControlProps, 'label' | 'onBlur' |
|
|
|
34
34
|
*/
|
|
35
35
|
const Toggle = forwardRef<ToggleProps, 'div'>((props, ref) => {
|
|
36
36
|
const {
|
|
37
|
+
'aria-label': ariaLabel,
|
|
37
38
|
'data-testid': dataTestid,
|
|
38
39
|
defaultChecked,
|
|
39
40
|
errorText,
|
|
@@ -57,6 +58,7 @@ const Toggle = forwardRef<ToggleProps, 'div'>((props, ref) => {
|
|
|
57
58
|
ref,
|
|
58
59
|
};
|
|
59
60
|
const switchProps = {
|
|
61
|
+
'aria-label': ariaLabel,
|
|
60
62
|
'data-testid': dataTestid,
|
|
61
63
|
defaultChecked,
|
|
62
64
|
id,
|