@zydon/common 2.7.10 → 2.7.11
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/dist/{chunk-3IPWUPD7.js → chunk-6LVV2OOJ.js} +1 -1
- package/dist/chunk-OBYJ5SJ2.js +5 -0
- package/dist/components/DataView/index.js +1 -1
- package/dist/components/ListBundles/index.js +1 -1
- package/dist/components/Result/index.d.ts +5 -3
- package/dist/components/Result/index.js +1 -1
- package/dist/components/SelectableCards/index.js +2 -2
- package/dist/components/SwapList/index.js +1 -1
- package/dist/components/form/SelectableCards/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-TWGGHTU5.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as a$4 } from './chunk-INPRA4JV.js';
|
|
2
2
|
import { a as a$1 } from './chunk-URVMF4MW.js';
|
|
3
|
-
import { a as a$3 } from './chunk-
|
|
3
|
+
import { a as a$3 } from './chunk-OBYJ5SJ2.js';
|
|
4
4
|
import { a as a$2 } from './chunk-26GV7WKC.js';
|
|
5
5
|
import { a as a$5 } from './chunk-WIJV4EHZ.js';
|
|
6
6
|
import { useState } from 'react';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
var l=({isFetching:e,fetching:n,isLoading:u,loading:f,anError:a,error:s,isEmpty:p,empty:d,data:t,children:r})=>{if(u)return f||"Carregando...";if(a)return s||"Error";if(p)return d||"Nenhum resultado";let i=t!==void 0&&typeof r=="function"?r(t):r;return jsxs(Fragment,{children:[e&&jsx(Fragment,{children:n||"Carregando..."}),i]})},m=l;
|
|
4
|
+
|
|
5
|
+
export { m as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$5 } from '../../chunk-URVMF4MW.js';
|
|
2
|
-
import { a as a$6 } from '../../chunk-
|
|
2
|
+
import { a as a$6 } from '../../chunk-OBYJ5SJ2.js';
|
|
3
3
|
import { a as a$2 } from '../../chunk-5YJTSVA2.js';
|
|
4
4
|
import { a } from '../../chunk-NPXVOPB2.js';
|
|
5
5
|
import { a as a$9 } from '../../chunk-T7AZE2TB.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$2 } from '../../chunk-Q7HPO5OB.js';
|
|
2
|
-
import { a as a$1 } from '../../chunk-
|
|
2
|
+
import { a as a$1 } from '../../chunk-OBYJ5SJ2.js';
|
|
3
3
|
import { o, a, f, k as k$1 } from '../../chunk-AJYSAO5N.js';
|
|
4
4
|
import '../../chunk-WIJV4EHZ.js';
|
|
5
5
|
import '../../chunk-FO7JCJ76.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
interface ResultProps {
|
|
5
|
+
interface ResultProps<TData = unknown> {
|
|
6
6
|
isFetching?: boolean;
|
|
7
7
|
fetching?: ReactNode;
|
|
8
8
|
isLoading?: boolean;
|
|
@@ -11,8 +11,10 @@ interface ResultProps {
|
|
|
11
11
|
error?: ReactNode;
|
|
12
12
|
isEmpty?: boolean;
|
|
13
13
|
empty?: ReactNode;
|
|
14
|
+
data?: TData;
|
|
15
|
+
children?: ReactNode | ((data: TData) => ReactNode);
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
declare const Result: ({ isFetching, fetching, isLoading, loading, anError, error, isEmpty, empty, children, }:
|
|
18
|
+
declare const Result: <TData>({ isFetching, fetching, isLoading, loading, anError, error, isEmpty, empty, data, children, }: ResultProps<TData>) => string | number | true | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element;
|
|
17
19
|
|
|
18
20
|
export { Result as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-OBYJ5SJ2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-6LVV2OOJ.js';
|
|
2
2
|
import '../../chunk-INPRA4JV.js';
|
|
3
3
|
import '../../chunk-URVMF4MW.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-OBYJ5SJ2.js';
|
|
5
5
|
import '../../chunk-U26IUEAG.js';
|
|
6
6
|
import '../../chunk-26GV7WKC.js';
|
|
7
7
|
import '../../chunk-WIJV4EHZ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as a$2 } from '../../chunk-INPRA4JV.js';
|
|
2
2
|
import { a } from '../../chunk-URVMF4MW.js';
|
|
3
|
-
import { a as a$1 } from '../../chunk-
|
|
3
|
+
import { a as a$1 } from '../../chunk-OBYJ5SJ2.js';
|
|
4
4
|
import '../../chunk-U26IUEAG.js';
|
|
5
5
|
import { a as a$3 } from '../../chunk-26GV7WKC.js';
|
|
6
6
|
import { a as a$4 } from '../../chunk-WIJV4EHZ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-6LVV2OOJ.js';
|
|
2
2
|
import '../../../chunk-INPRA4JV.js';
|
|
3
3
|
import '../../../chunk-URVMF4MW.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-OBYJ5SJ2.js';
|
|
5
5
|
import '../../../chunk-U26IUEAG.js';
|
|
6
6
|
import '../../../chunk-26GV7WKC.js';
|
|
7
7
|
import '../../../chunk-WIJV4EHZ.js';
|
package/package.json
CHANGED
package/dist/chunk-TWGGHTU5.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
var d=({isFetching:o,fetching:e,isLoading:t,loading:n,anError:u,error:i,isEmpty:s,empty:l,children:p})=>t?n||"Carregando...":u?i||"Error":s?l||"Nenhum resultado":jsxs(Fragment,{children:[o&&jsx(Fragment,{children:e||"Carregando..."}),p]}),h=d;
|
|
4
|
-
|
|
5
|
-
export { h as a };
|