@bitrise/bitkit 13.280.0 → 13.280.1-alpha.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.280.0",
4
+ "version": "13.280.1-alpha.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { ChakraProvider } from 'chakra-ui-2--react';
2
+ import { ChakraProvider, ChakraProviderProps } from 'chakra-ui-2--react';
3
3
 
4
4
  import '@fontsource/figtree/400.css';
5
5
  import '@fontsource/figtree/600.css';
@@ -9,16 +9,16 @@ import '@fontsource/source-code-pro/400.css';
9
9
  import { ResponsiveProvider } from '../../hooks/useResponsive';
10
10
  import theme from '../../theme';
11
11
 
12
- type ProviderProps = {
12
+ export interface ProviderProps extends Omit<ChakraProviderProps, 'toastOptions'> {
13
13
  children: ReactNode;
14
14
  toastOptions?: {
15
15
  offsetTop?: string;
16
16
  offsetRight?: string;
17
17
  portalRef: RefObject<HTMLElement>;
18
18
  };
19
- };
19
+ }
20
20
 
21
- const Provider = ({ children, toastOptions }: ProviderProps) => {
21
+ const Provider = ({ children, toastOptions, ...rest }: ProviderProps) => {
22
22
  return (
23
23
  <ChakraProvider
24
24
  theme={theme}
@@ -33,6 +33,7 @@ const Provider = ({ children, toastOptions }: ProviderProps) => {
33
33
  containerRef: toastOptions?.portalRef,
34
34
  },
35
35
  }}
36
+ {...rest}
36
37
  >
37
38
  <ResponsiveProvider>{children}</ResponsiveProvider>
38
39
  </ChakraProvider>