@apollion-dsi/core 4.3.0 → 4.4.0
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/README.md +6 -6
- package/lib/chunks/{chunk-YHC57GR4.esm.js → chunk-27WH6X7Z.esm.js} +1 -1
- package/lib/chunks/{chunk-UZ7XKTKF.esm.js → chunk-2B6WKGNL.esm.js} +1 -1
- package/lib/chunks/{chunk-X3NMNOPQ.esm.js → chunk-AYFOKXQ5.esm.js} +1 -1
- package/lib/chunks/{chunk-MELVMDJS.esm.js → chunk-BQYFSH77.esm.js} +1 -1
- package/lib/chunks/{chunk-KLZX757F.esm.js → chunk-C3FXK63O.esm.js} +1 -1
- package/lib/chunks/{chunk-5MYNYSMN.esm.js → chunk-F22EHCVW.esm.js} +1 -1
- package/lib/chunks/{chunk-OURRSDSK.esm.js → chunk-I2AN2PFZ.esm.js} +1 -1
- package/lib/chunks/{chunk-3DBECAG6.esm.js → chunk-IB7PGCOV.esm.js} +1 -1
- package/lib/chunks/{chunk-QS6Q6GHV.esm.js → chunk-IHNII3LE.esm.js} +1 -1
- package/lib/chunks/{chunk-SWQTC4EJ.esm.js → chunk-JWYDZHB3.esm.js} +1 -1
- package/lib/chunks/{chunk-H6SPQGDR.esm.js → chunk-LZLVQWOO.esm.js} +1 -1
- package/lib/chunks/chunk-NQHACZA2.esm.js +1 -0
- package/lib/chunks/{chunk-7XEMCDIL.esm.js → chunk-NVY2NHDJ.esm.js} +1 -1
- package/lib/chunks/{chunk-WWQY2YDB.esm.js → chunk-PJ3NNCXJ.esm.js} +1 -1
- package/lib/chunks/{chunk-L5HTMWK3.esm.js → chunk-QCG2NUVG.esm.js} +1 -1
- package/lib/chunks/{chunk-AN3NCXEO.esm.js → chunk-QL6JADXT.esm.js} +1 -1
- package/lib/chunks/{chunk-LBA2JW7I.esm.js → chunk-R346JVGY.esm.js} +1 -1
- package/lib/chunks/{chunk-A2YKZFIC.esm.js → chunk-RXEZSDDF.esm.js} +1 -1
- package/lib/chunks/{chunk-5LDDQB4W.esm.js → chunk-TPZB4YZC.esm.js} +1 -1
- package/lib/chunks/{chunk-SKGADW2H.esm.js → chunk-WR2UCIOU.esm.js} +1 -1
- package/lib/chunks/chunk-WS5DFCVD.esm.js +43 -0
- package/lib/chunks/{chunk-RY7RJOZL.esm.js → chunk-YCSFQRAE.esm.js} +1 -1
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Switch/Switch.d.ts +27 -0
- package/lib/form/Switch/Switch.interface.d.ts +55 -0
- package/lib/form/Switch/Switch.style.d.ts +50 -0
- package/lib/form/Switch/index.d.ts +8 -0
- package/lib/form/Switch/index.esm.js +1 -0
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.d.ts +1 -0
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.esm.js +1 -1
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +7 -3
- package/CHANGELOG.md +0 -1357
- package/lib/chunks/chunk-2KJKXHNI.esm.js +0 -1
- package/lib/chunks/chunk-2SHYFDQJ.esm.js +0 -1
- package/lib/chunks/chunk-2SPVSCZD.esm.js +0 -1
- package/lib/chunks/chunk-2XDK6NU7.esm.js +0 -1
- package/lib/chunks/chunk-2YY7A36W.esm.js +0 -7
- package/lib/chunks/chunk-36DSWGPF.esm.js +0 -1
- package/lib/chunks/chunk-3MTWHDSL.esm.js +0 -1
- package/lib/chunks/chunk-3ODQCN3J.esm.js +0 -1
- package/lib/chunks/chunk-3XA4AMQO.esm.js +0 -1
- package/lib/chunks/chunk-45A4O6KJ.esm.js +0 -1
- package/lib/chunks/chunk-4QTXOCPV.esm.js +0 -1
- package/lib/chunks/chunk-4U3WQPBJ.esm.js +0 -1
- package/lib/chunks/chunk-4YCPDIRM.esm.js +0 -1
- package/lib/chunks/chunk-54QUAVTF.esm.js +0 -1
- package/lib/chunks/chunk-54SSYOYD.esm.js +0 -3
- package/lib/chunks/chunk-5Q45UZUL.esm.js +0 -1
- package/lib/chunks/chunk-5REIPBPG.esm.js +0 -1
- package/lib/chunks/chunk-64KQOQC4.esm.js +0 -1
- package/lib/chunks/chunk-6G72BOTI.esm.js +0 -1
- package/lib/chunks/chunk-6JRXJ7MG.esm.js +0 -1
- package/lib/chunks/chunk-6NL46PCZ.esm.js +0 -1
- package/lib/chunks/chunk-6R7YWF2Z.esm.js +0 -1
- package/lib/chunks/chunk-6RBZVDRP.esm.js +0 -1
- package/lib/chunks/chunk-6RPTXDUB.esm.js +0 -1
- package/lib/chunks/chunk-6SZWWC4Q.esm.js +0 -1
- package/lib/chunks/chunk-6TWTLAW6.esm.js +0 -1
- package/lib/chunks/chunk-76C7AHBV.esm.js +0 -1
- package/lib/chunks/chunk-7LP5XKKC.esm.js +0 -1
- package/lib/chunks/chunk-7OVK4XCS.esm.js +0 -1
- package/lib/chunks/chunk-7UZDT7GB.esm.js +0 -1
- package/lib/chunks/chunk-A7O6RO5P.esm.js +0 -1
- package/lib/chunks/chunk-AAZAZG7P.esm.js +0 -1
- package/lib/chunks/chunk-AEQRNR7W.esm.js +0 -1
- package/lib/chunks/chunk-AUYB77M7.esm.js +0 -1
- package/lib/chunks/chunk-AVZENFPL.esm.js +0 -1
- package/lib/chunks/chunk-AZBWA3B4.esm.js +0 -1
- package/lib/chunks/chunk-B7OYYZKE.esm.js +0 -1
- package/lib/chunks/chunk-BHNSYSNP.esm.js +0 -1
- package/lib/chunks/chunk-BMUHQ5OQ.esm.js +0 -1
- package/lib/chunks/chunk-BVDH4EAW.esm.js +0 -1
- package/lib/chunks/chunk-C3Q2NI5Y.esm.js +0 -1
- package/lib/chunks/chunk-CI3LQ5Z4.esm.js +0 -1
- package/lib/chunks/chunk-CK44WPHP.esm.js +0 -1
- package/lib/chunks/chunk-CVGYBYMT.esm.js +0 -1
- package/lib/chunks/chunk-CYURSPLT.esm.js +0 -1
- package/lib/chunks/chunk-DHT35FQI.esm.js +0 -1
- package/lib/chunks/chunk-DLSSYVEF.esm.js +0 -1
- package/lib/chunks/chunk-DNHRB3DD.esm.js +0 -1
- package/lib/chunks/chunk-DOTMXDHA.esm.js +0 -1
- package/lib/chunks/chunk-DX5SUG7X.esm.js +0 -1
- package/lib/chunks/chunk-E7BQGRVC.esm.js +0 -1
- package/lib/chunks/chunk-ECG53OTX.esm.js +0 -1
- package/lib/chunks/chunk-F4EQMQVX.esm.js +0 -1
- package/lib/chunks/chunk-F4W6VVDR.esm.js +0 -1
- package/lib/chunks/chunk-FJYSLGUG.esm.js +0 -1
- package/lib/chunks/chunk-FU2BNX4H.esm.js +0 -1
- package/lib/chunks/chunk-GFWFGNY2.esm.js +0 -1
- package/lib/chunks/chunk-GHDTMBCC.esm.js +0 -1
- package/lib/chunks/chunk-GU2BMTY3.esm.js +0 -1
- package/lib/chunks/chunk-H7A2HNAK.esm.js +0 -1
- package/lib/chunks/chunk-HALV3U5Q.esm.js +0 -1
- package/lib/chunks/chunk-HBNFXZF6.esm.js +0 -1
- package/lib/chunks/chunk-HMF62LQQ.esm.js +0 -34
- package/lib/chunks/chunk-HVWC77NL.esm.js +0 -1
- package/lib/chunks/chunk-HYYPCRHW.esm.js +0 -1
- package/lib/chunks/chunk-HZN744T5.esm.js +0 -11
- package/lib/chunks/chunk-I4U5XMHR.esm.js +0 -34
- package/lib/chunks/chunk-I7ZFKBFU.esm.js +0 -1
- package/lib/chunks/chunk-IKTV35RB.esm.js +0 -1
- package/lib/chunks/chunk-IWA4TZOX.esm.js +0 -1
- package/lib/chunks/chunk-JA3DGZX4.esm.js +0 -1
- package/lib/chunks/chunk-JFUYVECK.esm.js +0 -1
- package/lib/chunks/chunk-JHHNSZJ4.esm.js +0 -1
- package/lib/chunks/chunk-JQBQ6X4L.esm.js +0 -1
- package/lib/chunks/chunk-JR7YIS3H.esm.js +0 -1
- package/lib/chunks/chunk-JXUDEW5J.esm.js +0 -1
- package/lib/chunks/chunk-JYC747DK.esm.js +0 -1
- package/lib/chunks/chunk-JZ2GRYKU.esm.js +0 -1
- package/lib/chunks/chunk-K4OTLUX6.esm.js +0 -1
- package/lib/chunks/chunk-K7LQ6B4H.esm.js +0 -1
- package/lib/chunks/chunk-KBGPPCMN.esm.js +0 -1
- package/lib/chunks/chunk-KFZOV7RP.esm.js +0 -1
- package/lib/chunks/chunk-KRF3FMDH.esm.js +0 -1
- package/lib/chunks/chunk-KUDPW647.esm.js +0 -1
- package/lib/chunks/chunk-KVDN4KYZ.esm.js +0 -1
- package/lib/chunks/chunk-KVKG7TA6.esm.js +0 -1
- package/lib/chunks/chunk-KWNMOR3V.esm.js +0 -1
- package/lib/chunks/chunk-KY47BE3L.esm.js +0 -11
- package/lib/chunks/chunk-LF7E7QNQ.esm.js +0 -39
- package/lib/chunks/chunk-LJB6XGSJ.esm.js +0 -1
- package/lib/chunks/chunk-LJBLVEW3.esm.js +0 -1
- package/lib/chunks/chunk-LNZUAANS.esm.js +0 -1
- package/lib/chunks/chunk-LQLFJFW5.esm.js +0 -1
- package/lib/chunks/chunk-LVZPZN7J.esm.js +0 -1
- package/lib/chunks/chunk-M3FW2CUQ.esm.js +0 -1
- package/lib/chunks/chunk-MOVHB5R6.esm.js +0 -1
- package/lib/chunks/chunk-MQ6O5OZV.esm.js +0 -1
- package/lib/chunks/chunk-MRYAZXVW.esm.js +0 -1
- package/lib/chunks/chunk-MWA2LY4C.esm.js +0 -1
- package/lib/chunks/chunk-NCDS76KS.esm.js +0 -34
- package/lib/chunks/chunk-NEZEK6DI.esm.js +0 -1
- package/lib/chunks/chunk-NFH2KYS6.esm.js +0 -39
- package/lib/chunks/chunk-NKAD33SH.esm.js +0 -7
- package/lib/chunks/chunk-NNMANTYE.esm.js +0 -1
- package/lib/chunks/chunk-NRVKDR2H.esm.js +0 -1
- package/lib/chunks/chunk-NVFKTKHY.esm.js +0 -1
- package/lib/chunks/chunk-NWFODMOU.esm.js +0 -1
- package/lib/chunks/chunk-NZ7IRFNC.esm.js +0 -3
- package/lib/chunks/chunk-NZXX3OP5.esm.js +0 -1
- package/lib/chunks/chunk-O4SSOOVR.esm.js +0 -1
- package/lib/chunks/chunk-ODLNO4ZY.esm.js +0 -1
- package/lib/chunks/chunk-OJ57H6MJ.esm.js +0 -1
- package/lib/chunks/chunk-ON4INUFW.esm.js +0 -7
- package/lib/chunks/chunk-OT6DKXSK.esm.js +0 -1
- package/lib/chunks/chunk-P2GR72UO.esm.js +0 -3
- package/lib/chunks/chunk-PBY237H5.esm.js +0 -1
- package/lib/chunks/chunk-PLD34GGH.esm.js +0 -1
- package/lib/chunks/chunk-PLNB3X4T.esm.js +0 -1
- package/lib/chunks/chunk-PU64MH2S.esm.js +0 -1
- package/lib/chunks/chunk-QERJQEN4.esm.js +0 -1
- package/lib/chunks/chunk-QHTVTYNN.esm.js +0 -1
- package/lib/chunks/chunk-QNM5SXM3.esm.js +0 -1
- package/lib/chunks/chunk-QNPYZUVO.esm.js +0 -1
- package/lib/chunks/chunk-R4QAAHWP.esm.js +0 -26
- package/lib/chunks/chunk-R5SPL4S3.esm.js +0 -1
- package/lib/chunks/chunk-RHUIIG22.esm.js +0 -1
- package/lib/chunks/chunk-RKDE2LI7.esm.js +0 -1
- package/lib/chunks/chunk-RPBY7HBP.esm.js +0 -1
- package/lib/chunks/chunk-S2U4FRYY.esm.js +0 -1
- package/lib/chunks/chunk-SBYW6WBS.esm.js +0 -1
- package/lib/chunks/chunk-SK2A2ORL.esm.js +0 -1
- package/lib/chunks/chunk-T3WYK7NJ.esm.js +0 -1
- package/lib/chunks/chunk-T72PRHJO.esm.js +0 -5
- package/lib/chunks/chunk-TLVEHSRT.esm.js +0 -1
- package/lib/chunks/chunk-TVJISBND.esm.js +0 -1
- package/lib/chunks/chunk-TXM2WOJQ.esm.js +0 -11
- package/lib/chunks/chunk-U5ZZXNQW.esm.js +0 -1
- package/lib/chunks/chunk-UCG2YEOT.esm.js +0 -1
- package/lib/chunks/chunk-V3ULKCWJ.esm.js +0 -1
- package/lib/chunks/chunk-V5ZKDMDH.esm.js +0 -1
- package/lib/chunks/chunk-VASGJ75E.esm.js +0 -5
- package/lib/chunks/chunk-VCZTIJKQ.esm.js +0 -1
- package/lib/chunks/chunk-VM7X3PSR.esm.js +0 -1
- package/lib/chunks/chunk-VU67Q7IC.esm.js +0 -1
- package/lib/chunks/chunk-VUNN4DHK.esm.js +0 -1
- package/lib/chunks/chunk-VV4MXKUA.esm.js +0 -1
- package/lib/chunks/chunk-WAQEMQ3B.esm.js +0 -1
- package/lib/chunks/chunk-WBATNNAP.esm.js +0 -26
- package/lib/chunks/chunk-WHBPGXIC.esm.js +0 -1
- package/lib/chunks/chunk-WOALLU3S.esm.js +0 -39
- package/lib/chunks/chunk-WOU7QPMN.esm.js +0 -1
- package/lib/chunks/chunk-WOZVCKNG.esm.js +0 -1
- package/lib/chunks/chunk-WU7I2JQ5.esm.js +0 -1
- package/lib/chunks/chunk-WWZ35IZM.esm.js +0 -1
- package/lib/chunks/chunk-XMBJFIWC.esm.js +0 -1
- package/lib/chunks/chunk-XNGGM6D6.esm.js +0 -1
- package/lib/chunks/chunk-XQFKZ32H.esm.js +0 -5
- package/lib/chunks/chunk-XSVOUWBC.esm.js +0 -1
- package/lib/chunks/chunk-YHU6QYT4.esm.js +0 -1
- package/lib/chunks/chunk-YYXB4LM2.esm.js +0 -1
- package/lib/chunks/chunk-ZLZK7X6F.esm.js +0 -1
- package/lib/chunks/chunk-ZMINZ3YX.esm.js +0 -1
- package/lib/chunks/chunk-ZWHJNG4B.esm.js +0 -26
- /package/lib/chunks/{chunk-L4PVKG62.esm.js → chunk-4P7MB5JL.esm.js} +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-RKDE2LI7.esm.js";import{a as I}from"./chunk-DHT35FQI.esm.js";import{a as p}from"./chunk-3XYKHZQ7.esm.js";import{g as z}from"./chunk-YYXB4LM2.esm.js";import{a as P}from"./chunk-KFZOV7RP.esm.js";import{a as F}from"./chunk-OLURMBK7.esm.js";import{a as c}from"./chunk-6RPTXDUB.esm.js";import{a as s}from"./chunk-KVKG7TA6.esm.js";import{a as L}from"./chunk-CDRLVSLF.esm.js";import{b as B}from"./chunk-NVFKTKHY.esm.js";import{p as g}from"./chunk-TXM2WOJQ.esm.js";import{a as H,d as v}from"./chunk-DX5SUG7X.esm.js";import{a as m}from"./chunk-LJB6XGSJ.esm.js";import{b as S}from"./chunk-A6Z2M2XU.esm.js";import{d as D}from"./chunk-U27SLYIV.esm.js";import{b as a,g as k}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import t,{useEffect as ie,useState as w}from"react";function Q(e){switch(e){case"Compact":return a(["& ","{padding:",";}& ",",","{padding:",";}"],d,({theme:n})=>n.spacing("micro"),s,c,({theme:n})=>n.spacing("micro"));case"Expansive":return a(["& ","{padding:",";}& ",",","{padding:",";}"],d,({theme:n})=>n.spacing("large"),s,c,({theme:n})=>n.spacing("large"));default:return a(["& ","{padding:",";}& ",",","{padding:",";}"],d,({theme:n})=>n.spacing("medium"),s,c,({theme:n})=>n.spacing("medium"))}}r(Q,"getSizeStyle");function $(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}r($,"getAlignDirection");function U(e){if(typeof e=="object"){let n=e.reduce((u,o)=>{let b=`
|
|
2
|
-
& ${s}, ${c}, ${d} {
|
|
3
|
-
&:nth-child(${o.target}) {
|
|
4
|
-
${m} {
|
|
5
|
-
text-align: ${o.direction};
|
|
6
|
-
align-items: ${$(o.direction)}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;return`${u} ${b}`},"");return a(["& ",",",",","{","{text-align:center;align-items:",";}}",""],s,c,d,m,$("center"),n)}return e!==void 0?a(["& ",",",",","{","{text-align:",";align-items:",";}}"],s,c,d,m,e,$(e)):a(["& ",",",",","{","{text-align:center;align-items:center;}}"],s,c,d,m)}r(U,"getAlignStyle");function X(e){if(e===void 0)return a([""]);let n=e.map((u,o)=>u&&(u.type===void 0?`
|
|
11
|
-
&:nth-child(${o+1}) {
|
|
12
|
-
width: ${u.width}px;
|
|
13
|
-
}
|
|
14
|
-
`:`
|
|
15
|
-
&:nth-child(${o+1}) {
|
|
16
|
-
${u.type}-width: ${u.width}px;
|
|
17
|
-
}
|
|
18
|
-
`));return a(["& ",",",",","{","}"],s,c,d,n)}r(X,"getColumnSizeStyle");function Z(){return a(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],s,c,d,H)}r(Z,"getEllipsisStyle");function R(e){return e.map(n=>a(["& ","{&:nth-child(","){",";}}"],p,n+1,S({bgColor:"neutral.10"})))}r(R,"getSelectedStyle");var ee=`
|
|
19
|
-
& ${d} {
|
|
20
|
-
position: sticky;
|
|
21
|
-
top: 0;
|
|
22
|
-
}
|
|
23
|
-
`,te=a(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],F,p,S({bgColor:"neutral.5"}),s,c,D({borderWidth:"none"}),d),ne=r(e=>`
|
|
24
|
-
& ${p}{
|
|
25
|
-
&:hover{
|
|
26
|
-
& ${s}, ${c}{
|
|
27
|
-
/* box-shadow inset em vez de border evita layout shift no hover
|
|
28
|
-
(rows ficavam +1px maiores ao passar o mouse, gerando drift
|
|
29
|
-
vis\xEDvel). Visual id\xEAntico ao border-1px cl\xE1ssico. */
|
|
30
|
-
box-shadow: inset 0 -1px 0 ${e.colors.getColor(e.colors.neutral[40])};
|
|
31
|
-
&:first-child{
|
|
32
|
-
box-shadow:
|
|
33
|
-
inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
|
|
34
|
-
inset 0 -1px 0 ${e.colors.getColor(e.colors.neutral[40])};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,"getHoverableProps"),j=k.table.withConfig({displayName:"Tablestyle__TableStyle",componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," "," ","{overflow-x:scroll;}"],({width:e})=>e||"100%",({stickyHeader:e})=>e&&ee,({striped:e})=>e&&te,({hoverable:e,theme:n})=>e&&ne(n),({selected:e})=>R(e),({ellipsis:e})=>e?Z():"",({columnSize:e})=>X(e),({align:e})=>U(e),({rowSize:e})=>Q(e),({theme:e})=>e.breakpoints.down("sm"));var M=r(e=>{let[n,u]=w(""),[o,b]=w([]),[E,y]=w([]),[O,C]=w("Default"),x=t.createRef();ie(()=>{if(!x.current)return;let i=Array.from(x.current.children);b(i)},[]);let q=t.Children.toArray(e.children).length>1?1:0,K=t.Children.map(e.children,(i,f)=>f===q?t.cloneElement(i,{ref:x}):i),W=r(i=>{if(i.key==="Enter"){let f=o.map((l,h)=>{let T=x.current.children[h];return n===""&&(T.style.display=""),l.innerText.toLowerCase().includes(n.toLowerCase())||(T.style.display="none"),l});b(f)}},"getFilterData"),_=o.length>0&&o.every(i=>i.style.display==="none"),N=o.length,V=r((i,f)=>{f&&y(l=>[...l,i]),f||y(E.filter(l=>l!==i))},"getSelected"),Y=r(i=>(o.forEach((f,l)=>{let h=f.children[0].querySelectorAll("input")[0];return i&&(h.checked=!0,y(T=>[...T,l])),i||(h.checked=!1,y([])),null}),i),"getAllSelected"),G=r(i=>o.map(l=>parseInt(l.children[i].innerText,10)).reduce((l,h)=>l+h,0),"getAddLines"),J=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function A(i){switch(i){case"normal":if(N<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return r(A,"getOverflow"),t.createElement(m,{overflow:A("normal"),overflowY:A("y"),gap:4},t.createElement(m,{flexDirection:"row",justifyContent:"between",alignItems:"center"},e.title&&t.createElement(v,{color:"primary",variant:"h5","aria-hidden":"true"},e.title),t.createElement(m,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2},e.searching&&t.createElement(m,{width:"230px"},t.createElement(z,{placeholder:"Pesquisar",type:"text",value:n,name:"search",onChange:i=>u(i.target.value),onKeyDown:i=>W(i),width:"230",icon:t.createElement(g,{name:"edit"}),role:"search"})),e.rowTypes&&t.createElement(P,{options:[{icon:t.createElement(g,{name:"menuBars"}),title:"Layout Condensado",action:r(()=>C("Compact"),"action")},{icon:t.createElement(g,{name:"menuBars"}),title:"Layout Padr\xE3o",action:r(()=>C("Expansive"),"action")},{icon:t.createElement(g,{name:"menuBars"}),title:"Layout Expandido",action:r(()=>C("Default"),"action")}]},t.createElement(g,{name:"menuBars",color:"primary"})),e.share&&t.createElement(P,{options:[{icon:t.createElement(g,{name:"envelope"}),title:"Enviar por email",action:e.share.email},{icon:t.createElement(g,{name:"shareAlt"}),title:"Compartilhar",action:e.share.social}]},t.createElement(g,{name:"ellipsisH",color:"primary"})))),J&&t.createElement(I,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage}),t.createElement(j,{stickyHeader:e.stickyHeader,striped:e.striped,rowSize:O||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:E,...e},t.createElement(v,{as:"caption","aria-hidden":"false",hidden:!0},e.title),t.createElement(L.Provider,{value:{ellipsis:e.ellipsis,getSelected:V,getAllSelected:Y,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:G(e.columnSum)}:{index:void 0,sum:void 0}}},K)),_&&t.createElement(B,null))},"TableComponent");export{j as a,M as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-H7A2HNAK.esm.js";import{b as n}from"./chunk-752Z7BQF.esm.js";import{b as m}from"./chunk-4MBWRDIJ.esm.js";import{d as l}from"./chunk-U27SLYIV.esm.js";import{g as p}from"./chunk-APD22JEO.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import b from"react";function c(o){return o==="default"?"primary":o==="info"?"information":o}t(c,"getColorVariant");function y(o,r){var a,i;let e=c(r);return{backgroundColor:(a=o.colors[e])==null?void 0:a.light,color:(i=o.colors[e])==null?void 0:i.action}}t(y,"getColor");var s=p(f).withConfig({displayName:"Labelstyle__LabelStyle",componentId:"sc-dznqj7-0"})(["display:inline;align-self:flex-start;"," "," "," ",""],n({fontSize:"micro",lineHeight:"close"}),m({px:"small",py:"xs"}),l({borderRadius:"micro"}),({theme:o,variant:r})=>y(o,r));function d(o){let{variant:r="default",text:e,children:a}=o;return b.createElement(s,{variant:r},a||e)}t(d,"Label");d.displayName="Label";export{s as a,d as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as k}from"./chunk-KY47BE3L.esm.js";import{a as g,b as D}from"./chunk-V3ULKCWJ.esm.js";import{e as b}from"./chunk-CI3LQ5Z4.esm.js";import{e as O}from"./chunk-7UIH7PNC.esm.js";import{a as N}from"./chunk-BE2JDTVA.esm.js";import{a as _,d as S}from"./chunk-H7A2HNAK.esm.js";import{a as E}from"./chunk-O4SSOOVR.esm.js";import{a as p}from"./chunk-54QUAVTF.esm.js";import{a as T}from"./chunk-AVZENFPL.esm.js";import{a as I,c as w,d as v}from"./chunk-BVDH4EAW.esm.js";import{a as j}from"./chunk-XJ7EBVG3.esm.js";import{c as x}from"./chunk-G5Z7USXC.esm.js";import{b as c,g as i}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var K=c(["max-width:30rem;min-width:20rem;"]),U=c(["max-width:40rem;min-width:20rem;"]),X=c(["max-width:55rem;min-width:40rem;"]),Z=c(["max-width:75rem;min-width:40rem;"]),R=c(["width:95%;"]);function oo({size:t}){switch(t){case"small":return K;case"medium":return X;case"large":return Z;default:return U}}r(oo,"modalSize");function eo({variant:t,theme:e}){let n=e.colors[t];return c(["--baseColor:",";--lightColor:",";--actionColor:",";"],n.base,n.light,n.action)}r(eo,"modalVariantColor");var F=i(v).attrs({p:"large",borderRadius:"md",bgColor:"neutral.0"}).withConfig({displayName:"Modalstyle__ModalDialogStyle",componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],R,eo,({theme:t})=>t.breakpoints.up("sm"),oo),z=i(p).withConfig({displayName:"Modalstyle__ModalContentStyle",componentId:"sc-8jjm43-1"})(["max-height:84vh;overflow:hidden;"]),H=i(p).withConfig({displayName:"Modalstyle__ModalHeader",componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],_,g,g,g),V=i(w).withConfig({displayName:"Modalstyle__ModalBody",componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overscroll-behavior:none;overflow:hidden;"]),G=i(p).attrs({borderRadius:"circular"}).withConfig({displayName:"Modalstyle__ModalIconStyle",componentId:"sc-8jjm43-4"})(["background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),L=i(w).withConfig({displayName:"Modalstyle__ModalContainer",componentId:"sc-8jjm43-5"})(["z-index:9999;display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;"]),W=i(v).withConfig({displayName:"Modalstyle__ModalOverlayStyle",componentId:"sc-8jjm43-6"})(["will-change:opacity;"]);import o,{cloneElement as to,isValidElement as ro,useEffect as no,useState as lo}from"react";import{createPortal as ao}from"react-dom";var Q=r(({isOpen:t,onDismiss:e,...n})=>{if(!t&&!e)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[d,m]=lo(!1);return no(()=>{m(!0)},[]),!d||!x?null:ao(o.createElement(I,null,t?o.createElement(L,{"data-testid":"modal-container"},o.createElement(W,{absoluteFill:!0,bgColor:"neutral.180","data-testid":"modal-overlay",onClick:e,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0}}),o.createElement(mo,{onDismiss:e,...n})):null),x)},"ModalBaseComponent"),io=r(({defaultOpen:t,trigger:e,isOpen:n,onDismiss:d,onModalOpen:m,...s})=>{let{active:l,disable:u,enable:M,toggle:y}=N(t,{onActive:m});return(n||d)&&j.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),o.createElement(o.Fragment,null,r(()=>{let a=null;if(typeof e=="function"&&(a=e({isOpen:l,open:M})),ro(e)&&(a=to(e,{onClick:y})),a===null)throw new Error('"trigger" prop is not a valid element');return a},"renderTrigger")(),o.createElement(Q,{isOpen:l,onDismiss:u,...s}))},"ModalTriggerVariant"),mo=r(({noCloseButton:t,primaryButton:e,secondaryButton:n,primaryText:d,secondaryText:m,onDismiss:s,primaryAction:l,secondaryAction:u,children:M,tagline:y,variant:C,footer:a,title:P,size:$,icon:B})=>{let{isMobile:h}=O(),q=r(()=>{l({close:s})},"handlePrimary"),A=r(()=>{u({close:s})},"handleSecondary"),J=r(()=>{let f={onClick:q,fullWidth:a==="full"||h,"data-testid":"modal-confirm-button"};return e?o.cloneElement(e,f):o.createElement(b,{color:C,...f},d)},"renderPrimaryButton");return o.createElement(F,{size:$,variant:C,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"200%",opacity:0}},o.createElement(z,{gap:"medium"},o.createElement(H,{gap:"xs"},o.createElement(E,{opener:B&&o.createElement(G,{justifyContent:"center",alignItems:"center",p:"micro"},B),closer:!t&&o.createElement(D,{onClick:s,"data-testid":"modal-close-button",icon:o.createElement(k,{name:"times"}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"})},P&&o.createElement(S,{variant:"h4",area:"title",color:"neutral.170",text:P})),y&&o.createElement(S,{variant:"meta",color:"secondary.dark",area:"tagline"},y)),o.createElement(V,{py:"medium"},o.createElement(T,null,M)),(l||u)&&o.createElement(p,{flexDirection:h?"column-reverse":"row",justifyContent:a==="expanded"?"between":"end",gap:"medium"},u&&r(()=>{if(a==="full")return null;let f={onClick:A,fullWidth:h,"data-testid":"modal-cancel-button"};return n?o.cloneElement(n,f):o.createElement(b,{variant:"outlined",color:"secondary",...f},m)},"renderSecondaryButton")(),l&&J())))},"ModalDialog"),Y=r(({noCloseButton:t=!1,secondaryText:e="Cancelar",primaryText:n="Confirmar",variant:d="primary",footer:m="right",...s})=>{let l={noCloseButton:t,secondaryText:e,primaryText:n,variant:d,footer:m,...s};return l!=null&&l.trigger?o.createElement(io,{...l}):o.createElement(Q,{...l})},"ModalComponent");Y.displayName="Modal";export{F as a,z as b,H as c,V as d,G as e,L as f,W as g,Y as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-43YSWDK6.esm.js";import{g as l}from"./chunk-NWFODMOU.esm.js";import{r as p}from"./chunk-XJ7EBVG3.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import v,{useMemo as f,useState as C}from"react";function i(k){let{mask:a,value:n,onChange:e,...I}=k,o=f(()=>p(a),[a]),[M,s]=C(()=>n?o(n):""),r=f(()=>c(e!=null?e:(()=>{}),250),[e]);return v.createElement(l,{...I,reset:t(()=>{s(""),r("")},"resetValues"),value:M,onChange:t((d,V)=>{var m;let u=o((m=d.target.value)!=null?m:"");s(u),r(u)},"handleChange")})}t(i,"InputMaskComponent");i.displayName="InputMask";export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-2UZJN6MC.esm.js";import{c as n}from"./chunk-BMUHQ5OQ.esm.js";import{g as e}from"./chunk-APD22JEO.esm.js";var o=e(n).withConfig({displayName:"Spinnerstyle__SpinnerStyle",componentId:"sc-1teioay-0"})(["animation:rotate 2s linear infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),i=e(t).withConfig({displayName:"Spinnerstyle__SpinnerCircle",componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"]);import s,{forwardRef as S}from"react";var a=S(({size:p,...m},f)=>{let r=p||"1em";return s.createElement(o,{as:"svg",viewBox:"0 0 50 50",...m,width:r,height:r,ref:f},s.createElement(i,{cx:"25",cy:"25",r:"20"}))});a.displayName="Spinner";export{o as a,i as b,a as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-OT6DKXSK.esm.js";import{a as y}from"./chunk-RHUIIG22.esm.js";import{j as H}from"./chunk-XJ7EBVG3.esm.js";import{g as c}from"./chunk-APD22JEO.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import n from"react";var q=i(({theme:t,disabled:f,variant:r})=>{let e=t.colors.neutral[180],s=t.colors.neutral[180];if(r!=="default"){let{base:m,dark:a}=r==="success"?t.colors.success:t.colors.danger;e=a,s=m}return f&&(e=t.colors.grayscale[30]),{"--colorLabel":e,"--colorHint":s}},"getFieldColor"),v=c(y).withConfig({displayName:"Fieldstyle__FieldContainerStyle",componentId:"sc-1iiu1tt-0"})(["width:100%;justify-content:center;",";"],q),L=c(d).withConfig({displayName:"Fieldstyle__LabelStyle",componentId:"sc-1iiu1tt-1"})(["color:var(--color-label);"]),O=c(d).withConfig({displayName:"Fieldstyle__OptionalTextStyle",componentId:"sc-1iiu1tt-2"})(["color:var(--color-label);"]),_=c(d).withConfig({displayName:"Fieldstyle__HintTextStyle",componentId:"sc-1iiu1tt-3"})(["color:var(--color-hint);&:empty{height:",";}"],({theme:t})=>t.spacing("small"));var I=i(({name:t,value:f,label:r,inputProps:e,hintText:s,variant:m,setFieldValue:a,readOnly:g,readOnlyText:N="apenas leitura",hintErrorText:j="Something went wrong",hintSuccessText:k="Everything is alright",...o})=>{var w;let u=o.component,h=!!o.errors||o.error,F=!!o.success,x=(w=e==null?void 0:e.readOnly)!=null?w:g,V=i(l=>{if(!g&&(e!=null&&e.onChange&&e.onChange(l),a)){let S=l;H(l)&&(S=l.target.type==="checkbox"||l.target.type==="radio"?l.target.checked:l.target.value),a(t,S)}},"onChange"),z=i(()=>{if(g)return;if(typeof(e==null?void 0:e.reset)=="function"){e.reset();return}let l=e==null?void 0:e.type;a(t,l==="checkbox"||l==="radio"?!1:"")},"resetField"),E=typeof o.errors=="string"?o.errors:j,b=h&&E||F&&k||s,C=m||h&&"error"||F&&"success"||"default",D=!r||o.hideLabel,B=x||o.optionalText,W=x?N:o.optionalText,T=e&&e.disabled;return n.createElement(v,{area:o.area,variant:C,disabled:T,gap:"micro",...o.fieldProps},n.createElement(y,{flexDirection:"row",justifyContent:"between",isHidden:D},n.createElement(L,{as:"label",htmlFor:t,fontSize:"xs",fontWeight:"bold",lineHeight:"regular"},r),B&&n.createElement(O,{fontStyle:"italic",lineHeight:"tight",fontSize:"micro"},W)),n.createElement(u,{...e,id:t,name:t,value:f,variant:C,readOnly:x,onChange:V,reset:z}),n.createElement(_,{lineHeight:"tight",fontSize:"micro",isHidden:T||!b},b))},"FieldComponent");I.displayName="Field";export{I as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d}from"./chunk-YRGWNW2J.esm.js";import{a as x}from"./chunk-JSUB6SAI.esm.js";import{b as m}from"./chunk-752Z7BQF.esm.js";import{b as L}from"./chunk-JB7G6UGV.esm.js";import{b as k}from"./chunk-GP7NECT4.esm.js";import{c as u}from"./chunk-LL6B4Q4R.esm.js";import{g as f}from"./chunk-APD22JEO.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import p,{forwardRef as B}from"react";var A=i(t=>{let e=L(t)(t);return e!=null&&e.color?{...e,color:u(e.color,t.theme.colors.baseLight)}:e},"readableLinkColor"),g=f.a.withConfig({displayName:"Linkstyle__LinkStyle",componentId:"sc-jsghq-0"})(A,k({cursor:"pointer"}),m({textDecoration:"underline",fontFamily:"main"})),h=f.a.withConfig({displayName:"Linkstyle__LinkButtonStyle",componentId:"sc-jsghq-1"})(["",";",";"],d,m({lineHeight:"tight"}));var C=i(t=>t?/^(https?:)?\/\//i.test(t)||/^(mailto|tel|sms):/i.test(t):!1,"isExternalHref"),b={target:"_blank",rel:"noopener noreferrer"},I=B(({as:t,text:e,children:a,variant:s="contained",color:n="primary",href:o,...l},r)=>{let c=C(o);return p.createElement(h,{...l,...c?b:{},as:c?"a":t,variant:s,color:n,href:o,ref:r},p.createElement(x,{fontWeight:"bold",lineHeight:"tight"},a||e))}),y=B(({as:t,text:e,children:a,color:s="primary",href:n,...o},l)=>{let r=C(n);return p.createElement(g,{...o,...r?b:{},as:r?"a":t,color:s,href:n,ref:l},a||e)});y.Button=I;y.displayName="Link";export{g as a,h as b,y as c};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{b as a}from"./chunk-B7OYYZKE.esm.js";import{e as m}from"./chunk-7UIH7PNC.esm.js";import{a as d}from"./chunk-54QUAVTF.esm.js";import{g as i}from"./chunk-APD22JEO.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import e from"react";var n={xs:{columns:"1fr",rows:"100%",areas:`
|
|
2
|
-
"content"
|
|
3
|
-
`},md:{columns:"200px 1fr",rows:"100%",areas:`
|
|
4
|
-
"sidebar content"
|
|
5
|
-
`}};var s=i(a).attrs({medias:n}).withConfig({displayName:"SideBarLayoutstyle__StyledGrid",componentId:"sc-191lt0b-0"})(["height:100%;"]);function f({layoutComponents:r}){let{isMobile:t}=m();return e.createElement(s,null,!t&&r.sidebar&&e.createElement(r.sidebar,null),e.createElement(d,{area:"content",width:"100%",justifyContent:t?"center":void 0},r.content&&e.createElement(r.content,null)))}o(f,"SideBarLayout");f.displayName="SideBarLayout";export{n as a,s as b,f as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d}from"./chunk-ZMINZ3YX.esm.js";import{a as x}from"./chunk-DX5SUG7X.esm.js";import{b as m}from"./chunk-752Z7BQF.esm.js";import{b as L}from"./chunk-JB7G6UGV.esm.js";import{b as k}from"./chunk-GP7NECT4.esm.js";import{c as u}from"./chunk-JHHNSZJ4.esm.js";import{g as f}from"./chunk-APD22JEO.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import p,{forwardRef as B}from"react";var A=i(t=>{let e=L(t)(t);return e!=null&&e.color?{...e,color:u(e.color,t.theme.colors.baseLight)}:e},"readableLinkColor"),g=f.a.withConfig({displayName:"Linkstyle__LinkStyle",componentId:"sc-jsghq-0"})(A,k({cursor:"pointer"}),m({textDecoration:"underline",fontFamily:"main"})),h=f.a.withConfig({displayName:"Linkstyle__LinkButtonStyle",componentId:"sc-jsghq-1"})(["",";",";"],d,m({lineHeight:"tight"}));var C=i(t=>t?/^(https?:)?\/\//i.test(t)||/^(mailto|tel|sms):/i.test(t):!1,"isExternalHref"),b={target:"_blank",rel:"noopener noreferrer"},I=B(({as:t,text:e,children:a,variant:s="contained",color:n="primary",href:o,...l},r)=>{let c=C(o);return p.createElement(h,{...l,...c?b:{},as:c?"a":t,variant:s,color:n,href:o,ref:r},p.createElement(x,{fontWeight:"bold",lineHeight:"tight"},a||e))}),y=B(({as:t,text:e,children:a,color:s="primary",href:n,...o},l)=>{let r=C(n);return p.createElement(g,{...o,...r?b:{},as:r?"a":t,color:s,href:n,ref:l},a||e)});y.Button=I;y.displayName="Link";export{g as a,h as b,y as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as c}from"./chunk-KUDPW647.esm.js";import{a as u}from"./chunk-IWMEDT6U.esm.js";import{a as d}from"./chunk-OT6DKXSK.esm.js";import{a as e}from"./chunk-RHUIIG22.esm.js";import{c as p}from"./chunk-ZLZK7X6F.esm.js";import{g as f}from"./chunk-APD22JEO.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import i,{forwardRef as g,useMemo as k}from"react";var T=f(e).withConfig({displayName:"Tabsstyle__TabsHeaderStyle",componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}","{> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}}"],({theme:t})=>t.colors.grayscale[30],e,({theme:t})=>t.breakpoints.down("sm"),e),x=f(c).attrs(t=>{var o,r;return{borderRadius:(o=t.borderRadius)!=null?o:"straight",borderWidth:(r=t.borderWidth)!=null?r:"none"}}).withConfig({displayName:"Tabsstyle__TabButtonStyle",componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;border-bottom:2px solid ",";&:focus,&:active,&:hover{box-shadow:none;text-decoration:none;}"],({isActive:t,theme:o,color:r})=>t?p(o.colors[r],"base"):"transparent");function H({isActive:t,tabTitle:o,color:r="primary",buttonProps:m}){return i.createElement(x,{as:"button",variant:"linked",isActive:t,color:r,...m},i.createElement(d,{fontWeight:"bold",lineHeight:"tight"},o))}s(H,"TabButton");var F=g(({selectedIndex:t=0,onChange:o,tabs:r,tabHeaderProps:m,tabContentProps:y,...B},w)=>{let b=k(()=>r.map(n=>({...n,id:u()})),[r]),v=s(n=>t===n,"isCurrentIndex");return i.createElement(e,{...B,ref:w},i.createElement(T,{...m},i.createElement(e,{flexDirection:"row",width:"100%",gap:"medium",container:!0,position:"relative",alignItems:"end",as:"section"},b.map(({id:n,buttonProps:h,handleClick:l,...S},a)=>i.createElement(H,{key:n,isActive:v(a),...S,buttonProps:{...h,onClick:s(I=>{a!==t&&(l==null||l(a,I),o==null||o(a))},"onClick")}})))),i.createElement(e,{flex:"fluid",as:"section",container:!0,width:"100%",...y},b[t].content))});F.displayName="Tabs";export{T as a,x as b,H as c,F as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p,p as c}from"./chunk-TXM2WOJQ.esm.js";import{a,b as h}from"./chunk-CYURSPLT.esm.js";import{a as g}from"./chunk-LJB6XGSJ.esm.js";import{c as I}from"./chunk-2SPVSCZD.esm.js";import{b as m}from"./chunk-A6Z2M2XU.esm.js";import{b as s}from"./chunk-JR7YIS3H.esm.js";import{b as i,g as f}from"./chunk-APD22JEO.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";function W(){return i(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus + ","{color:var(--base-color);}"],s({deep:-1}),s({deep:0}),p)}l(W,"inputVariantStyle");var F=i(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.neutral[70]),N=i(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],s({deep:0}));function _({iconPosition:o}){return o==="left"?i(["& + ",",& + ","{left:1em;right:unset;}"],a,p):null}l(_,"invertIconPosition");var A=i(["&:disabled + ","{color:var(--disabled-color);}&:disabled + ","{pointer-events:none;","}& + ","{width:intrinsic;","}& + ",",& + ","{color:var(--icon-color);z-index:100;position:absolute;align-self:center;right:1em;& > g{fill:var(--icon-color);}}"],p,a,m(()=>({bgColor:"grayscale.10"})),a,m(()=>({bgColor:"grayscale.40"})),a,p),x=f(I.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"grayscale.0",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({displayName:"Inputstyle__InputStyle",componentId:"sc-8elel8-0"})(["-webkit-appearance:none;display:block;width:100%;outline:none;transition:",";"," ",";",";",";",";&[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;opacity:0;}&[type='number']::-webkit-outer-spin-button,&[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"],({theme:o})=>o.animation.transitions.short,W,A,_,N,F),b=f(g).withConfig({displayName:"Inputstyle__WrapperInputStyle",componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let t=o.colors.primary;r==="error"?t=o.colors.danger:r==="success"&&(t=o.colors.success);let{base:e,dark:n}=t;return{display:"flex",position:"relative","--base-color":e,"--dark-color":n,"--disabled-bg":o.colors.neutral[10],"--disabled-color":o.colors.neutral[50],"--icon-color":r==="default"?o.colors.neutral[100]:e,"--border-color":r==="default"?o.colors.neutral[40]:e}});b.displayName="input";import w,{forwardRef as B}from"react";import d from"react";var k={expansive:{py:"medium",fontSize:"small",borderRadius:"xs",height:54},medium:{py:"small",fontSize:"small",borderRadius:"xs",height:46},compact:{py:"xs",fontSize:"small",borderRadius:"xs",height:38},micro:{py:"micro",fontSize:"micro",borderRadius:"micro",height:26}};function S({icon:o,variant:r,clearable:t,reset:e,value:n,readOnly:u}){return t&&e&&n&&!u?d.createElement(h,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:e,"data-testid":"input-reset-button",icon:d.createElement(c,{size:"small",color:"grayscale.0",name:"times"})}):o||(r==="error"?d.createElement(c,{name:"times","data-testid":"input-icon-error"}):r==="success"?d.createElement(c,{name:"check","data-testid":"input-icon-success"}):null)}l(S,"getIconComponent");var P=B(({value:o,variant:r="default",iconPosition:t="right",size:e="medium",...n},u)=>{let{disabled:v,width:C,style:D,...z}=n,y=S({...n,value:o,variant:r,size:e,iconPosition:t}),T={...k[e],...y&&{[t==="right"?"pr":"pl"]:"xl"}};return w.createElement(b,{variant:r,width:C,flexDirection:"row"},w.createElement(x,{iconPosition:t,disabled:v,variant:r,...T,...z,...o!==void 0&&{value:o},ref:u}),y)});P.displayName="Input";export{W as a,F as b,N as c,_ as d,x as e,b as f,P as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,b as f,c as b,d as m,e as x,f as k}from"./chunk-7WVLGVVA.esm.js";import{o as h,p as l}from"./chunk-XJ7EBVG3.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var M=C("oklch"),O=C("rgb");function e(t,r,o){var p;let s=m(t),n=m(r);if(!s||!n)return t;let a=b([s,n],"oklch");return(p=f(a(o)))!=null?p:t}i(e,"mixOklch");function F(t){return t?typeof t=="string"?t:t.base:"#000"}i(F,"coerceToHex");var E=l(t=>{var a,p,u;let r=O(m(t));if(!r)return"0,0,0";let o=Math.round(((a=r.r)!=null?a:0)*255),s=Math.round(((p=r.g)!=null?p:0)*255),n=Math.round(((u=r.b)!=null?u:0)*255);return`${o},${s},${n}`});function I(t){var n,a;let r=F(t),o=M(m(r));if(!o)return r;let s={...o,h:(((n=o.h)!=null?n:0)+180)%360};return(a=f(s))!=null?a:r}i(I,"getOppositeColor");function y(t,r){return t?typeof t=="string"?t:t[r||"base"]:"black"}i(y,"getColor");var T=l((t,r)=>{let o=y(t),s=4.5,n=.45,a=o,p=r||"#FFFFFF",u=e(a,"#000",.6),g=m(a),d=m(u);if(!g||!d)return u;let H=k(g),P=x(d,g)>=s;return H<n?P?u:p:u});function c(t,r){let o=F(t),s=r.deepDark,n=r.deepLight;return{base:o,dark:e(o,s,.6),action:e(o,s,.2),active:e(o,n,.6),light:e(o,n,.9)}}i(c,"mountSingleColor");function A(t){let r=t.deepLight,o=t.deepDark;return{0:r,5:e(r,o,.05),10:e(r,o,.1),20:e(r,o,.2),30:e(r,o,.3),40:e(r,o,.4),50:e(r,o,.5),60:e(r,o,.6),70:e(r,o,.7),80:e(r,o,.8),90:e(r,o,.9),100:e(r,o,1)}}i(A,"mountGreyscaleColors");function L(t){let r=t.deepLight,o=t.deepDark,s=t.primary,n=i(p=>1/17*(p-1),"interpolation"),a=e(s,o,.5);return{0:e(a,r,n(18)),5:e(a,r,n(17.5)),10:e(a,r,n(17)),20:e(a,r,n(16)),30:e(a,r,n(15)),40:e(a,r,n(14)),50:e(a,r,n(13)),60:e(a,r,n(12)),70:e(a,r,n(11)),80:e(a,r,n(10)),90:e(a,r,n(9)),100:e(a,r,n(8)),110:e(a,r,n(7)),120:e(a,r,n(6)),130:e(a,r,n(5)),140:e(a,r,n(4)),150:e(a,r,n(3)),160:e(a,r,n(2)),170:a,180:e(a,o,.25)}}i(L,"mountNeutralColors");function D(t){return{main:c(t.main,t),opposite:c(t.opposite,t),complementary:c(t.complementary,t)}}i(D,"mountBaseColors");function B(t){return{danger:c(t.danger,t),information:c(t.information,t),success:c(t.success,t),warning:c(t.warning,t)}}i(B,"mountActionColors");function w(t){return{primary:c(t.primary,t),secondary:c(t.secondary,t),tertiary:c(t.tertiary,t)}}i(w,"mountMainColors");var S={baseDark:"#26292E",baseLight:"#FCFCFC",transparent:"transparent",deepDark:"#000",deepLight:"#FFF",main:"#003750",opposite:I("#003750"),complementary:"#F6BA20",information:"#3399FF",success:"#2CB567",danger:"#E12712",warning:"#FFBB00",primary:"#32AFDC",secondary:"#2D81AA",tertiary:"#2CE571"};function V(t){let r={baseDark:t.baseDark,baseLight:t.baseLight,deepDark:t.deepDark,deepLight:t.deepLight,transparent:t.transparent,neutral:L(t),grayscale:A(t),...D(t),...B(t),...w(t)},o=l(h);return Object.assign(s=>o(s,r,"base"),r,{getColor:y,getContrastColor:T})}i(V,"createColors");export{E as a,I as b,y as c,T as d,c as e,A as f,L as g,D as h,B as i,w as j,S as k,V as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-DX5SUG7X.esm.js";import{a as g}from"./chunk-LVZPZN7J.esm.js";import{a as f}from"./chunk-6TWTLAW6.esm.js";import{a as b}from"./chunk-LJB6XGSJ.esm.js";import{b as d}from"./chunk-WXS2V6GM.esm.js";import{b as l}from"./chunk-752Z7BQF.esm.js";import{b as c}from"./chunk-4MBWRDIJ.esm.js";import{d as a}from"./chunk-U27SLYIV.esm.js";import{b as s,g as u}from"./chunk-APD22JEO.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";import i,{forwardRef as R}from"react";var P=e(({size:o})=>{switch(o){case"extraSmall":return[l({textTransform:"uppercase",fontWeight:"bold",fontSize:"micro"}),c({py:"micro",px:"medium"}),a({borderRadius:"micro"})];case"small":return[l({fontWeight:"bold",fontSize:"small"}),c({py:"xs",px:"medium"}),a({borderRadius:"large"})];case"large":return[l({fontWeight:"bold",fontSize:"medium"}),c({py:"medium",px:"xl"}),a({borderRadius:"large"})];default:return[l({fontWeight:"bold",fontSize:"small"}),c({py:"small",px:"large"}),a({borderRadius:"large"})]}},"buttonSize"),z=e((o,t)=>s(["color:",";background:",";border-color:",";box-shadow:",";&:hover{color:",";background:",";border-color:",";box-shadow:",";}&:focus{color:",";background:",";border-color:",";&:hover{border-color:",";}}&:active{&,&:hover,&:focus{color:",";background:",";border-color:",";}}&:disabled{background:",";border-color:",";color:",";box-shadow:",";cursor:default;}"],t.colors.getContrastColor(o.base),o.base,o.base,r=>r.theme.depth("level-two"),t.colors.getContrastColor(o.action),o.action,o.action,r=>r.theme.depth("level-zero"),t.colors.getContrastColor(o.action),o.action,o.active,o.action,t.colors.getContrastColor(o.active),o.active,o.light,t.colors.neutral[10],t.colors.neutral[10],t.colors.neutral[40],r=>r.theme.depth("level-zero")),"ButtonContained"),F=e((o,t)=>s(["background:transparent;color:",";border-color:",";&:hover{color:",";background:",";border-color:",";}&:focus{color:",";background:",";border-color:",";box-shadow:",";&:hover{border-color:",";}}&:active{&,&:hover,&:focus{background-color:transparent;color:",";border-color:",";box-shadow:",";}}&:disabled{color:",";background:",";border-color:",";cursor:default;}"],o.base,o.base,t.colors.getContrastColor(o.action),o.action,o.action,t.colors.getContrastColor(o.action),o.action,o.active,r=>r.theme.depth("level-two"),o.action,o.dark,o.light,r=>r.theme.depth("level-two"),t.colors.getContrastColor(t.colors.neutral[10]),t.colors.neutral[10],t.colors.neutral[10]),"ButtonOutlined"),h=e((o,t)=>s(["background:transparent;color:",";border-color:transparent;border-radius:none;&:hover{color:",";text-decoration:underline;}&:focus{color:",";text-decoration:underline;}&:active{color:",";text-decoration:underline;}&:disabled{color:",";text-decoration:none;cursor:default;}"],o.base,o.action,o.base,o.active,t.colors.getContrastColor(t.colors.neutral[10])),"ButtonLinked"),T=e(({color:o,variant:t,theme:r})=>{let n=r.colors[o];switch(t){case"outlined":return F(n,r);case"linked":return h(n,r);default:return z(n,r)}},"buttonVariant"),W=e(({fullWidth:o})=>({width:o?"100%":"fit-content"}),"isFullWidth"),C=s(["outline:0;cursor:pointer;transition:",";"," "," "," "," ",""],({theme:o})=>o.animation.transitions.short,a({borderWidth:"regular",borderStyle:"solid"}),d({gap:"xs",flexDirection:"row",alignItems:"center",justifyContent:"center"}),W,P,T),y=u(b).withConfig({displayName:"Buttonstyle__ButtonStyle",componentId:"sc-12djmz6-0"})([""," ","{width:1em;height:1em;}"],C,f);var x=R(({children:o,text:t,isLoading:r,icon:n=null,iconPosition:m="left",color:B="primary",size:S="medium",variant:v="contained",fullWidth:w=!1,...I},k)=>i.createElement(y,{...I,color:B,size:S,variant:v,fullWidth:w,as:"button",ref:k},i.createElement(g,{loading:r,...m==="right"?{closer:n}:{opener:n}},i.createElement(p,{fontWeight:"bold",lineHeight:"tight",fontFamily:"main"},o||t))));x.displayName="Button";export{P as a,T as b,C as c,y as d,x as e};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{a as x,b as y,c as T,f as h}from"./chunk-YYXB4LM2.esm.js";import{a as c}from"./chunk-LJB6XGSJ.esm.js";import{b as o}from"./chunk-2SPVSCZD.esm.js";import{b as f}from"./chunk-752Z7BQF.esm.js";import{b as d}from"./chunk-4MBWRDIJ.esm.js";import{b as p}from"./chunk-A6Z2M2XU.esm.js";import{d as u}from"./chunk-U27SLYIV.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var S=o("textarea")`
|
|
2
|
-
-webkit-appearance: none;
|
|
3
|
-
width: 100%;
|
|
4
|
-
outline: none;
|
|
5
|
-
display: block;
|
|
6
|
-
transition: ${({theme:e})=>e.animation.transitions.short};
|
|
7
|
-
|
|
8
|
-
${x}
|
|
9
|
-
|
|
10
|
-
${T}
|
|
11
|
-
|
|
12
|
-
${y}
|
|
13
|
-
|
|
14
|
-
${u({borderRadius:"xs",borderWidth:"thin",borderStyle:"solid"})}
|
|
15
|
-
${f({fontFamily:"main"})}
|
|
16
|
-
${d({p:"small"})}
|
|
17
|
-
${p({bgColor:"grayscale.0"})}
|
|
18
|
-
`,A=o(c)`
|
|
19
|
-
position: absolute;
|
|
20
|
-
right: 0;
|
|
21
|
-
bottom: 0;
|
|
22
|
-
line-height: 1.2rem;
|
|
23
|
-
font-size: 0.6875rem;
|
|
24
|
-
transform: translateY(100%);
|
|
25
|
-
color: ${({theme:e})=>e.colors.neutral[170]};
|
|
26
|
-
`;import a,{forwardRef as k,useState as V}from"react";var D={expansive:{fontSize:"medium",py:"medium"},medium:{fontSize:"medium",py:"small"},compact:{fontSize:"medium",py:"xs"},micro:{py:"micro",fontSize:"small",borderRadius:"micro"}},g=k(({value:e,defaultValue:b,onChange:n,maxLengthHint:C="characters left",variant:i="default",resize:I=!1,size:z="medium",...r},F)=>{let t=e!==void 0,[l,$]=V(b||""),P=t?e:l;return a.createElement(h,{variant:i},a.createElement(S,{value:t?e:l,defaultValue:void 0,variant:i,onChange:s(m=>{t||$(m.target.value),n&&n(m)},"handleChange"),...D[z],...r,ref:F,style:{resize:I?"both":"none"}}),r.maxLength&&a.createElement(A,null,Number(r.maxLength)-(P||"").length," ",C))});g.displayName="TextArea";export{S as a,A as b,g as c};
|
|
File without changes
|