@loja-integrada/admin-components 1.6.0 → 1.6.1
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-XFJU222C.js → chunk-2TJYXCVC.js} +1 -1
- package/dist/{chunk-NJG2H6UL.js → chunk-A7UM3QUC.js} +1 -1
- package/dist/{chunk-SBRVSLSQ.js → chunk-H3IDZ2IR.js} +1 -1
- package/dist/chunk-LGRJY3SB.js +10 -0
- package/dist/{chunk-GHCMLL6T.js → chunk-TWRODAGT.js} +1 -1
- package/dist/forms/Calendar/index.js +3 -3
- package/dist/forms/Input/index.js +1 -1
- package/dist/forms/InputCurrency/index.js +2 -2
- package/dist/forms/InputMask/index.js +2 -2
- package/dist/forms/InputWithUnit/index.js +3 -3
- package/dist/forms/index.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-XMZIKH43.js +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$3 } from './chunk-QI2G5XNV.js';
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
2
|
+
import { a as a$1 } from './chunk-H3IDZ2IR.js';
|
|
3
3
|
import { a } from './chunk-RBDORITT.js';
|
|
4
4
|
import { a as a$4 } from './chunk-BW4TJLAD.js';
|
|
5
5
|
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a } from './chunk-RBDORITT.js';
|
|
2
|
+
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
3
|
+
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import h, { useMemo } from 'react';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var O=cva("peer text-f6 flex w-full min-w-0 appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 text-on-base shadow-none outline-none transition-colors focus-within:border-primary focus:border-primary komea:border-input-stroke komea:px-3 komea:shadow-sm komea:text-body-large md:komea:text-body komea:placeholder:text-on-base-2 komea:focus:border-focus komea:focus-within:border-focus komea:focus:ring-[3px] komea:focus:ring-focus/50",{variants:{variant:{default:"komea:h-9 h-12",small:"komea:h-8 h-10",large:"komea:h-10 h-14",xlarge:"h-24"},hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger komea:focus:border-danger komea:focus:ring-danger/20"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"},prefixBorder:{true:"[&~.adornment.prefix]:border-r"},sufixBorder:{true:"[&~.adornment.sufix]:border-l"},hasPrefix:{true:"pl-[4.5rem] komea:pl-[4.5rem]"},hasSufix:{true:"pr-[4.5rem] komea:pr-[4.5rem]"}},compoundVariants:[{hasPrefix:!0,prefixBorder:!1,class:"pl-14"},{hasSufix:!0,sufixBorder:!1,class:"pr-14"}],defaultVariants:{variant:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),b="adornment border-card-stroke flex justify-center items-center absolute bottom-0 w-14 h-full text-f6 text-inverted-2 -mt-px peer-focus:border-primary transition-colors",V=({className:g="",formGroupClassName:k="",label:I,labelComplement:v,helpText:N,hasError:w=!1,errorMessage:a$3,required:s=!1,id:y,name:n,variant:P="default",disabled:l,readOnly:m,type:R="text",prefix:d,sufix:i,prefixBorder:E=!0,sufixBorder:T=!0,...H},L)=>{let S=useMemo(()=>Math.random().toString(36).substring(7),[]),o=y||n||S,t=w||!!a$3,u=!!i,p=!!d,B=jsx(a,{label:I,labelComplement:v,required:s,hasError:t,htmlFor:o,className:"mb-1"}),C=jsx(a$1,{helpText:a$3||N,hasError:t,className:"mt-2"});return jsxs("div",{className:a$2("form-group flex flex-col",k),children:[B,jsxs("div",{className:"relative",children:[jsx("input",{ref:L,type:R,id:o,name:n,required:s,disabled:l,readOnly:m,className:a$2(O({variant:P,hasErrorState:t,disabled:l,readOnly:m,className:g,prefixBorder:E,sufixBorder:T,hasSufix:u,hasPrefix:p})),...H}),p?jsx("label",{htmlFor:o,className:a$2("prefix left-0",b),children:d}):null,u?jsx("label",{htmlFor:o,className:a$2("sufix right-0",b),children:i}):null]}),C]})},q=h.forwardRef(V),A=h.memo(q);A.displayName="Input";
|
|
9
|
+
|
|
10
|
+
export { A as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b } from './chunk-WLU7LLNK.js';
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
2
|
+
import { a as a$1 } from './chunk-H3IDZ2IR.js';
|
|
3
3
|
import { a as a$2 } from './chunk-KIULKYBX.js';
|
|
4
4
|
import { a } from './chunk-ZJEL4IYE.js';
|
|
5
5
|
import { subDays, subMonths, addDays, parse, isBefore, isValid, isWithinInterval, isEqual, isAfter, format } from 'date-fns';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use client";export { a as Calendar } from '../../chunk-
|
|
1
|
+
"use client";export { a as Calendar } from '../../chunk-TWRODAGT.js';
|
|
2
2
|
import '../../chunk-DBWOW4GL.js';
|
|
3
3
|
import '../../chunk-KSBVK3BT.js';
|
|
4
4
|
import '../../chunk-WLU7LLNK.js';
|
|
5
5
|
import '../../chunk-NXRYURC6.js';
|
|
6
6
|
import '../../chunk-L6H2NDVS.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-H3IDZ2IR.js';
|
|
8
|
+
import '../../chunk-LGRJY3SB.js';
|
|
9
9
|
import '../../chunk-RBDORITT.js';
|
|
10
10
|
import '../../chunk-KN7DOGNL.js';
|
|
11
11
|
import '../../chunk-QLJI4RXS.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";export { a as InputCurrency } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
"use client";export { a as InputCurrency } from '../../chunk-A7UM3QUC.js';
|
|
2
|
+
import '../../chunk-LGRJY3SB.js';
|
|
3
3
|
import '../../chunk-RBDORITT.js';
|
|
4
4
|
import '../../chunk-KN7DOGNL.js';
|
|
5
5
|
import '../../chunk-QLJI4RXS.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";export { a as InputMask } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
"use client";export { a as InputMask } from '../../chunk-H3IDZ2IR.js';
|
|
2
|
+
import '../../chunk-LGRJY3SB.js';
|
|
3
3
|
import '../../chunk-RBDORITT.js';
|
|
4
4
|
import '../../chunk-KN7DOGNL.js';
|
|
5
5
|
import '../../chunk-QLJI4RXS.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-2TJYXCVC.js';
|
|
2
2
|
import '../../chunk-QI2G5XNV.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-H3IDZ2IR.js';
|
|
4
|
+
import '../../chunk-LGRJY3SB.js';
|
|
5
5
|
import '../../chunk-RBDORITT.js';
|
|
6
6
|
import '../../chunk-KN7DOGNL.js';
|
|
7
7
|
import '../../chunk-QLJI4RXS.js';
|
package/dist/forms/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../chunk-V7ZS2B75.js';
|
|
2
2
|
export { a as TextArea } from '../chunk-GPHC3OIO.js';
|
|
3
3
|
export { b as Select, a as SelectComponent } from '../chunk-3LRCJEHT.js';
|
|
4
|
-
export { a as Calendar } from '../chunk-
|
|
4
|
+
export { a as Calendar } from '../chunk-TWRODAGT.js';
|
|
5
5
|
import '../chunk-DBWOW4GL.js';
|
|
6
6
|
import '../chunk-KSBVK3BT.js';
|
|
7
7
|
import '../chunk-WLU7LLNK.js';
|
|
8
8
|
import '../chunk-NXRYURC6.js';
|
|
9
9
|
import '../chunk-L6H2NDVS.js';
|
|
10
|
-
export { a as InputCurrency } from '../chunk-
|
|
11
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-
|
|
10
|
+
export { a as InputCurrency } from '../chunk-A7UM3QUC.js';
|
|
11
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from '../chunk-2TJYXCVC.js';
|
|
12
12
|
export { a as Dropdown } from '../chunk-QI2G5XNV.js';
|
|
13
|
-
export { a as InputMask } from '../chunk-
|
|
14
|
-
export { a as Input } from '../chunk-
|
|
13
|
+
export { a as InputMask } from '../chunk-H3IDZ2IR.js';
|
|
14
|
+
export { a as Input } from '../chunk-LGRJY3SB.js';
|
|
15
15
|
export { a as InputLabel } from '../chunk-RBDORITT.js';
|
|
16
16
|
import '../chunk-KN7DOGNL.js';
|
|
17
17
|
import '../chunk-QLJI4RXS.js';
|
package/dist/index.js
CHANGED
|
@@ -6,17 +6,17 @@ export { a as TextArea } from './chunk-GPHC3OIO.js';
|
|
|
6
6
|
export { b as Select, a as SelectComponent } from './chunk-3LRCJEHT.js';
|
|
7
7
|
export { a as Breadcrumb } from './chunk-V3P7BTVW.js';
|
|
8
8
|
export { a as HelpLink } from './chunk-TUBDQ3WR.js';
|
|
9
|
-
export { a as Calendar } from './chunk-
|
|
9
|
+
export { a as Calendar } from './chunk-TWRODAGT.js';
|
|
10
10
|
import './chunk-DBWOW4GL.js';
|
|
11
11
|
export { a as ActionBar } from './chunk-KSBVK3BT.js';
|
|
12
12
|
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from './chunk-WLU7LLNK.js';
|
|
13
13
|
export { a as Container, b as ContainerHeader } from './chunk-NXRYURC6.js';
|
|
14
14
|
import './chunk-L6H2NDVS.js';
|
|
15
|
-
export { a as InputCurrency } from './chunk-
|
|
16
|
-
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-
|
|
15
|
+
export { a as InputCurrency } from './chunk-A7UM3QUC.js';
|
|
16
|
+
export { a as DEFAULT_UNITS, b as InputWithUnit } from './chunk-2TJYXCVC.js';
|
|
17
17
|
export { a as Dropdown } from './chunk-QI2G5XNV.js';
|
|
18
|
-
export { a as InputMask } from './chunk-
|
|
19
|
-
export { a as Input } from './chunk-
|
|
18
|
+
export { a as InputMask } from './chunk-H3IDZ2IR.js';
|
|
19
|
+
export { a as Input } from './chunk-LGRJY3SB.js';
|
|
20
20
|
export { a as InputLabel } from './chunk-RBDORITT.js';
|
|
21
21
|
import './chunk-KN7DOGNL.js';
|
|
22
22
|
export { a as IconCircular } from './chunk-QLJI4RXS.js';
|
package/package.json
CHANGED
package/dist/chunk-XMZIKH43.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-RBDORITT.js';
|
|
2
|
-
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
3
|
-
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import h, { useMemo } from 'react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var O=cva("peer text-f6 flex w-full min-w-0 appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 text-on-base shadow-none outline-none transition-colors focus-within:border-primary focus:border-primary komea:border-input-stroke komea:px-3 komea:shadow-sm komea:text-body-large md:komea:text-body komea:placeholder:text-on-base-2 komea:focus:border-focus komea:focus-within:border-focus komea:focus:ring-[3px] komea:focus:ring-focus/50",{variants:{variant:{default:"komea:h-9 h-12",small:"komea:h-8 h-10",large:"komea:h-10 h-14",xlarge:"h-24"},hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger komea:focus:border-danger komea:focus:ring-danger/20"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"},prefixBorder:{true:"[&~.adornment.prefix]:border-r"},sufixBorder:{true:"[&~.adornment.sufix]:border-l"},hasPrefix:{true:"pl-[4.5rem]"},hasSufix:{true:"pr-[4.5rem]"}},compoundVariants:[{hasPrefix:!0,prefixBorder:!1,class:"pl-14"},{hasSufix:!0,sufixBorder:!1,class:"pr-14"}],defaultVariants:{variant:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),b="adornment border-card-stroke flex justify-center items-center absolute bottom-0 w-14 h-full text-f6 text-inverted-2 -mt-px peer-focus:border-primary transition-colors",V=({className:g="",formGroupClassName:k="",label:I,labelComplement:v,helpText:N,hasError:w=!1,errorMessage:a$3,required:s=!1,id:y,name:n,variant:P="default",disabled:l,readOnly:d,type:R="text",prefix:i,sufix:m,prefixBorder:E=!0,sufixBorder:T=!0,...H},L)=>{let S=useMemo(()=>Math.random().toString(36).substring(7),[]),o=y||n||S,t=w||!!a$3,u=!!m,p=!!i,B=jsx(a,{label:I,labelComplement:v,required:s,hasError:t,htmlFor:o,className:"mb-1"}),C=jsx(a$1,{helpText:a$3||N,hasError:t,className:"mt-2"});return jsxs("div",{className:a$2("form-group flex flex-col",k),children:[B,jsxs("div",{className:"relative",children:[jsx("input",{ref:L,type:R,id:o,name:n,required:s,disabled:l,readOnly:d,className:a$2(O({variant:P,hasErrorState:t,disabled:l,readOnly:d,className:g,prefixBorder:E,sufixBorder:T,hasSufix:u,hasPrefix:p})),...H}),p?jsx("label",{htmlFor:o,className:a$2("prefix left-0",b),children:i}):null,u?jsx("label",{htmlFor:o,className:a$2("sufix right-0",b),children:m}):null]}),C]})},q=h.forwardRef(V),A=h.memo(q);A.displayName="Input";
|
|
9
|
-
|
|
10
|
-
export { A as a };
|