@bitrise/bitkit 13.86.0 → 13.88.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
|
@@ -360,7 +360,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
|
|
|
360
360
|
/>
|
|
361
361
|
{errorText && <FormErrorMessage as="p">{errorText}</FormErrorMessage>}
|
|
362
362
|
{!errorText && helperText && (
|
|
363
|
-
<FormHelperText data-disabled={disabled} as="p">
|
|
363
|
+
<FormHelperText data-disabled={disabled || undefined} as="p">
|
|
364
364
|
{helperText}
|
|
365
365
|
</FormHelperText>
|
|
366
366
|
)}
|
|
@@ -5,7 +5,7 @@ import Notification, { ActionProps, NotificationAction, NotificationProps } from
|
|
|
5
5
|
|
|
6
6
|
export interface ToastOptions {
|
|
7
7
|
title?: string;
|
|
8
|
-
description
|
|
8
|
+
description: React.ReactNode;
|
|
9
9
|
status: NotificationProps['status'];
|
|
10
10
|
action?: ActionProps;
|
|
11
11
|
duration?: UseToastOptions['duration'];
|
|
@@ -21,13 +21,6 @@ const useToast = () => {
|
|
|
21
21
|
if (opts.showTimestamp) {
|
|
22
22
|
timestamp = DateTime.now().toFormat('hh:mm:ssa');
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
let { description, title } = opts;
|
|
26
|
-
if (!description) {
|
|
27
|
-
title = '';
|
|
28
|
-
description = title;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
24
|
toast({
|
|
32
25
|
duration: opts.duration,
|
|
33
26
|
isClosable: opts.isClosable,
|
|
@@ -40,8 +33,8 @@ const useToast = () => {
|
|
|
40
33
|
status={opts.status || 'info'}
|
|
41
34
|
>
|
|
42
35
|
<Box display="flex" flexDirection="column">
|
|
43
|
-
{title && <AlertTitle>{title}</AlertTitle>}
|
|
44
|
-
{description && <AlertDescription>{description}</AlertDescription>}
|
|
36
|
+
{opts.title && <AlertTitle>{opts.title}</AlertTitle>}
|
|
37
|
+
{opts.description && <AlertDescription>{opts.description}</AlertDescription>}
|
|
45
38
|
{!opts.action && timestamp && <AlertDescription marginTop="8">{timestamp}</AlertDescription>}
|
|
46
39
|
{opts.action && <NotificationAction alignSelf="start" marginBottom="4" marginTop="8" {...opts.action} />}
|
|
47
40
|
</Box>
|