@symply.io/basic-components 1.3.10 → 1.3.11-alpha.1

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.
@@ -7,7 +7,8 @@ export interface ShowPromptProps {
7
7
  message: string | 400;
8
8
  timeout?: number;
9
9
  }
10
- export declare const PromptProvider: (props: PromptProviderProps) => JSX.Element;
10
+ export declare function PromptProvider(props: PromptProviderProps): JSX.Element;
11
11
  export declare function usePrompt(): {
12
12
  showPrompt: (props: ShowPromptProps) => void;
13
13
  };
14
+ export default usePrompt;
@@ -14,7 +14,7 @@ import { createContext, useRef, useContext } from "react";
14
14
  import Logics from "./Logics";
15
15
  import ToastPrompt from "./Presentation";
16
16
  var PromptContext = createContext({});
17
- export var PromptProvider = function (props) {
17
+ export function PromptProvider(props) {
18
18
  var children = props.children;
19
19
  var toastRef = useRef(null);
20
20
  function showPrompt(props) {
@@ -23,7 +23,8 @@ export var PromptProvider = function (props) {
23
23
  show(type, message, timeout);
24
24
  }
25
25
  return (_jsx(PromptContext.Provider, __assign({ value: { showPrompt: showPrompt } }, { children: _jsxs(_Fragment, { children: [children, _jsx(Logics, __assign({ ref: toastRef }, { children: _jsx(ToastPrompt, {}) }))] }) })));
26
- };
26
+ }
27
27
  export function usePrompt() {
28
28
  return useContext(PromptContext);
29
29
  }
30
+ export default usePrompt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symply.io/basic-components",
3
- "version": "1.3.10",
3
+ "version": "1.3.11-alpha.1",
4
4
  "description": "Basic and reusable components for all frontend of Symply apps",
5
5
  "keywords": [
6
6
  "react",