@loja-integrada/admin-components 1.3.27 → 1.3.28
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-3WITCPX5.js +8 -0
- package/dist/{chunk-RINVBRQA.js → chunk-4JW6GT5F.js} +1 -1
- package/dist/{chunk-NBIH2LYA.js → chunk-MYUTK3AR.js} +1 -1
- package/dist/forms/Calendar/index.js +2 -2
- package/dist/forms/InputMask/index.js +1 -1
- package/dist/forms/InputWithUnit/index.js +2 -2
- package/dist/forms/index.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-KQ736T5Z.js +0 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a } from './chunk-JJAQANNY.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { IMaskMixin, IMask } from 'react-imask';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var{MaskedRange:o}=IMask,m={onlyNumber:{mask:/^\d+$/,inputMode:"decimal"},onlyLetter:{mask:/^[a-zA-ZÀ-ú']+$/},onlyAlphanumeric:{mask:/^\w+$/},onlyText:{mask:/^[a-zA-ZÀ-ú'˜`´^0-9\sü]+$/},acceptNegativeNumber:{mask:/^-?\d*$/,inputMode:"decimal"},date:{mask:Date,pattern:"d{/}`m{/}`Y",blocks:{d:{mask:o,from:1,to:31,maxLength:2},m:{mask:o,from:1,to:12,maxLength:2},Y:{mask:o,from:1900,to:9999}},format:e=>{if(!(e instanceof Date))return "";let _=e.getDate(),t=e.getMonth()+1,a=e.getFullYear();return _<10&&(_="0"+_),t<10&&(t="0"+t),[_,t,a].join("/")},parse:e=>{let[_,t,a]=e.split("/").map(Number);return new Date(a,t-1,_)},inputMode:"decimal",placeholder:"__/__/____"},zipCode:{mask:"00000-000",inputMode:"decimal",placeholder:"_____-___"},nfe:{mask:"0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000",inputMode:"decimal",placeholder:"____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____"},phone:{mask:"(00) 0000-0000",inputMode:"decimal",placeholder:"(__) ____-____"},cellphone:{mask:"(00) 00000-0000",inputMode:"decimal",placeholder:"(__) _____-____"},phoneOrCellphone:{mask:[{mask:"(00) 0000-0000",maxLength:10},{mask:"(00) 00000-0000"}],inputMode:"decimal",placeholder:"(__) _____-____"},cpf:{mask:"000.000.000-00",inputMode:"decimal",placeholder:"___.___.___-__"},cnpj:{mask:"00.000.000/0000-00",inputMode:"decimal",placeholder:"__.___.___/____-__"},expiration:{mask:"00/00",inputMode:"decimal",placeholder:"__/__"},cvv:{mask:[{mask:"000"},{mask:"0000"}],inputMode:"decimal",placeholder:"___"},creditCard:{mask:[{mask:"0000 0000 0000 0000",maxLength:16},{mask:"0000 000000 00000",maxLength:15}],inputMode:"decimal",placeholder:"____ ____ ____ ____"}};var c=IMaskMixin(({inputRef:e,..._})=>jsx(a,{..._,ref:e})),k=forwardRef(({formatValue:e="onlyAlphanumeric",inputOnChangeType:_="onComplete",...t},a)=>{let n={...m[e]||{},...t},l=t?.onChange;return delete n.onChange,n[_]=(s,M)=>{l?.({target:{value:s}});},jsx(c,{...n,inputRef:a})});k.displayName="InputMask";
|
|
7
|
+
|
|
8
|
+
export { k as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$3 } from './chunk-5DNYLYR5.js';
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
2
|
+
import { a as a$1 } from './chunk-3WITCPX5.js';
|
|
3
3
|
import { a } from './chunk-2BHQJL6C.js';
|
|
4
4
|
import { a as a$4 } from './chunk-BW4TJLAD.js';
|
|
5
5
|
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b } from './chunk-B3V3TXJU.js';
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
2
|
+
import { a as a$1 } from './chunk-3WITCPX5.js';
|
|
3
3
|
import { a as a$2 } from './chunk-ZWW7VJFD.js';
|
|
4
4
|
import { a } from './chunk-UZZ5JUF7.js';
|
|
5
5
|
import { subDays, subMonths, addDays, parse, isBefore, isValid, isWithinInterval, isEqual, isAfter, format } from 'date-fns';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use client";export { a as Calendar } from '../../chunk-
|
|
1
|
+
"use client";export { a as Calendar } from '../../chunk-MYUTK3AR.js';
|
|
2
2
|
import '../../chunk-DBWOW4GL.js';
|
|
3
3
|
import '../../chunk-BR5NHBRC.js';
|
|
4
4
|
import '../../chunk-B3V3TXJU.js';
|
|
5
5
|
import '../../chunk-NXRYURC6.js';
|
|
6
6
|
import '../../chunk-L6H2NDVS.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-3WITCPX5.js';
|
|
8
8
|
import '../../chunk-JJAQANNY.js';
|
|
9
9
|
import '../../chunk-2BHQJL6C.js';
|
|
10
10
|
import '../../chunk-KN7DOGNL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use client";export { a as DEFAULT_UNITS, b as InputWithUnit } from '../../chunk-
|
|
1
|
+
"use client";export { a as DEFAULT_UNITS, b as InputWithUnit } from '../../chunk-4JW6GT5F.js';
|
|
2
2
|
import '../../chunk-5DNYLYR5.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-3WITCPX5.js';
|
|
4
4
|
import '../../chunk-JJAQANNY.js';
|
|
5
5
|
import '../../chunk-2BHQJL6C.js';
|
|
6
6
|
import '../../chunk-KN7DOGNL.js';
|
package/dist/forms/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import '../chunk-V7ZS2B75.js';
|
|
2
2
|
export { a as TextArea } from '../chunk-72ITCQFH.js';
|
|
3
3
|
export { b as Select, a as SelectComponent } from '../chunk-QC7724FZ.js';
|
|
4
|
-
export { a as Calendar } from '../chunk-
|
|
4
|
+
export { a as Calendar } from '../chunk-MYUTK3AR.js';
|
|
5
5
|
import '../chunk-DBWOW4GL.js';
|
|
6
6
|
import '../chunk-BR5NHBRC.js';
|
|
7
7
|
import '../chunk-B3V3TXJU.js';
|
|
8
8
|
import '../chunk-NXRYURC6.js';
|
|
9
9
|
import '../chunk-L6H2NDVS.js';
|
|
10
10
|
export { a as InputCurrency } from '../chunk-4TCWKCHL.js';
|
|
11
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-
|
|
11
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-4JW6GT5F.js';
|
|
12
12
|
export { a as Dropdown } from '../chunk-5DNYLYR5.js';
|
|
13
|
-
export { a as InputMask } from '../chunk-
|
|
13
|
+
export { a as InputMask } from '../chunk-3WITCPX5.js';
|
|
14
14
|
export { a as Input } from '../chunk-JJAQANNY.js';
|
|
15
15
|
export { a as InputLabel } from '../chunk-2BHQJL6C.js';
|
|
16
16
|
import '../chunk-KN7DOGNL.js';
|
package/dist/index.js
CHANGED
|
@@ -6,16 +6,16 @@ export { a as TextArea } from './chunk-72ITCQFH.js';
|
|
|
6
6
|
export { b as Select, a as SelectComponent } from './chunk-QC7724FZ.js';
|
|
7
7
|
export { a as Breadcrumb } from './chunk-UF3JKCLY.js';
|
|
8
8
|
export { a as HelpLink } from './chunk-GQ2PFXYP.js';
|
|
9
|
-
export { a as Calendar } from './chunk-
|
|
9
|
+
export { a as Calendar } from './chunk-MYUTK3AR.js';
|
|
10
10
|
import './chunk-DBWOW4GL.js';
|
|
11
11
|
export { a as ActionBar } from './chunk-BR5NHBRC.js';
|
|
12
12
|
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from './chunk-B3V3TXJU.js';
|
|
13
13
|
export { a as Container, b as ContainerHeader } from './chunk-NXRYURC6.js';
|
|
14
14
|
import './chunk-L6H2NDVS.js';
|
|
15
15
|
export { a as InputCurrency } from './chunk-4TCWKCHL.js';
|
|
16
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-
|
|
16
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-4JW6GT5F.js';
|
|
17
17
|
export { a as Dropdown } from './chunk-5DNYLYR5.js';
|
|
18
|
-
export { a as InputMask } from './chunk-
|
|
18
|
+
export { a as InputMask } from './chunk-3WITCPX5.js';
|
|
19
19
|
export { a as Input } from './chunk-JJAQANNY.js';
|
|
20
20
|
export { a as InputLabel } from './chunk-2BHQJL6C.js';
|
|
21
21
|
import './chunk-KN7DOGNL.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loja-integrada/admin-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"author": "Loja Integrada",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"tsup": "^8.1.0",
|
|
33
33
|
"typescript": "^5.3.3",
|
|
34
34
|
"vite": "^5.1.4",
|
|
35
|
-
"@loja-integrada/
|
|
36
|
-
"@loja-integrada/
|
|
35
|
+
"@loja-integrada/typescript-config": "0.0.4",
|
|
36
|
+
"@loja-integrada/eslint-config": "0.0.5"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@tanstack/react-table": "^8.17.3",
|
package/dist/chunk-KQ736T5Z.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-JJAQANNY.js';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { IMaskMixin, IMask } from 'react-imask';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var{MaskedRange:o}=IMask,m={onlyNumber:{mask:/^\d+$/,inputMode:"decimal"},onlyLetter:{mask:/^[a-zA-ZÀ-ú']+$/},onlyAlphanumeric:{mask:/^\w+$/},onlyText:{mask:/^[a-zA-ZÀ-ú'˜`´^0-9\sü]+$/},date:{mask:Date,pattern:"d{/}`m{/}`Y",blocks:{d:{mask:o,from:1,to:31,maxLength:2},m:{mask:o,from:1,to:12,maxLength:2},Y:{mask:o,from:1900,to:9999}},format:e=>{if(!(e instanceof Date))return "";let _=e.getDate(),t=e.getMonth()+1,a=e.getFullYear();return _<10&&(_="0"+_),t<10&&(t="0"+t),[_,t,a].join("/")},parse:e=>{let[_,t,a]=e.split("/").map(Number);return new Date(a,t-1,_)},inputMode:"decimal",placeholder:"__/__/____"},zipCode:{mask:"00000-000",inputMode:"decimal",placeholder:"_____-___"},nfe:{mask:"0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000",inputMode:"decimal",placeholder:"____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____"},phone:{mask:"(00) 0000-0000",inputMode:"decimal",placeholder:"(__) ____-____"},cellphone:{mask:"(00) 00000-0000",inputMode:"decimal",placeholder:"(__) _____-____"},phoneOrCellphone:{mask:[{mask:"(00) 0000-0000",maxLength:10},{mask:"(00) 00000-0000"}],inputMode:"decimal",placeholder:"(__) _____-____"},cpf:{mask:"000.000.000-00",inputMode:"decimal",placeholder:"___.___.___-__"},cnpj:{mask:"00.000.000/0000-00",inputMode:"decimal",placeholder:"__.___.___/____-__"},expiration:{mask:"00/00",inputMode:"decimal",placeholder:"__/__"},cvv:{mask:[{mask:"000"},{mask:"0000"}],inputMode:"decimal",placeholder:"___"},creditCard:{mask:[{mask:"0000 0000 0000 0000",maxLength:16},{mask:"0000 000000 00000",maxLength:15}],inputMode:"decimal",placeholder:"____ ____ ____ ____"}};var c=IMaskMixin(({inputRef:e,..._})=>jsx(a,{..._,ref:e})),k=forwardRef(({formatValue:e="onlyAlphanumeric",inputOnChangeType:_="onComplete",...t},a)=>{let n={...m[e]||{},...t},l=t?.onChange;return delete n.onChange,n[_]=(s,M)=>{l?.({target:{value:s}});},jsx(c,{...n,inputRef:a})});k.displayName="InputMask";
|
|
7
|
-
|
|
8
|
-
export { k as a };
|