@natoora-libs/core 0.0.34 → 0.0.35

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.
@@ -1,49 +0,0 @@
1
- import * as prop_types from 'prop-types';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- declare const useError: () => {
5
- setError: (error: any) => void;
6
- };
7
- declare const ErrorProvider: {
8
- ({ children }: {
9
- children: any;
10
- }): react_jsx_runtime.JSX.Element;
11
- propTypes: {
12
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
13
- };
14
- };
15
-
16
- declare const useFeeback: () => {
17
- /**
18
- * @param {object} arguments
19
- * @param {string} arguments.message - Content of the feedback
20
- * @param {string} arguments.type - Type of the feedback. Can be either: success | error
21
- */
22
- setFeedback: ({ message, type }: {
23
- message: any;
24
- type: any;
25
- }) => void;
26
- };
27
- declare const FeedbackProvider: {
28
- ({ children }: {
29
- children: any;
30
- }): react_jsx_runtime.JSX.Element;
31
- propTypes: {
32
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
33
- };
34
- };
35
-
36
- declare const useLoading: () => {
37
- isLoading: boolean;
38
- setLoading: (isLoading: any) => void;
39
- };
40
- declare const LoadingProvider: {
41
- ({ children }: {
42
- children: any;
43
- }): react_jsx_runtime.JSX.Element;
44
- propTypes: {
45
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
46
- };
47
- };
48
-
49
- export { ErrorProvider, FeedbackProvider, LoadingProvider, useError, useFeeback, useLoading };
@@ -1,49 +0,0 @@
1
- import * as prop_types from 'prop-types';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- declare const useError: () => {
5
- setError: (error: any) => void;
6
- };
7
- declare const ErrorProvider: {
8
- ({ children }: {
9
- children: any;
10
- }): react_jsx_runtime.JSX.Element;
11
- propTypes: {
12
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
13
- };
14
- };
15
-
16
- declare const useFeeback: () => {
17
- /**
18
- * @param {object} arguments
19
- * @param {string} arguments.message - Content of the feedback
20
- * @param {string} arguments.type - Type of the feedback. Can be either: success | error
21
- */
22
- setFeedback: ({ message, type }: {
23
- message: any;
24
- type: any;
25
- }) => void;
26
- };
27
- declare const FeedbackProvider: {
28
- ({ children }: {
29
- children: any;
30
- }): react_jsx_runtime.JSX.Element;
31
- propTypes: {
32
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
33
- };
34
- };
35
-
36
- declare const useLoading: () => {
37
- isLoading: boolean;
38
- setLoading: (isLoading: any) => void;
39
- };
40
- declare const LoadingProvider: {
41
- ({ children }: {
42
- children: any;
43
- }): react_jsx_runtime.JSX.Element;
44
- propTypes: {
45
- children: prop_types.Validator<NonNullable<prop_types.ReactNodeLike>>;
46
- };
47
- };
48
-
49
- export { ErrorProvider, FeedbackProvider, LoadingProvider, useError, useFeeback, useLoading };