@loja-integrada/admin-components 1.3.27 → 1.3.30
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/chunk-R256TWAZ.js +8 -0
- package/dist/forms/Calendar/index.js +5 -5
- package/dist/forms/Dropdown/index.js +1 -1
- package/dist/forms/Input/index.js +1 -1
- package/dist/forms/InputCurrency/index.js +1 -1
- package/dist/forms/InputLabel/index.js +1 -1
- package/dist/forms/InputMask/index.js +2 -2
- package/dist/forms/InputWithUnit/index.js +3 -3
- package/dist/forms/Select/index.js +1 -1
- package/dist/forms/TextArea/index.js +1 -1
- package/dist/forms/ToggleButton/ToggleButton.client.d.ts +9 -3
- package/dist/forms/ToggleButton/index.js +1 -1
- package/dist/forms/index.js +8 -8
- package/dist/index.js +8 -8
- package/dist/indicators/index.js +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/navigation/Pagination/index.js +1 -1
- package/dist/navigation/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-2FXYZXCT.js +0 -8
- 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';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import c, { useId, useState, useEffect } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var h=cva("text-f6 border-y border-l border-primary font-semibold",{variants:{variant:{small:"px-4 py-1",default:"px-5 py-2",large:"px-6 py-4"},active:{true:"bg-primary text-base-1",false:"text-primary"},borderDirection:{left:"rounded-l",middle:"",right:"rounded-r border-r"},disabled:{true:"cursor-not-allowed opacity-50",false:""}}}),w=({items:o,defaultItem:u=o[0]?.slug,disabled:f=!1,className:m="",variant:p="default",value:a$1,onChange:r,id:b},y)=>{let v=useId(),n=b??v,[l,s]=useState(u);useEffect(()=>{a$1!==void 0&&s(a$1);},[a$1]);function T(e){e!==l&&(s(e),r&&r(e));}return jsx("nav",{id:n,"aria-label":"Toggle Button",className:m,ref:y,children:jsx("ul",{className:"flex",children:o.map((e,i)=>{let B=i===0?"left":o.length-1===i?"right":"middle",d=f||e.disabled;return jsx("li",{children:jsx("button",{id:`${n}-${e.slug}`,type:"button",disabled:d,onClick:()=>T(e.slug),className:a(h({variant:p,active:e.slug===l,borderDirection:B,disabled:d}),e.className),children:e.content})},e.slug)})})})},C=c.forwardRef(w),D=c.memo(C);D.displayName="ToggleButton";
|
|
7
|
+
|
|
8
|
+
export { D as a };
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
import '../../chunk-BR5NHBRC.js';
|
|
4
3
|
import '../../chunk-B3V3TXJU.js';
|
|
5
4
|
import '../../chunk-NXRYURC6.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-KQ736T5Z.js';
|
|
5
|
+
import '../../chunk-3WITCPX5.js';
|
|
8
6
|
import '../../chunk-JJAQANNY.js';
|
|
9
7
|
import '../../chunk-2BHQJL6C.js';
|
|
10
8
|
import '../../chunk-KN7DOGNL.js';
|
|
11
9
|
import '../../chunk-QEFCC7YX.js';
|
|
12
10
|
import '../../chunk-7RP4L6ZM.js';
|
|
11
|
+
import '../../chunk-RLOTNDPD.js';
|
|
13
12
|
import '../../chunk-DCLZNUOB.js';
|
|
14
13
|
import '../../chunk-FGRCQDIX.js';
|
|
15
14
|
import '../../chunk-7NYGOWFC.js';
|
|
16
15
|
import '../../chunk-TZI6YTCW.js';
|
|
16
|
+
import '../../chunk-BR5NHBRC.js';
|
|
17
|
+
import '../../chunk-L6H2NDVS.js';
|
|
17
18
|
import '../../chunk-ZWW7VJFD.js';
|
|
18
|
-
import '../../chunk-RLOTNDPD.js';
|
|
19
19
|
import '../../chunk-UF4BFCSP.js';
|
|
20
20
|
import '../../chunk-NRAIF4I3.js';
|
|
21
21
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -3,12 +3,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
3
3
|
import '../../chunk-KN7DOGNL.js';
|
|
4
4
|
import '../../chunk-QEFCC7YX.js';
|
|
5
5
|
import '../../chunk-7RP4L6ZM.js';
|
|
6
|
+
import '../../chunk-RLOTNDPD.js';
|
|
6
7
|
import '../../chunk-DCLZNUOB.js';
|
|
7
8
|
import '../../chunk-FGRCQDIX.js';
|
|
8
9
|
import '../../chunk-7NYGOWFC.js';
|
|
9
10
|
import '../../chunk-TZI6YTCW.js';
|
|
10
11
|
import '../../chunk-ZWW7VJFD.js';
|
|
11
|
-
import '../../chunk-RLOTNDPD.js';
|
|
12
12
|
import '../../chunk-UF4BFCSP.js';
|
|
13
13
|
import '../../chunk-NRAIF4I3.js';
|
|
14
14
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -3,12 +3,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
3
3
|
import '../../chunk-KN7DOGNL.js';
|
|
4
4
|
import '../../chunk-QEFCC7YX.js';
|
|
5
5
|
import '../../chunk-7RP4L6ZM.js';
|
|
6
|
+
import '../../chunk-RLOTNDPD.js';
|
|
6
7
|
import '../../chunk-DCLZNUOB.js';
|
|
7
8
|
import '../../chunk-FGRCQDIX.js';
|
|
8
9
|
import '../../chunk-7NYGOWFC.js';
|
|
9
10
|
import '../../chunk-TZI6YTCW.js';
|
|
10
11
|
import '../../chunk-ZWW7VJFD.js';
|
|
11
|
-
import '../../chunk-RLOTNDPD.js';
|
|
12
12
|
import '../../chunk-UF4BFCSP.js';
|
|
13
13
|
import '../../chunk-NRAIF4I3.js';
|
|
14
14
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -4,12 +4,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
4
4
|
import '../../chunk-KN7DOGNL.js';
|
|
5
5
|
import '../../chunk-QEFCC7YX.js';
|
|
6
6
|
import '../../chunk-7RP4L6ZM.js';
|
|
7
|
+
import '../../chunk-RLOTNDPD.js';
|
|
7
8
|
import '../../chunk-DCLZNUOB.js';
|
|
8
9
|
import '../../chunk-FGRCQDIX.js';
|
|
9
10
|
import '../../chunk-7NYGOWFC.js';
|
|
10
11
|
import '../../chunk-TZI6YTCW.js';
|
|
11
12
|
import '../../chunk-ZWW7VJFD.js';
|
|
12
|
-
import '../../chunk-RLOTNDPD.js';
|
|
13
13
|
import '../../chunk-UF4BFCSP.js';
|
|
14
14
|
import '../../chunk-NRAIF4I3.js';
|
|
15
15
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -2,12 +2,12 @@ export { a as InputLabel } from '../../chunk-2BHQJL6C.js';
|
|
|
2
2
|
import '../../chunk-KN7DOGNL.js';
|
|
3
3
|
import '../../chunk-QEFCC7YX.js';
|
|
4
4
|
import '../../chunk-7RP4L6ZM.js';
|
|
5
|
+
import '../../chunk-RLOTNDPD.js';
|
|
5
6
|
import '../../chunk-DCLZNUOB.js';
|
|
6
7
|
import '../../chunk-FGRCQDIX.js';
|
|
7
8
|
import '../../chunk-7NYGOWFC.js';
|
|
8
9
|
import '../../chunk-TZI6YTCW.js';
|
|
9
10
|
import '../../chunk-ZWW7VJFD.js';
|
|
10
|
-
import '../../chunk-RLOTNDPD.js';
|
|
11
11
|
import '../../chunk-UF4BFCSP.js';
|
|
12
12
|
import '../../chunk-NRAIF4I3.js';
|
|
13
13
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use client";export { a as InputMask } from '../../chunk-
|
|
1
|
+
"use client";export { a as InputMask } from '../../chunk-3WITCPX5.js';
|
|
2
2
|
import '../../chunk-JJAQANNY.js';
|
|
3
3
|
import '../../chunk-2BHQJL6C.js';
|
|
4
4
|
import '../../chunk-KN7DOGNL.js';
|
|
5
5
|
import '../../chunk-QEFCC7YX.js';
|
|
6
6
|
import '../../chunk-7RP4L6ZM.js';
|
|
7
|
+
import '../../chunk-RLOTNDPD.js';
|
|
7
8
|
import '../../chunk-DCLZNUOB.js';
|
|
8
9
|
import '../../chunk-FGRCQDIX.js';
|
|
9
10
|
import '../../chunk-7NYGOWFC.js';
|
|
10
11
|
import '../../chunk-TZI6YTCW.js';
|
|
11
12
|
import '../../chunk-ZWW7VJFD.js';
|
|
12
|
-
import '../../chunk-RLOTNDPD.js';
|
|
13
13
|
import '../../chunk-UF4BFCSP.js';
|
|
14
14
|
import '../../chunk-NRAIF4I3.js';
|
|
15
15
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
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';
|
|
7
7
|
import '../../chunk-QEFCC7YX.js';
|
|
8
8
|
import '../../chunk-7RP4L6ZM.js';
|
|
9
|
+
import '../../chunk-RLOTNDPD.js';
|
|
9
10
|
import '../../chunk-DCLZNUOB.js';
|
|
10
11
|
import '../../chunk-FGRCQDIX.js';
|
|
11
12
|
import '../../chunk-7NYGOWFC.js';
|
|
12
13
|
import '../../chunk-TZI6YTCW.js';
|
|
13
14
|
import '../../chunk-ZWW7VJFD.js';
|
|
14
|
-
import '../../chunk-RLOTNDPD.js';
|
|
15
15
|
import '../../chunk-UF4BFCSP.js';
|
|
16
16
|
import '../../chunk-NRAIF4I3.js';
|
|
17
17
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -3,12 +3,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
3
3
|
import '../../chunk-KN7DOGNL.js';
|
|
4
4
|
import '../../chunk-QEFCC7YX.js';
|
|
5
5
|
import '../../chunk-7RP4L6ZM.js';
|
|
6
|
+
import '../../chunk-RLOTNDPD.js';
|
|
6
7
|
import '../../chunk-DCLZNUOB.js';
|
|
7
8
|
import '../../chunk-FGRCQDIX.js';
|
|
8
9
|
import '../../chunk-7NYGOWFC.js';
|
|
9
10
|
import '../../chunk-TZI6YTCW.js';
|
|
10
11
|
import '../../chunk-ZWW7VJFD.js';
|
|
11
|
-
import '../../chunk-RLOTNDPD.js';
|
|
12
12
|
import '../../chunk-UF4BFCSP.js';
|
|
13
13
|
import '../../chunk-NRAIF4I3.js';
|
|
14
14
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -3,12 +3,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
3
3
|
import '../../chunk-KN7DOGNL.js';
|
|
4
4
|
import '../../chunk-QEFCC7YX.js';
|
|
5
5
|
import '../../chunk-7RP4L6ZM.js';
|
|
6
|
+
import '../../chunk-RLOTNDPD.js';
|
|
6
7
|
import '../../chunk-DCLZNUOB.js';
|
|
7
8
|
import '../../chunk-FGRCQDIX.js';
|
|
8
9
|
import '../../chunk-7NYGOWFC.js';
|
|
9
10
|
import '../../chunk-TZI6YTCW.js';
|
|
10
11
|
import '../../chunk-ZWW7VJFD.js';
|
|
11
|
-
import '../../chunk-RLOTNDPD.js';
|
|
12
12
|
import '../../chunk-UF4BFCSP.js';
|
|
13
13
|
import '../../chunk-NRAIF4I3.js';
|
|
14
14
|
import '../../chunk-BW4TJLAD.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const ToggleButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<
|
|
2
|
+
declare const ToggleButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<HTMLElement>>>;
|
|
3
3
|
interface Item {
|
|
4
4
|
slug: string;
|
|
5
5
|
content: string | React.ReactNode;
|
|
@@ -12,9 +12,15 @@ interface ToggleButtonProps {
|
|
|
12
12
|
* */
|
|
13
13
|
items: Item[];
|
|
14
14
|
/**
|
|
15
|
-
* The default item to be selected
|
|
15
|
+
* The default item to be selected. Defaults to the first item's slug.
|
|
16
16
|
* */
|
|
17
|
-
defaultItem
|
|
17
|
+
defaultItem?: string;
|
|
18
|
+
/**
|
|
19
|
+
* HTML id applied to the nav element. Defaults to a unique generated id.
|
|
20
|
+
* Pass an explicit value when multiple instances share the same page and you
|
|
21
|
+
* need stable selectors (e.g. in tests).
|
|
22
|
+
* */
|
|
23
|
+
id?: string;
|
|
18
24
|
/**
|
|
19
25
|
* Controls the currently selected item externally (for controlled usage)
|
|
20
26
|
* */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";export { a as ToggleButton } from '../../chunk-
|
|
1
|
+
"use client";export { a as ToggleButton } from '../../chunk-R256TWAZ.js';
|
|
2
2
|
import '../../chunk-AGCI6C3Z.js';
|
package/dist/forms/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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
|
-
import '../chunk-BR5NHBRC.js';
|
|
7
6
|
import '../chunk-B3V3TXJU.js';
|
|
8
7
|
import '../chunk-NXRYURC6.js';
|
|
9
|
-
import '../chunk-L6H2NDVS.js';
|
|
10
8
|
export { a as InputCurrency } from '../chunk-4TCWKCHL.js';
|
|
11
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-
|
|
9
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-4JW6GT5F.js';
|
|
12
10
|
export { a as Dropdown } from '../chunk-5DNYLYR5.js';
|
|
13
|
-
export { a as InputMask } from '../chunk-
|
|
11
|
+
export { a as InputMask } from '../chunk-3WITCPX5.js';
|
|
14
12
|
export { a as Input } from '../chunk-JJAQANNY.js';
|
|
15
13
|
export { a as InputLabel } from '../chunk-2BHQJL6C.js';
|
|
16
14
|
import '../chunk-KN7DOGNL.js';
|
|
17
15
|
import '../chunk-QEFCC7YX.js';
|
|
18
16
|
import '../chunk-7RP4L6ZM.js';
|
|
17
|
+
import '../chunk-RLOTNDPD.js';
|
|
19
18
|
import '../chunk-DCLZNUOB.js';
|
|
20
19
|
import '../chunk-FGRCQDIX.js';
|
|
21
20
|
import '../chunk-7NYGOWFC.js';
|
|
22
21
|
import '../chunk-TZI6YTCW.js';
|
|
23
|
-
import '../chunk-ZWW7VJFD.js';
|
|
24
22
|
export { a as Toggle } from '../chunk-K4PEKBET.js';
|
|
25
|
-
export { a as ToggleButton } from '../chunk-
|
|
26
|
-
import '../chunk-
|
|
23
|
+
export { a as ToggleButton } from '../chunk-R256TWAZ.js';
|
|
24
|
+
import '../chunk-BR5NHBRC.js';
|
|
25
|
+
import '../chunk-L6H2NDVS.js';
|
|
26
|
+
import '../chunk-ZWW7VJFD.js';
|
|
27
27
|
import '../chunk-UF4BFCSP.js';
|
|
28
28
|
export { a as Checkbox } from '../chunk-NRAIF4I3.js';
|
|
29
29
|
export { a as InputHelpText } from '../chunk-BW4TJLAD.js';
|
package/dist/index.js
CHANGED
|
@@ -6,29 +6,29 @@ 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
|
-
export { a as ActionBar } from './chunk-BR5NHBRC.js';
|
|
12
11
|
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from './chunk-B3V3TXJU.js';
|
|
13
12
|
export { a as Container, b as ContainerHeader } from './chunk-NXRYURC6.js';
|
|
14
|
-
import './chunk-L6H2NDVS.js';
|
|
15
13
|
export { a as InputCurrency } from './chunk-4TCWKCHL.js';
|
|
16
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-
|
|
14
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-4JW6GT5F.js';
|
|
17
15
|
export { a as Dropdown } from './chunk-5DNYLYR5.js';
|
|
18
|
-
export { a as InputMask } from './chunk-
|
|
16
|
+
export { a as InputMask } from './chunk-3WITCPX5.js';
|
|
19
17
|
export { a as Input } from './chunk-JJAQANNY.js';
|
|
20
18
|
export { a as InputLabel } from './chunk-2BHQJL6C.js';
|
|
21
19
|
import './chunk-KN7DOGNL.js';
|
|
22
20
|
export { a as IconCircular } from './chunk-QEFCC7YX.js';
|
|
23
21
|
import './chunk-7RP4L6ZM.js';
|
|
22
|
+
export { a as Alert } from './chunk-RLOTNDPD.js';
|
|
24
23
|
export { a as Badge } from './chunk-DCLZNUOB.js';
|
|
25
24
|
export { a as Tag } from './chunk-FGRCQDIX.js';
|
|
26
25
|
export { b as ToastContainer, a as notify } from './chunk-7NYGOWFC.js';
|
|
27
26
|
export { a as Tooltip } from './chunk-TZI6YTCW.js';
|
|
28
|
-
export { a as Button } from './chunk-ZWW7VJFD.js';
|
|
29
27
|
export { a as Toggle } from './chunk-K4PEKBET.js';
|
|
30
|
-
export { a as ToggleButton } from './chunk-
|
|
31
|
-
export { a as
|
|
28
|
+
export { a as ToggleButton } from './chunk-R256TWAZ.js';
|
|
29
|
+
export { a as ActionBar } from './chunk-BR5NHBRC.js';
|
|
30
|
+
import './chunk-L6H2NDVS.js';
|
|
31
|
+
export { a as Button } from './chunk-ZWW7VJFD.js';
|
|
32
32
|
export { b as DataTable } from './chunk-UF4BFCSP.js';
|
|
33
33
|
export { a as Checkbox } from './chunk-NRAIF4I3.js';
|
|
34
34
|
export { a as InputHelpText } from './chunk-BW4TJLAD.js';
|
package/dist/indicators/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../chunk-7RP4L6ZM.js';
|
|
2
|
+
export { a as Alert } from '../chunk-RLOTNDPD.js';
|
|
2
3
|
export { a as Badge } from '../chunk-DCLZNUOB.js';
|
|
3
4
|
export { a as Tag } from '../chunk-FGRCQDIX.js';
|
|
4
5
|
export { b as ToastContainer, a as notify } from '../chunk-7NYGOWFC.js';
|
|
5
6
|
export { a as Tooltip } from '../chunk-TZI6YTCW.js';
|
|
6
7
|
import '../chunk-ZWW7VJFD.js';
|
|
7
|
-
export { a as Alert } from '../chunk-RLOTNDPD.js';
|
|
8
8
|
import '../chunk-LTWCICTK.js';
|
|
9
9
|
import '../chunk-UZZ5JUF7.js';
|
|
10
10
|
import '../chunk-GBF42RXK.js';
|
package/dist/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../chunk-DBWOW4GL.js';
|
|
2
|
-
export { a as ActionBar } from '../chunk-BR5NHBRC.js';
|
|
3
2
|
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from '../chunk-B3V3TXJU.js';
|
|
4
3
|
export { a as Container, b as ContainerHeader } from '../chunk-NXRYURC6.js';
|
|
4
|
+
export { a as ActionBar } from '../chunk-BR5NHBRC.js';
|
|
5
5
|
import '../chunk-L6H2NDVS.js';
|
|
6
6
|
import '../chunk-ZWW7VJFD.js';
|
|
7
7
|
import '../chunk-LTWCICTK.js';
|
|
@@ -4,12 +4,12 @@ import '../../chunk-2BHQJL6C.js';
|
|
|
4
4
|
import '../../chunk-KN7DOGNL.js';
|
|
5
5
|
import '../../chunk-QEFCC7YX.js';
|
|
6
6
|
import '../../chunk-7RP4L6ZM.js';
|
|
7
|
+
import '../../chunk-RLOTNDPD.js';
|
|
7
8
|
import '../../chunk-DCLZNUOB.js';
|
|
8
9
|
import '../../chunk-FGRCQDIX.js';
|
|
9
10
|
import '../../chunk-7NYGOWFC.js';
|
|
10
11
|
import '../../chunk-TZI6YTCW.js';
|
|
11
12
|
import '../../chunk-ZWW7VJFD.js';
|
|
12
|
-
import '../../chunk-RLOTNDPD.js';
|
|
13
13
|
import '../../chunk-UF4BFCSP.js';
|
|
14
14
|
import '../../chunk-NRAIF4I3.js';
|
|
15
15
|
import '../../chunk-BW4TJLAD.js';
|
package/dist/navigation/index.js
CHANGED
|
@@ -8,12 +8,12 @@ import '../chunk-2BHQJL6C.js';
|
|
|
8
8
|
import '../chunk-KN7DOGNL.js';
|
|
9
9
|
import '../chunk-QEFCC7YX.js';
|
|
10
10
|
import '../chunk-7RP4L6ZM.js';
|
|
11
|
+
import '../chunk-RLOTNDPD.js';
|
|
11
12
|
import '../chunk-DCLZNUOB.js';
|
|
12
13
|
import '../chunk-FGRCQDIX.js';
|
|
13
14
|
import '../chunk-7NYGOWFC.js';
|
|
14
15
|
import '../chunk-TZI6YTCW.js';
|
|
15
16
|
import '../chunk-ZWW7VJFD.js';
|
|
16
|
-
import '../chunk-RLOTNDPD.js';
|
|
17
17
|
import '../chunk-UF4BFCSP.js';
|
|
18
18
|
import '../chunk-NRAIF4I3.js';
|
|
19
19
|
import '../chunk-BW4TJLAD.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.30",
|
|
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.5",
|
|
36
|
+
"@loja-integrada/eslint-config": "0.0.6"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@tanstack/react-table": "^8.17.3",
|
package/dist/chunk-2FXYZXCT.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
-
import g, { useState, useEffect } from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var N=cva("text-f6 border-y border-l border-primary font-semibold",{variants:{variant:{small:"px-4 py-1",default:"px-5 py-2",large:"px-6 py-4"},active:{true:"bg-primary text-base-1",false:"text-primary"},borderDirection:{left:"rounded-l",middle:"",right:"rounded-r border-r"},disabled:{true:"cursor-not-allowed opacity-50",false:""}}}),T=({items:o,defaultItem:c=o[0]?.slug,disabled:u=!1,className:f="",variant:m="default",value:r,onChange:a$1})=>{let[l,n]=useState(c);useEffect(()=>{r!==void 0&&n(r);},[r]);function b(t){t!==l&&(n(t),a$1&&a$1(t));}return jsx("nav",{id:"toggle-button","aria-label":"Toggle Button",className:f,children:jsx("ul",{className:"flex",children:o.map((t,s)=>{let p=s===0?"left":o.length-1===s?"right":"middle",i=u||t.disabled;return jsx("li",{children:jsx("button",{id:`toggle-button-${t.slug}`,type:"button",disabled:i,onClick:()=>b(t.slug),className:a(N({variant:m,active:t.slug===l,borderDirection:p,disabled:i}),t.className),children:t.content})},t.slug)})})})},x=g.forwardRef(T),h=g.memo(x);h.displayName="ToggleButton";
|
|
7
|
-
|
|
8
|
-
export { h as a };
|
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 };
|