@bitrise/bitkit 9.24.2 → 9.24.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.24.2",
4
+ "version": "9.24.3",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useToast as useChakraToast, ToastOptions as ChakraToastOptions } from '@chakra-ui/react';
2
+ import { useToast as useChakraToast, UseToastOptions } from '@chakra-ui/react';
3
3
  import { DateTime } from 'luxon';
4
4
  import Notification, {
5
5
  ActionProps,
@@ -14,8 +14,8 @@ export interface ToastOptions {
14
14
  description: React.ReactNode;
15
15
  status: NotificationProps['status'];
16
16
  action?: ActionProps;
17
- duration?: ChakraToastOptions['duration'];
18
- position?: ChakraToastOptions['position'];
17
+ duration?: UseToastOptions['duration'];
18
+ position?: UseToastOptions['position'];
19
19
  isClosable?: boolean;
20
20
  showTimestamp?: boolean;
21
21
  }
@@ -30,7 +30,7 @@ const useToast = () => {
30
30
  toast({
31
31
  isClosable: opts.isClosable,
32
32
  duration: opts.duration,
33
- position: opts.position,
33
+ position: opts.position || 'bottom',
34
34
  render: ({ onClose }) => (
35
35
  <Notification
36
36
  boxShadow="large"