@zydon/common 2.1.52 → 2.1.54
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-4WWROCZC.js +3 -0
- package/dist/{chunk-26TNPA2R.js → chunk-6CDKDYW6.js} +1 -1
- package/dist/{chunk-RXTT3DBP.js → chunk-DHTP4MZ6.js} +1 -1
- package/dist/{chunk-5HQV2KVV.js → chunk-QGXMZRCC.js} +1 -1
- package/dist/{chunk-IDRYLZ5Z.js → chunk-RHYPNWWP.js} +2 -2
- package/dist/{chunk-NFKMPFE4.js → chunk-YP5OVRDY.js} +2 -2
- package/dist/components/ActionButton/index.js +1 -1
- package/dist/components/Incrementer/index.js +2 -2
- package/dist/components/form/Incrementer/index.js +2 -2
- package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
- package/dist/components/form/UploadWithCrop/index.js +3 -3
- package/dist/components/form/Webhook/index.js +1 -1
- package/dist/components/upload/index.js +4 -4
- package/dist/utils/formatNumber.d.ts +2 -1
- package/dist/utils/formatNumber.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SKUW6ZCP.js +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var i={code:"pt-BR",currency:"BRL"};function u(t){return t==null||Number.isNaN(t)?null:Number(t)}function s(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(n)}function a(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(n)}function l(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...r}).format(n/100)}function f(t,r){let e=i,n=u(t);return n===null?"":new Intl.NumberFormat(e.code,{notation:"compact",maximumFractionDigits:2,...r}).format(n).replace(/[A-Z]/g,m=>m.toLowerCase())}function b(t){let r=u(t);if(r===null||r===0)return "0 bytes";let e=["bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],n=2,o=1024,m=Math.floor(Math.log(r)/Math.log(o));return `${parseFloat((r/o**m).toFixed(n))} ${e[m]}`}var p=t=>+Number(t).toFixed(12);function N(t){return typeof t=="string"?t.padStart(2,"0"):t.toString().padStart(2,"0")}var g=t=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t||0);
|
|
2
|
+
|
|
3
|
+
export { s as a, a as b, l as c, f as d, b as e, p as f, N as g, g as h };
|
|
@@ -2,6 +2,6 @@ import { a as a$1 } from './chunk-WRRNM2I3.js';
|
|
|
2
2
|
import i from '@mui/lab/LoadingButton';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
var I=({actionType:n,children:E,...r})=>{let c={SAVE:"SIMPLE_CHECK",NEW:"SIMPLE_ADD",CREATE:"SAVE_MARK",SETTINGS:"SETTINGS",EDIT:"PENCIL_EDIT",DELETE:"
|
|
5
|
+
var I=({actionType:n,children:E,...r})=>{let c={SAVE:"SIMPLE_CHECK",NEW:"SIMPLE_ADD",CREATE:"SAVE_MARK",SETTINGS:"SETTINGS",EDIT:"PENCIL_EDIT",DELETE:"DELETE_MARK_BUTTON_02",VIEW:"SHARE_BUTTON_MARK"}[n];return jsx(i,{startIcon:jsx(a$1,{icon:c}),variant:"contained",color:"primary",...r,children:E})},a=I;
|
|
6
6
|
|
|
7
7
|
export { a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, b, c } from './chunk-
|
|
2
|
-
import { e } from './chunk-
|
|
1
|
+
import { a, b, c } from './chunk-6CDKDYW6.js';
|
|
2
|
+
import { e } from './chunk-4WWROCZC.js';
|
|
3
3
|
import { i } from './chunk-D27ND54J.js';
|
|
4
4
|
import { a as a$1 } from './chunk-WRRNM2I3.js';
|
|
5
5
|
import { j } from './chunk-2D6XUBFQ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c, f } from './chunk-
|
|
1
|
+
import { c, f } from './chunk-6CDKDYW6.js';
|
|
2
2
|
import { a as a$3 } from './chunk-2GACKA32.js';
|
|
3
|
-
import { e } from './chunk-
|
|
3
|
+
import { e } from './chunk-4WWROCZC.js';
|
|
4
4
|
import { i } from './chunk-D27ND54J.js';
|
|
5
5
|
import { a } from './chunk-WRRNM2I3.js';
|
|
6
6
|
import { a as a$2 } from './chunk-KFZEM7KS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-DHTP4MZ6.js';
|
|
2
2
|
import '../../chunk-TLENQZN5.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-4WWROCZC.js';
|
|
4
4
|
import '../../chunk-PV522B4W.js';
|
|
5
5
|
import '../../chunk-WRRNM2I3.js';
|
|
6
6
|
import '../../chunk-7IM2VT47.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-DHTP4MZ6.js';
|
|
2
2
|
import '../../../chunk-TLENQZN5.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-4WWROCZC.js';
|
|
4
4
|
import '../../../chunk-PV522B4W.js';
|
|
5
5
|
import '../../../chunk-WRRNM2I3.js';
|
|
6
6
|
import '../../../chunk-7IM2VT47.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-YP5OVRDY.js';
|
|
2
|
+
import '../../../chunk-6CDKDYW6.js';
|
|
3
3
|
import '../../../chunk-2GACKA32.js';
|
|
4
4
|
import '../../../chunk-QRDCZ4VF.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-4WWROCZC.js';
|
|
7
7
|
import '../../../chunk-D27ND54J.js';
|
|
8
8
|
import '../../../chunk-WRRNM2I3.js';
|
|
9
9
|
import '../../../chunk-7IM2VT47.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as d$1 } from '../../../chunk-
|
|
2
|
-
import { d, e as e$1 } from '../../../chunk-
|
|
1
|
+
import { d as d$1 } from '../../../chunk-RHYPNWWP.js';
|
|
2
|
+
import { d, e as e$1 } from '../../../chunk-6CDKDYW6.js';
|
|
3
3
|
import { a as a$5 } from '../../../chunk-2GACKA32.js';
|
|
4
4
|
import '../../../chunk-QRDCZ4VF.js';
|
|
5
5
|
import '../../../chunk-T7I256S6.js';
|
|
6
|
-
import { e } from '../../../chunk-
|
|
6
|
+
import { e } from '../../../chunk-4WWROCZC.js';
|
|
7
7
|
import { a as a$3 } from '../../../chunk-YWEB6IAI.js';
|
|
8
8
|
import '../../../chunk-D27ND54J.js';
|
|
9
9
|
import { a as a$4 } from '../../../chunk-WRRNM2I3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from '../../../chunk-P46BBUKR.js';
|
|
2
2
|
import { a as a$2 } from '../../../chunk-QNVHP6H5.js';
|
|
3
|
-
import { a as a$3 } from '../../../chunk-
|
|
3
|
+
import { a as a$3 } from '../../../chunk-QGXMZRCC.js';
|
|
4
4
|
import '../../../chunk-UPGSN5PB.js';
|
|
5
5
|
import { a as a$1 } from '../../../chunk-WRRNM2I3.js';
|
|
6
6
|
import '../../../chunk-7IM2VT47.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-
|
|
2
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-
|
|
3
|
-
export { c as RejectionFiles } from '../../chunk-
|
|
1
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-YP5OVRDY.js';
|
|
2
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-RHYPNWWP.js';
|
|
3
|
+
export { c as RejectionFiles } from '../../chunk-6CDKDYW6.js';
|
|
4
4
|
import '../../chunk-2GACKA32.js';
|
|
5
5
|
import '../../chunk-QRDCZ4VF.js';
|
|
6
6
|
import '../../chunk-T7I256S6.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-4WWROCZC.js';
|
|
8
8
|
import { i } from '../../chunk-D27ND54J.js';
|
|
9
9
|
import '../../chunk-WRRNM2I3.js';
|
|
10
10
|
import '../../chunk-7IM2VT47.js';
|
|
@@ -6,6 +6,7 @@ declare function fPercent(inputValue: InputNumberValue, options?: Options): stri
|
|
|
6
6
|
declare function fShortenNumber(inputValue: InputNumberValue, options?: Options): string;
|
|
7
7
|
declare function fData(inputValue: InputNumberValue): string;
|
|
8
8
|
declare const fWithDecimalPlacesOrNot: (value: string | number) => number;
|
|
9
|
+
declare function formatToTwoDigits(value: number | string): string;
|
|
9
10
|
declare const fCurrencyBRL: (value?: number | null) => string;
|
|
10
11
|
|
|
11
|
-
export { InputNumberValue, fCurrency, fCurrencyBRL, fData, fNumber, fPercent, fShortenNumber, fWithDecimalPlacesOrNot };
|
|
12
|
+
export { InputNumberValue, fCurrency, fCurrencyBRL, fData, fNumber, fPercent, fShortenNumber, fWithDecimalPlacesOrNot, formatToTwoDigits };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as fCurrency,
|
|
1
|
+
export { b as fCurrency, h as fCurrencyBRL, e as fData, a as fNumber, c as fPercent, d as fShortenNumber, f as fWithDecimalPlacesOrNot, g as formatToTwoDigits } from '../chunk-4WWROCZC.js';
|
package/package.json
CHANGED
package/dist/chunk-SKUW6ZCP.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var c={code:"pt-BR",currency:"BRL"};function o(n){return n==null||Number.isNaN(n)?null:Number(n)}function l(n,r){let e=c,t=o(n);return t===null?"":new Intl.NumberFormat(e.code,{minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(t)}function s(n,r){let e=c,t=o(n);return t===null?"":new Intl.NumberFormat(e.code,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2,...r}).format(t)}function a(n,r){let e=c,t=o(n);return t===null?"":new Intl.NumberFormat(e.code,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...r}).format(t/100)}function b(n,r){let e=c,t=o(n);return t===null?"":new Intl.NumberFormat(e.code,{notation:"compact",maximumFractionDigits:2,...r}).format(t).replace(/[A-Z]/g,m=>m.toLowerCase())}function f(n){let r=o(n);if(r===null||r===0)return "0 bytes";let e=["bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],t=2,u=1024,m=Math.floor(Math.log(r)/Math.log(u));return `${parseFloat((r/u**m).toFixed(t))} ${e[m]}`}var p=n=>+Number(n).toFixed(12),N=n=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(n||0);
|
|
2
|
-
|
|
3
|
-
export { l as a, s as b, a as c, b as d, f as e, p as f, N as g };
|