@thecb/components 9.2.0-beta.7 → 9.2.0-beta.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.2.0-beta.7",
3
+ "version": "9.2.0-beta.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as constants from "./constants";
2
+ import * as hooks from "./util/hooks";
2
3
  export * from "./components";
3
4
  export * from "./types/common";
4
- export { constants };
5
+ export { constants, hooks };
@@ -0,0 +1 @@
1
+ export { default as useToastNotification } from "./use-toast-notification";
@@ -1,4 +1,4 @@
1
- import { ToastVariants } from "../types/common";
1
+ import { ToastVariants } from "../../../types/common";
2
2
 
3
3
  export interface UseToastProps {
4
4
  timeout?: number;
@@ -18,6 +18,6 @@ export interface UseToastResult {
18
18
  hideToast: () => void;
19
19
  }
20
20
 
21
- export function useToastNotification({
21
+ export default function useToastNotification({
22
22
  timeout,
23
23
  }: UseToastProps): UseToastResult;
package/src/util/index.js CHANGED
@@ -3,7 +3,7 @@ import * as general from "./general";
3
3
  import * as theme from "./themeUtils";
4
4
  import useFocusInvalidInput from "./focusFirstInvalidInputHook";
5
5
  import useOutsideClick from "./useOutsideClick";
6
- import useToastNotification from "./useToastNotification";
6
+ import useToastNotification from "./hooks/use-toast-notification";
7
7
 
8
8
  export {
9
9
  formats,