@apollion-dsi/core 7.0.0 → 7.2.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/lib/chunks/{Dropdown.floating-O5GWHN6F.esm.js → Dropdown.floating-7EM6JR7N.esm.js} +1 -1
- package/lib/chunks/Notification.group-4FQM35YN.esm.js +1 -0
- package/lib/chunks/Tooltip.floating-IEWE6XP4.esm.js +1 -0
- package/lib/chunks/chunk-347TNROV.esm.js +1 -0
- package/lib/chunks/chunk-3ICGUDL7.esm.js +1 -0
- package/lib/chunks/chunk-42TLD4GM.esm.js +1 -0
- package/lib/chunks/{chunk-OHLL57EN.esm.js → chunk-4DUZ532N.esm.js} +1 -1
- package/lib/chunks/{chunk-A77HKHNQ.esm.js → chunk-4TQV5FFJ.esm.js} +1 -1
- package/lib/chunks/{chunk-QAK32AY3.esm.js → chunk-57RF3T2U.esm.js} +1 -1
- package/lib/chunks/{chunk-X64PGKAO.esm.js → chunk-5ILT45RQ.esm.js} +1 -1
- package/lib/chunks/{chunk-KKFQPSAE.esm.js → chunk-62CVSGJD.esm.js} +1 -1
- package/lib/chunks/chunk-7BPSZCSD.esm.js +1 -0
- package/lib/chunks/{chunk-KBBFH5LX.esm.js → chunk-7PFH2RKV.esm.js} +1 -1
- package/lib/chunks/{chunk-CB7EKQYI.esm.js → chunk-AM56FZLE.esm.js} +1 -1
- package/lib/chunks/{chunk-7HRVZJBD.esm.js → chunk-BHRDNR3A.esm.js} +1 -1
- package/lib/chunks/{chunk-VXAPSA5T.esm.js → chunk-CC5NKEXF.esm.js} +1 -1
- package/lib/chunks/chunk-CK3WBMQQ.esm.js +1 -0
- package/lib/chunks/chunk-CNJA3S6G.esm.js +1 -0
- package/lib/chunks/{chunk-FJHDGSZE.esm.js → chunk-CTFEQBY7.esm.js} +1 -1
- package/lib/chunks/{chunk-OQWC47RM.esm.js → chunk-CWSD3AXD.esm.js} +1 -1
- package/lib/chunks/{chunk-YW2TWFDF.esm.js → chunk-DKLZWHQO.esm.js} +1 -1
- package/lib/chunks/{chunk-VAA7V65K.esm.js → chunk-EFFENLBC.esm.js} +1 -1
- package/lib/chunks/{chunk-A7JDCK3C.esm.js → chunk-EK6YOJCW.esm.js} +1 -1
- package/lib/chunks/{chunk-4RAZZLLG.esm.js → chunk-ET2EP4QA.esm.js} +11 -7
- package/lib/chunks/chunk-ETEH25BP.esm.js +1 -0
- package/lib/chunks/{chunk-DRXC4B7Z.esm.js → chunk-FBHZTBNG.esm.js} +1 -1
- package/lib/chunks/chunk-GC5QKJHS.esm.js +26 -0
- package/lib/chunks/{chunk-DP5DDF7U.esm.js → chunk-GHDDFAEP.esm.js} +1 -1
- package/lib/chunks/chunk-GWC4QADH.esm.js +1 -0
- package/lib/chunks/{chunk-CTNZPJ47.esm.js → chunk-H4XR4LGF.esm.js} +1 -1
- package/lib/chunks/chunk-H7ADZSZ7.esm.js +1 -0
- package/lib/chunks/{chunk-DGQ46IKV.esm.js → chunk-HD42Q2PS.esm.js} +1 -1
- package/lib/chunks/chunk-HGOJTQ3L.esm.js +4 -0
- package/lib/chunks/chunk-HKOM2JMK.esm.js +1 -0
- package/lib/chunks/chunk-IQWHAMQB.esm.js +48 -0
- package/lib/chunks/{chunk-EXHRZZ5E.esm.js → chunk-J2ZPCUOE.esm.js} +1 -1
- package/lib/chunks/chunk-JLUNVLUS.esm.js +1 -0
- package/lib/chunks/{chunk-FH54V56Y.esm.js → chunk-JY6IWPBO.esm.js} +1 -1
- package/lib/chunks/{chunk-SMAAEIJR.esm.js → chunk-KU2OQ3LP.esm.js} +1 -1
- package/lib/chunks/chunk-LPIWPCM4.esm.js +1 -0
- package/lib/chunks/{chunk-LCIO2E2K.esm.js → chunk-MBQGF5IM.esm.js} +1 -1
- package/lib/chunks/chunk-MGWZZQPO.esm.js +1 -0
- package/lib/chunks/{chunk-ZACTPOXN.esm.js → chunk-MMKXCJ23.esm.js} +1 -1
- package/lib/chunks/{chunk-R6MCW24V.esm.js → chunk-MYGV5PMT.esm.js} +1 -1
- package/lib/chunks/chunk-N5QK3LZW.esm.js +1 -0
- package/lib/chunks/{chunk-ER6KS2SA.esm.js → chunk-O2EYNJ7I.esm.js} +1 -1
- package/lib/chunks/{chunk-SNZE6LRL.esm.js → chunk-ODL6ZIU7.esm.js} +1 -1
- package/lib/chunks/chunk-OEEVC5Y2.esm.js +1 -0
- package/lib/chunks/{chunk-KIFRBQYQ.esm.js → chunk-OUTATATT.esm.js} +1 -1
- package/lib/chunks/chunk-R2TPABZ3.esm.js +1 -0
- package/lib/chunks/{chunk-T6USFPVA.esm.js → chunk-R3VRFUEK.esm.js} +1 -1
- package/lib/chunks/{chunk-NDMZLKX7.esm.js → chunk-RNAHUZE7.esm.js} +1 -1
- package/lib/chunks/{chunk-OHVMP5B7.esm.js → chunk-RZLOZ3NW.esm.js} +1 -1
- package/lib/chunks/chunk-TBHGVERY.esm.js +1 -0
- package/lib/chunks/{chunk-FNYWD4YI.esm.js → chunk-TBWTTUID.esm.js} +1 -1
- package/lib/chunks/{chunk-W37MIT56.esm.js → chunk-UACWLLHE.esm.js} +10 -6
- package/lib/chunks/chunk-UDQ3TYVZ.esm.js +1 -0
- package/lib/chunks/chunk-ULRUO4J4.esm.js +1 -0
- package/lib/chunks/{chunk-MJK3VHIO.esm.js → chunk-UNYBUDKE.esm.js} +1 -1
- package/lib/chunks/{chunk-GC2ZV3CY.esm.js → chunk-UQVJ7IG5.esm.js} +1 -1
- package/lib/chunks/chunk-VPRTYKGB.esm.js +39 -0
- package/lib/chunks/chunk-VUK26WF2.esm.js +1 -0
- package/lib/chunks/{chunk-BQBDAFDE.esm.js → chunk-X2CMFDNG.esm.js} +1 -1
- package/lib/chunks/{chunk-WI3WPCW3.esm.js → chunk-XTY6DXMK.esm.js} +1 -1
- package/lib/chunks/chunk-XTYYQH7J.esm.js +1 -0
- package/lib/chunks/{chunk-HW42PSLQ.esm.js → chunk-YA5EBWSR.esm.js} +1 -1
- package/lib/chunks/{chunk-UWIWI6XE.esm.js → chunk-YHQ6S4MF.esm.js} +1 -1
- package/lib/chunks/{chunk-VU3NKSLB.esm.js → chunk-YSSFTYCU.esm.js} +1 -1
- package/lib/chunks/{chunk-WMBOZ7KA.esm.js → chunk-ZJ3V4V3H.esm.js} +1 -1
- package/lib/chunks/{chunk-GM3IRR2E.esm.js → chunk-ZQ5JOSGH.esm.js} +1 -1
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.style.d.ts +0 -15
- package/lib/containers/Flex/index.d.ts +1 -1
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.style.d.ts +1 -12
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.style.d.ts +2 -34
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +10 -0
- package/lib/containers/Paper/Paper.style.d.ts +11 -75
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +5 -5
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +25 -1
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.interface.d.ts +2 -1
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +24 -0
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/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/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +7 -7
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +44 -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/Avatar.style.d.ts +6 -38
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Divider/Divider.style.d.ts +7 -38
- package/lib/elements/Divider/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/IconButton/index.esm.js +1 -1
- package/lib/elements/IconText/IconText.style.d.ts +7 -39
- package/lib/elements/IconText/index.esm.js +1 -1
- package/lib/elements/Image/Image.interface.d.ts +2 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +2 -34
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +6 -69
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/Popover.style.d.ts +13 -0
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +2 -1
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/index.esm.js +1 -1
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.interface.d.ts +2 -1
- package/lib/elements/Svg/Svg.style.d.ts +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +3 -1
- package/lib/factory/FlexFactory/index.esm.js +1 -1
- package/lib/factory/PlacementFactory/PlacementFactory.d.ts +25 -0
- package/lib/factory/PlacementFactory/PlacementFactory.interface.d.ts +30 -0
- package/lib/factory/PlacementFactory/index.d.ts +2 -0
- package/lib/factory/PlacementFactory/index.esm.js +1 -0
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
- package/lib/factory/index.d.ts +1 -0
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.d.ts +1 -1
- package/lib/form/Checkbox/Checkbox.interface.d.ts +2 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +4 -3
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.interface.d.ts +2 -2
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.interface.d.ts +2 -1
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.interface.d.ts +2 -2
- package/lib/form/Input/Input.style.d.ts +2 -2
- 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/InputRange.d.ts +1 -1
- package/lib/form/InputRange/InputRange.interface.d.ts +2 -1
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Option/index.esm.js +1 -1
- package/lib/form/Radio/Radio.d.ts +1 -1
- package/lib/form/Radio/Radio.interface.d.ts +2 -1
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.interface.d.ts +2 -1
- package/lib/form/Select/Select.style.d.ts +2 -1
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/Switch.d.ts +1 -1
- package/lib/form/Switch/Switch.interface.d.ts +2 -1
- package/lib/form/Switch/Switch.style.d.ts +4 -3
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.interface.d.ts +2 -1
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +25 -11
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.esm.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.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/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/GlobalStyle/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 +2 -2
- package/lib/chunks/Notification.group-VLYQ6NRW.esm.js +0 -1
- package/lib/chunks/Tooltip.floating-WTJLJZJN.esm.js +0 -1
- package/lib/chunks/chunk-3FWZII65.esm.js +0 -1
- package/lib/chunks/chunk-4BZPXLAW.esm.js +0 -1
- package/lib/chunks/chunk-4PAEVB5H.esm.js +0 -1
- package/lib/chunks/chunk-5HLJ7LZZ.esm.js +0 -4
- package/lib/chunks/chunk-6DILIYS2.esm.js +0 -1
- package/lib/chunks/chunk-BFP2C5JF.esm.js +0 -1
- package/lib/chunks/chunk-CXBUSCOB.esm.js +0 -1
- package/lib/chunks/chunk-D4ZBSTRO.esm.js +0 -1
- package/lib/chunks/chunk-DMLGAY6T.esm.js +0 -1
- package/lib/chunks/chunk-DRL2R3ED.esm.js +0 -1
- package/lib/chunks/chunk-FBZTXAE3.esm.js +0 -1
- package/lib/chunks/chunk-H4FEHRHK.esm.js +0 -39
- package/lib/chunks/chunk-HG4FBLPA.esm.js +0 -1
- package/lib/chunks/chunk-JQSEC336.esm.js +0 -1
- package/lib/chunks/chunk-JTVUOZDH.esm.js +0 -1
- package/lib/chunks/chunk-JVIACETZ.esm.js +0 -26
- package/lib/chunks/chunk-NHE4GLQK.esm.js +0 -1
- package/lib/chunks/chunk-NW2GV6YI.esm.js +0 -1
- package/lib/chunks/chunk-RI7KKIJD.esm.js +0 -1
- package/lib/chunks/chunk-UFQAFY4P.esm.js +0 -43
- package/lib/chunks/chunk-UGTJEXCL.esm.js +0 -1
- package/lib/chunks/chunk-VYK6RBMI.esm.js +0 -1
- package/lib/chunks/chunk-XYIRIYYK.esm.js +0 -1
- package/lib/chunks/chunk-Y75NAEIA.esm.js +0 -1
- /package/lib/chunks/{chunk-PMN6TVDW.esm.js → chunk-MPMCXGOX.esm.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as S}from"./chunk-
|
|
1
|
+
import{d as S}from"./chunk-62CVSGJD.esm.js";import{a as T}from"./chunk-R2B57RMV.esm.js";import{k as x}from"./chunk-PXVTXO3L.esm.js";import{f as g,g as m}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var c=m(S.span).withConfig({componentId:"sc-29xk67-0"})(["margin:0;font-family:",";line-height:",";& a:not([data-ds-link-button]){text-decoration:underline;}& a[data-ds-link-button]{display:inline-flex;vertical-align:middle;}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.lineHeight.regular),h=i((e,t)=>T(e,o=>x(o.colors[t],"base")),"tickInk"),y=m(c).withConfig({componentId:"sc-29xk67-1"})(["&[data-tick-settle]{transition:",";}&[data-tick]{transition:none;}&[data-tick='up']{color:",";}&[data-tick='down']{color:",";}@media (prefers-reduced-motion:reduce){&[data-tick-settle]{transition:none;}}"],({theme:e})=>e.animation.transitions.settle,({theme:e})=>h(e,"success"),({theme:e})=>h(e,"danger"));var C={p:{props:{fontSize:"small"}},meta:{tag:"p",props:{fontSize:"micro"}},lead:{tag:"p",props:{fontSize:"medium"}},blockquote:{props:{fontSize:"xxl"}},h1:{props:{fontSize:"xl",md_fontSize:"colossal"}},h2:{props:{fontSize:"large",md_fontSize:"giant"}},h3:{props:{fontSize:"large",fontStyle:"italic",md_fontSize:"xxl",md_fontStyle:"normal"}},h4:{props:{fontSize:"medium",md_fontSize:"xl"}},h5:{props:{fontSize:"medium",fontStyle:"italic",color:"ink.primary",md_fontSize:"large",md_fontStyle:"normal",md_color:"ink.primary"}},h6:{props:{fontSize:"small",color:"ink.primary",textTransform:"uppercase",md_fontSize:"medium",md_textTransform:"normal",md_color:"ink.primary"}},d1:{tag:"h1",props:{fontSize:"xxl",md_fontSize:"gargantua"}},d2:{tag:"h2",props:{fontSize:"xl",md_fontSize:"colossal"}},d3:{tag:"h3",props:{fontSize:"large",md_fontSize:"giant"}},d4:{tag:"h4",props:{fontSize:"medium",md_fontSize:"xxl"}}},I={fontWeight:"bold",lineHeight:"close"},V={fontWeight:"stronger",lineHeight:"close"};function E(e){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I;case"d1":case"d2":case"d3":case"d4":return V;default:return{}}}i(E,"getDefaultProps");function z(e,t={}){var a,s;let o=C,{tag:n=e,props:r={}}=o[e]||{};return{tag:n,variantProps:{fontWeight:(a=t.fontWeight)!=null?a:"regular",letterSpacing:"regular",color:(s=t.color)!=null?s:"ink.primary",...t.fontSize&&{fontSize:t.fontSize},...E(e),...r}}}i(z,"getTextProps");import{forwardRef as F}from"react";import{useEffect as w,useRef as D,useState as H}from"react";function k(e){let t=D(e),[o,n]=H(null);return w(()=>{if(e===void 0||t.current===void 0||e===t.current){t.current=e;return}n(e>t.current?"up":"down"),t.current=e;let r=requestAnimationFrame(()=>n(null));return()=>cancelAnimationFrame(r)},[e]),o}i(k,"useTickFlash");import{jsx as B}from"react/jsx-runtime";var _=F(({text:e,children:t,variant:o="span",type:n,tick:r,...a},s)=>{var d;let p=g(),{tag:P,variantProps:f}=z(o,(d=p==null?void 0:p.component)==null?void 0:d.text),l=k(r),R=r===void 0?c:y,b=a.color!==void 0||a.contrast!==void 0?Object.fromEntries(Object.entries(f).filter(([u])=>u!=="color"&&!u.endsWith("_color"))):f;return B(R,{as:P,ignoreResponsive:n==="mobile",enableBreakpoint:n==="desktop"?"md":void 0,...b,...a,"data-tick-settle":r===void 0?void 0:"","data-tick":l!=null?l:void 0,ref:s,children:t||e})});_.displayName="Text";var v=_;export{c as a,y as b,C as c,z as d,v as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l}from"./chunk-7TJO34VI.esm.js";import{b as I}from"./chunk-JLQDS5TS.esm.js";import{a as s}from"./chunk-5Q265MC7.esm.js";import{a as g}from"./chunk-TBHGVERY.esm.js";import{b as f}from"./chunk-62CVSGJD.esm.js";import{c}from"./chunk-BV6GHAF7.esm.js";import{g as i}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var C=r(({cover:e,height:t,width:o})=>e&&{width:o!=null?o:"100%",height:t!=null?t:"100%",objectFit:"cover"},"imageCover"),d=r(e=>e?c(e):"fit-content","getSizeValue"),p=i("img").withConfig({shouldForwardProp:f}).withConfig({componentId:"sc-swtbvc-0"})(["display:block;width:",";height:",";",";&[src='']{visibility:hidden;position:absolute;}",""],({full:e,width:t})=>e?"100%":d(t),({height:e})=>d(e),C,g({}));import L,{forwardRef as h,useState as F}from"react";import{jsx as n,jsxs as z}from"react/jsx-runtime";var u=h(({src:e,...t},o)=>n(p,{src:e,ref:o,...t})),x=r(({width:e=60,height:t=60})=>n(l,{height:t,width:e,children:n(I,{width:e,height:t})}),"ImageDefaultContentLoader");function R(e){return new Promise((t,o)=>{let a=new Image;a.onload=t,a.onerror=o,a.src=e})}r(R,"loadImage");var y=r(({src:e,fallback:t,threshold:o,...a})=>{let[m,S]=F(),[w]=s({threshold:o},()=>{R(e).then(()=>S(e)).catch(()=>console.warn(`[Failed]: error on loading image: ${e}`))}),b=typeof m=="undefined";return z(L.Fragment,{children:[b?t||n(x,{...a}):null,n(u,{src:m||"",ref:w,...a})]})},"ImageLazy");y.displayName="ImageLazy";export{p as a,u as b,y as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-J2ZPCUOE.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import w,{lazy as H,Suspense as k,useCallback as m,useId as z,useRef as A,useState as T}from"react";import{Fragment as M,jsx as u,jsxs as v}from"react/jsx-runtime";var B=H(()=>import("./Tooltip.floating-IEWE6XP4.esm.js")),L=40,E=s((e,c)=>typeof e=="string"?u(d,{...c,children:e}):e,"getElement"),R=s(({children:e,position:c="top",content:h,inverted:g,noArrow:y,onDismiss:t,visible:a})=>{if(a!==void 0&&typeof t=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');let r=a!==void 0,[x,o]=T(!1),i=r?!!a:x,[C,S]=T(null),I=m(l=>S(l),[]),p=A(void 0),f=z(),O=m(l=>{r?!l&&t&&t():o(l)},[r,t]),n={ref:I,"aria-describedby":i?f:void 0};r||(n.onPointerEnter=()=>{clearTimeout(p.current),p.current=setTimeout(()=>o(!0),L)},n.onPointerLeave=()=>{clearTimeout(p.current),o(!1)},n.onFocus=()=>o(!0),n.onBlur=()=>o(!1));let P=E(e),b=w.cloneElement(P,n);return v(M,{children:[b,i&&u(k,{fallback:null,children:u(B,{referenceEl:C,open:i,onOpenChange:O,position:c,inverted:g,noArrow:y,tooltipId:f,content:E(h,{fontSize:"micro",lineHeight:"regular"})})})]})},"TooltipComponent");R.displayName="Tooltip";export{R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-347TNROV.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";function e({inverted:a,theme:o}){return a?{"--background":o.colors.surface.raised,"--color":o.colors.ink.primary}:{"--background":o.colors.ink.primary,"--color":o.colors.surface.paper}}n(e,"getContainerStyle");var t=r(i).withConfig({componentId:"sc-10yilai-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{content:'';transform:rotate(45deg);background:var(--background);position:absolute;width:8px;height:8px;z-index:-1;}"]),l=r(i).withConfig({componentId:"sc-10yilai-1"})([""," color:var(--color);background-color:var(--background);line-height:1;&[data-placement^='top'] > ","{bottom:-3px;}&[data-placement^='bottom'] > ","{top:-3px;}&[data-placement^='left'] > ","{right:-4px;}&[data-placement^='right'] > ","{left:-4px;}"],e,t,t,t,t);export{t as a,l as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-J2ZPCUOE.esm.js";import{a as f}from"./chunk-UDQ3TYVZ.esm.js";import{j as H}from"./chunk-BV6GHAF7.esm.js";import{g as c}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var A=n(({theme:t,disabled:y,variant:r})=>{let e=t.colors.ink.primary,a=t.colors.ink.secondary;if(r!=="default"){let{base:g,dark:l}=r==="success"?t.colors.success:t.colors.danger;e=l,a=g}return y&&(e=t.colors.ink.disabled),{"--colorLabel":e,"--colorHint":a}},"getFieldColor"),v=c(f).withConfig({componentId:"sc-1iiu1tt-0"})(["width:100%;justify-content:center;",";"],A),k=c(d).withConfig({componentId:"sc-1iiu1tt-1"})(["color:var(--color-label);"]),I=c(d).withConfig({componentId:"sc-1iiu1tt-2"})(["color:var(--color-label);"]),L=c(d).withConfig({componentId:"sc-1iiu1tt-3"})(["color:var(--color-hint);min-height:","em;"],({theme:t})=>t.font.lineHeight.tight);import{jsx as s,jsxs as O}from"react/jsx-runtime";var j=n(({name:t,value:y,label:r,inputProps:e,hintText:a,variant:g,setFieldValue:l,readOnly:m,readOnlyText:z="apenas leitura",hintErrorText:E="Something went wrong",hintSuccessText:R="Everything is alright",...o})=>{var w;let V=o.component,x=!!o.errors||o.error,b=!!o.success,h=(w=e==null?void 0:e.readOnly)!=null?w:m,u=n(i=>{if(!m&&(e!=null&&e.onChange&&e.onChange(i),l)){let S=i;H(i)&&(S=i.target.type==="checkbox"||i.target.type==="radio"?i.target.checked:i.target.value),l(t,S)}},"onChange"),D=n(()=>{if(m)return;if(typeof(e==null?void 0:e.reset)=="function"){e.reset();return}let i=e==null?void 0:e.type;l&&l(t,i==="checkbox"||i==="radio"?!1:"")},"resetField"),B=typeof o.errors=="string"?o.errors:E,C=x&&B||b&&R||a,F=g||x&&"error"||b&&"success"||"default",N=!r||o.hideLabel,W=h||o.optionalText,q=h?z:o.optionalText,T=e&&e.disabled;return O(v,{area:o.area,alignSelf:o.alignSelf,justifySelf:o.justifySelf,variant:F,disabled:T,gap:"micro",...o.fieldProps,children:[O(f,{flexDirection:"row",justifyContent:"between",isHidden:N,children:[s(k,{as:"label",htmlFor:t,fontSize:"xs",fontWeight:"bold",lineHeight:"regular",children:r}),W&&s(I,{fontStyle:"italic",lineHeight:"tight",fontSize:"micro",children:q})]}),s(V,{...e,id:t,name:t,value:y,variant:F,readOnly:h,onChange:u,reset:D}),s(L,{lineHeight:"tight",fontSize:"micro",isHidden:T||!C,children:C})]})},"FieldComponent");j.displayName="Field";export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as R}from"./chunk-IK5Z5C2R.esm.js";import{b as k}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as l}from"./chunk-TZQMBDGR.esm.js";import{b as h}from"./chunk-WCUEINBQ.esm.js";import{b as g}from"./chunk-QYL6LECA.esm.js";import{b as F}from"./chunk-3A7I6HM2.esm.js";import{
|
|
1
|
+
import{b as R}from"./chunk-IK5Z5C2R.esm.js";import{b as k}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as l}from"./chunk-TZQMBDGR.esm.js";import{b as h}from"./chunk-WCUEINBQ.esm.js";import{b as g}from"./chunk-QYL6LECA.esm.js";import{b as F}from"./chunk-3A7I6HM2.esm.js";import{e as b}from"./chunk-XTY6DXMK.esm.js";import{p as y}from"./chunk-BV6GHAF7.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var d=y(t=>t.startsWith("sm_")||t.startsWith("md_")||t.startsWith("lg_")||t.startsWith("xl_")),v=a((t,n)=>{let o={theme:n};return{...k(t)(),...g(t)(o),...l(t)(o),...S(t)(o),...h(t)(o),...b(t)(o),...R(t)(o),...F(t)(o)}},"getStyles"),p=["sm","md","lg","xl"],_=a(t=>n=>{let{theme:o,...e}={...t,...n};if(e!=null&&e.ignoreResponsive)return null;let r={};Object.keys(e).forEach(i=>{if(d(i)){let[m,c]=i.split("_"),f=e[i];m in r?r[m][c]=f:r[m]={[c]:f}}});let s={};return e!=null&&e.enableBreakpoint&&(e==null?void 0:e.enableBreakpoint)in r&&Object.assign(s,v(r[e==null?void 0:e.enableBreakpoint],o)),p.forEach(i=>{i in r&&(s[o.breakpoints.up(i)]=v(r[i],o))}),s},"ResponsiveFactory");export{_ as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as j}from"./chunk-UQVJ7IG5.esm.js";import{a as Z}from"./chunk-BHRDNR3A.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{K as Q,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{b as I}from"./chunk-H4XR4LGF.esm.js";import{f as ie}from"./chunk-CC5NKEXF.esm.js";import{e as P}from"./chunk-J2ZPCUOE.esm.js";import{a as F}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-347TNROV.esm.js";import{h as Te}from"./chunk-BV6GHAF7.esm.js";import{f as Le,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import S from"react";import X from"react";var q=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),z=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(z).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],z,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(z).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,q,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.muted,z,q,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),E=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],E,E,E,E),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let t=X.useRef(null);return X.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i(et,"useDebounce");var Ht=i(({column:e,labels:o})=>{var a,l;let t=X.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([s],[m])=>String(s).localeCompare(String(m))),[e,e.getFilterValue()]),n=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[t.length===0&&T(P,{variant:"meta",text:(l=o==null?void 0:o.filterNoValues)!=null?l:"Sem valores"}),t.map(([s,m])=>{let d=String(s),f=n.includes(d);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let c=f?n.filter(N=>N!==d):[...n,d];e.setFilterValue(c.length?c:void 0)}}),T(E,{}),T(P,{variant:"meta",text:`${d} (${m})`})]},d)})]})},"SelectFilter"),At=i(({column:e,labels:o})=>{var O,$;let[t,n]=(O=e.getFacetedMinMaxValues())!=null?O:[0,0],a=o!=null&&o.filterRangeMin?o.filterRangeMin(t):`min (${t})`,l=o!=null&&o.filterRangeMax?o.filterRangeMax(n):`max (${n})`,s=($=e.getFilterValue())!=null?$:[void 0,void 0],m=et(k=>{let[R,U]=k,B=R===void 0&&U===void 0;e.setFilterValue(B?void 0:k)},200),[d,f]=X.useState(s[0]!==void 0?String(s[0]):""),[c,N]=X.useState(s[1]!==void 0?String(s[1]):"");return T(ce,{children:Se(F,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T(j,{type:"number",placeholder:a,value:d,onChange:k=>{let R=k.target.value;f(R),m([R===""?void 0:Number(R),c===""?void 0:Number(c)])}}),T(P,{variant:"meta",text:"\u2014"}),T(j,{type:"number",placeholder:l,value:c,onChange:k=>{let R=k.target.value;N(R),m([d===""?void 0:Number(d),R===""?void 0:Number(R)])}})]})})},"RangeFilter"),Wt=i(({column:e,labels:o})=>{var s,m;let t=(s=e.getFilterValue())!=null?s:"",[n,a]=X.useState(t),l=et(d=>{e.setFilterValue(d||void 0)},200);return T(ce,{children:T(j,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:n,onChange:d=>{let f=d.target.value;a(f),l(f)}})})},"TextFilter"),tt=i((e,o,t,n)=>{switch(e){case"select":return T(Ht,{column:o,onClose:t,labels:n});case"range":return T(At,{column:o,onClose:t,labels:n});case"text":return T(Wt,{column:o,onClose:t,labels:n})}},"filterUIForVariant");import V,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as x,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>x(Ye,{...e,ref:o})),rt=i(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=V.forwardRef(({indeterminate:e,children:o,...t},n)=>{let a=V.useRef(null),l=n||a;return V.useEffect(()=>{l.current&&(l.current.indeterminate=e!=null?e:!1)},[l,e]),de(se,{as:"label",children:[o,x(le,{type:"checkbox",ref:l,...t}),x(E,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:i(()=>null,"header"),cell:i(({row:n})=>n.getCanExpand()?x(I,{icon:n.getIsExpanded()?He:Ae,onClick:n.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${n.depth*16}px`}}):x("span",{style:{display:"inline-block",marginLeft:`${n.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}i(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:i(({table:n})=>x(nt,{checked:n.getIsAllRowsSelected(),indeterminate:n.getIsSomeRowsSelected(),onChange:n.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:i(({row:n})=>{var a,l;return x(nt,{checked:n.getIsSelected(),indeterminate:(l=(a=n.getIsSomeSelected)==null?void 0:a.call(n))!=null?l:!1,onChange:n.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}i(it,"buildSelectableColumnDef");function $t(e,o){let t=V.useRef(null);return V.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i($t,"useDebounce");var lt=i(({globalFilter:e,setGlobalFilter:o,placeholder:t})=>{let[n,a]=V.useState(e),l=$t(s=>{o(s||"")},200);return x(j,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),l("")},value:n||"",onChange:s=>{a(s.target.value),l(s.target.value)},placeholder:t,"aria-label":t!=null?t:"Search",icon:x(I,{icon:Oe})})},"GlobalFilter"),st=i(({height:e,emptyIcon:o,emptyTitle:t="Nada foi encontrado",emptyDescription:n})=>x(Ke,{style:{height:e},children:de(F,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,x(P,{textAlign:"center",variant:"h5",text:t}),n&&x(P,{textAlign:"center",variant:"p",text:n})]})}),"EmptyTable");function pe(e,o,t){let[n,a]=V.useState(t),l=e!==void 0,s=l?e:n,m=V.useCallback(d=>{let f=typeof d=="function"?d(s):d;l||a(f),o==null||o(f)},[l,o,s]);return[s,m]}i(pe,"useHybridState");var ct=i(({pageIndex:e,pageSize:o,pageCount:t,rowCount:n,canPreviousPage:a,canNextPage:l,pageSizeOptions:s,onPrevious:m,onNext:d,onPageSizeChange:f,labels:c})=>{var U,B,H,Y,te;let N=n===0?0:e*o+1,O=Math.min((e+1)*o,n),$=(U=c==null?void 0:c.showingRange)!=null?U:((y,M,ge)=>`Mostrando ${y}-${M} de ${ge}`),k=(B=c==null?void 0:c.perPageOption)!=null?B:(y=>`${y} por p\xE1gina`),R=(H=c==null?void 0:c.perPageTrigger)!=null?H:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[x(P,{variant:"meta",text:$(N,O,n)}),de(F,{flexDirection:"row",gap:"small",alignItems:"center",children:[s.length>1&&x(Z,{position:"right",options:s.map(y=>({title:k(y),action:i(()=>f(y),"action")})),children:x(ie,{variant:"linked",size:"small",text:R(o)})}),x(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(Y=c==null?void 0:c.previous)!=null?Y:"Anterior"}),x(P,{variant:"meta",text:`${e+1} / ${Math.max(t,1)}`}),x(ie,{variant:"linked",size:"small",disabled:!l,onClick:d,text:(te=c==null?void 0:c.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(n=>(n.left="flex-start",n.center="center",n.right="flex-end",n))(_t||{});var ee={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as xt,getSortedRowModel as bt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as p,jsxs as L}from"react/jsx-runtime";function Gt(e,o){return e.map(t=>{var l,s,m,d,f;let n=t.accessor?String(t.accessor):void 0,a={id:(l=t.id)!=null?l:n||void 0,header:i(()=>t.Header,"header"),footer:t.Footer?c=>t.Footer({table:c.table}):void 0,enableSorting:!t.disableSortBy,enableResizing:!0,enableColumnFilter:t.disableFilters?!1:!!t.filterVariant,...t.filterVariant&&{filterFn:(s=t.filterFn)!=null?s:Ze[t.filterVariant]},size:(m=t.width)!=null?m:o.width,minSize:(d=t.minWidth)!=null?d:o.minWidth,maxSize:(f=t.maxWidth)!=null?f:o.maxWidth,meta:{align:t.align,selectable:t.selectable,filterVariant:t.filterVariant}};return n?a.accessorKey=n:a.accessorFn=()=>null,t.Cell&&(a.cell=c=>t.Cell({row:c.row,value:c.getValue()})),a})}i(Gt,"toTanstackColumns");function Gn(e){var Ve;let{data:o,columns:t,onRowSelect:n,onRowClick:a,selectableColumnWidth:l,selectableColumn:s,setRowColor:m,title:d,striped:f,bordered:c,searchPlaceholder:N,hasHeader:O,hasFooter:$,hasSpacingMenu:k,inputSearchComponent:R,headerLeftComponent:U=null,headerRightComponent:B=null,lastRowComponent:H,height:Y=400,spacing:te=0,paginated:y=!1,initialPagination:M,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,A=!!Pe,xe=S.useMemo(()=>t.some(r=>r.filterVariant&&!r.disableFilters),[t]),[Ft,be]=S.useState(48),[Pt,kt]=S.useState([]),[ve,Ie]=S.useState(""),[Ce,vt]=S.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=M==null?void 0:M.pageIndex)!=null?r:0,pageSize:(u=(g=M==null?void 0:M.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Mt,Dt]=pe(wt,yt,()=>me!=null?me:{}),[Et,zt]=pe(Tt,St,()=>fe!=null?fe:[]),Vt=S.useMemo(()=>{let r=Gt(t,ee),g=it(s,l),u=at(A,ne!=null?ne:l),w=[];return u&&w.push(u),g&&w.push(g),[...w,...r]},[t,s,l,A,ne]),v=Ct({data:o,columns:Vt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...A&&{expanded:Mt},...xe&&{columnFilters:Et}},enableRowSelection:!!s,enableExpanding:A,...A&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...A&&{onExpandedChange:Dt},...xe&&{onColumnFiltersChange:zt},getCoreRowModel:dt(),getSortedRowModel:bt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:xt()},...A&&{getExpandedRowModel:pt()},...xe&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:ee.width,minSize:ee.minWidth,maxSize:ee.maxWidth}}),K=v.getRowModel().rows;Ne(()=>{if(n){let r=K.filter(g=>Ce[g.id]).map(g=>g.original);n(r)}},[Ce]);let W=Le(),Re=K.length+(H?1:0),Me=S.useCallback((r,g)=>{let u=m&&m(r),w=f&&g%2===0,b=W.colors.surface.paper;return u?b=W.colors[u].light:r.getIsSelected()&&n?b=W.colors.muted:w&&(b=W.colors.surface.sunken),{backgroundColor:b}},[m,f,W,n]),oe=Ft+te,re=S.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:w,selectable:b})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:w?W.spacing("small"):void 0,cursor:b?"pointer":void 0}}),[oe,W]),Lt=S.useCallback(({index:r,style:g})=>{if(H&&r===Re-1)return S.cloneElement(H,{style:g});let u=K[r],w={...g,...Me(u,r)};return p(z,{style:w,children:u.getVisibleCells().map(b=>{var D;let _=(D=b.column.columnDef.meta)!=null?D:{},ye=b.column.id,G;a?G=i(()=>a(u.original),"onClickAction"):n&&(G=i(()=>u.toggleSelected(),"onClickAction"));let J=re({align:_.align,hasCheckbox:ye==="checkbox",selectable:(n||a)&&_.selectable!==!1,cellProps:_.selectable!==!1?{onClick:G}:void 0});return p(q,{...J,style:{...J.style,width:b.column.getSize(),flex:`${b.column.getSize()} 0 auto`},children:ue(b.column.columnDef.cell,b.getContext())},b.id)})})},[K,re,H,a,n,Me,Re]),we=!!K.length,Nt=$&&we&&t.some(r=>"Footer"in r),De=S.useRef(null),ae=ht({count:Re,getScrollElement:i(()=>De.current,"getScrollElement"),estimateSize:i(()=>oe,"estimateSize"),overscan:5});S.useEffect(()=>{ae.measure()},[oe,ae]);let Ee=L(qe,{ref:De,style:{maxHeight:Y},bgColor:"baseLight","data-border":c,"data-default":!f&&!c,children:[p(je,{children:v.getFlatHeaders().map(r=>{var J;let g=(J=r.column.columnDef.meta)!=null?J:{},u=r.column.getCanSort(),w=r.column.getCanResize(),b=r.column.getIsSorted(),_=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),G=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return L(q,{...G,style:{...G.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(_||u)&&L(Qe,{children:[_&&p("span",{role:"presentation",onClick:D=>D.stopPropagation(),children:p(Z,{content:({close:D})=>tt(g.filterVariant,r.column,D,ke),children:p(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&p(Xe,{children:p(I,{icon:rt(b)})})]}),w&&p(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:D=>D.stopPropagation()})]},r.id)})}),we?p(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>p(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Lt({index:r.index,style:{}})},r.key))}):p(st,{...e,height:Y}),Nt&&p(h,{children:p(_e,{children:(Ve=v.getFooterGroups()[0])==null?void 0:Ve.headers.map(r=>{var w;let g=(w=r.column.columnDef.meta)!=null?w:{},u=re({align:g.align});return p(q,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),ze=y&&we&&p(Je,{children:p(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return O?L(F,{gap:"medium",children:[L(F,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[L(F,{flexDirection:"row",gap:"medium",children:[d&&p(P,{variant:"h5",color:"primary.dark",text:d}),U]}),L(F,{flexDirection:"row",gap:"medium",children:[R!=null?R:p(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:N}),B,k?p(F,{alignSelf:"center",children:p(Z,{position:"right",options:[{icon:p(I,{icon:Q}),title:"Layout Compacto",action:i(()=>be(32),"action")},{icon:p(I,{icon:Q}),title:"Layout Padr\xE3o",action:i(()=>be(48),"action")},{icon:p(I,{icon:Q}),title:"Layout Expandido",action:i(()=>be(64),"action")}],children:p(I,{size:5,icon:Q,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),Ee,ze]}):L(jt,{children:[Ee,ze]})}i(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-J2ZPCUOE.esm.js";import{d as s}from"./chunk-RWLJNXLX.esm.js";import{b as p}from"./chunk-IK5Z5C2R.esm.js";import{b}from"./chunk-OXQA5WD3.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";function g(r){return r==="default"?"primary":r==="info"?"information":r}i(g,"getColorVariant");function L(r,t,n){let e=g(t),o=r.colors[e];if(n){let a=o==null?void 0:o.action;return{backgroundColor:a,color:a&&f(r,l=>{var m;let c=(m=l.colors[e])==null?void 0:m.action;return c&&l.colors.getContrastColor(c)})}}return{backgroundColor:o==null?void 0:o.light,color:o==null?void 0:o.onLight}}i(L,"getColor");var y=d(u).withConfig({componentId:"sc-dznqj7-0"})(["display:inline;"," "," "," ",""],p({fontSize:"micro",lineHeight:"close"}),b({px:"small",py:"xs"}),s({borderRadius:"micro"}),({theme:r,variant:t,inverted:n})=>L(r,t,n));import{jsx as x}from"react/jsx-runtime";function C(r){let{variant:t="default",text:n,children:e,alignSelf:o="start",...a}=r;return x(y,{variant:t,alignSelf:o,...a,children:e||n})}i(C,"Label");C.displayName="Label";export{y as a,C as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as s}from"./chunk-
|
|
1
|
+
import{f as s}from"./chunk-4TQV5FFJ.esm.js";import{b as r}from"./chunk-TLIKQFOT.esm.js";import{d as i}from"./chunk-SF2QSF7E.esm.js";import{c as m,h as a}from"./chunk-YJ6PPJQ4.esm.js";import{a as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{normalize as b}from"styled-normalize";import{jsx as f}from"react/jsx-runtime";var c=n([""," *,*::before,*::after{box-sizing:inherit;}html{font-size:100%;color-scheme:light;}html[","='dark']{color-scheme:dark;}"," html,body{margin:0;padding:0;box-sizing:border-box;background-color:",";color:",";","}"," ",";"],b,({$attribute:o=r})=>o,({$system:o,$attribute:e=r})=>o?`@media (prefers-color-scheme: dark) { html:not([${e}]) { color-scheme: dark; } }`:"",({theme:o})=>{var e,t;return(t=(e=o.colors.surface)==null?void 0:e.canvas)!=null?t:o.colors.baseLight},({theme:o})=>{var e,t;return(t=(e=o.colors.ink)==null?void 0:e.primary)!=null?t:o.colors.baseDark},({theme:o})=>Object.entries(a(o,m)).map(([e,t])=>`${e}: ${t};`).join(`
|
|
2
2
|
`),({theme:o})=>o.motion?i(o.motion):"",({extend:o})=>o);function p(o){let e=s();return f(c,{...o,$attribute:e==null?void 0:e.attribute,$system:(e==null?void 0:e.mode)==="system"})}l(p,"GlobalStyle");export{c as a,p as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as le}from"./chunk-UQVJ7IG5.esm.js";import{a as ae,b as V}from"./chunk-OEEVC5Y2.esm.js";import{a as Q,b as Y}from"./chunk-EK6YOJCW.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as te}from"./chunk-KR2X2UQG.esm.js";import{a as ee}from"./chunk-BE2JDTVA.esm.js";import{I as ie,J as ne,ga as re,ja as k}from"./chunk-DAT6GD4T.esm.js";import{b as O}from"./chunk-H4XR4LGF.esm.js";import{b as X}from"./chunk-JLUNVLUS.esm.js";import{f as J}from"./chunk-CC5NKEXF.esm.js";import{e as I}from"./chunk-J2ZPCUOE.esm.js";import{b as K}from"./chunk-4TQV5FFJ.esm.js";import{a as v}from"./chunk-UDQ3TYVZ.esm.js";import{a as U}from"./chunk-347TNROV.esm.js";import{e as _}from"./chunk-XTY6DXMK.esm.js";import{m as z}from"./chunk-BV6GHAF7.esm.js";import{g as x}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var se=i(({theme:e,readOnly:t,disabled:o,active:c})=>{if(t||o)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:c?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),de=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),me=x(U).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],se,de),j=x(U).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=x(U).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),D=x(V).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Q),ce=x(v).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],D,({theme:e})=>e.spacing("xs"),D,D,({theme:e})=>e.spacing("medium")),pe=x(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),fe=x(U).attrs(e=>({borderRadius:"micro",bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all var(--apollion-motion-duration-100,100ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1));"],({theme:e})=>e.colors.information.base),B=x(U).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),ue=x(U).withConfig({componentId:"sc-1erdx9t-8"})(["display:grid;"," "," ",""],ae,se,de),ge=x(U).withConfig({componentId:"sc-1erdx9t-9"})(["display:flex;flex-direction:column;"]),Fe=x(V).withConfig({componentId:"sc-1erdx9t-10"})(["",""],_({flex:"fluid"}));import{forwardRef as qe,useCallback as Me,useEffect as $e,useImperativeHandle as He,useRef as We,useState as Ge}from"react";function q(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i(q,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=o)}i(M,"filterFiles");function $(e){return e.map(t=>({id:K(),file:t,fileName:t.name,fileSize:q(t.size)}))}i($,"convertFileToFileItem");function Ce(e){let{fieldName:t,file:o,requestConfig:c}=e,{endpoint:d,timeout:y,auth:f,params:F,withCredentials:r,responseType:m,headers:p,formDataParams:l}=c;return new Promise((u,h)=>{let a=new XMLHttpRequest;a.timeout=y;let b=new FormData;b.append(t,o,o.name),l&&l.forEach(s=>{b.append(s.key,s.value)});let R=new URL(d);if(F&&Object.keys(F).forEach(s=>{R.searchParams.append(s,F[s])}),a.open("post",R.href),"setRequestHeader"in a){let s={...p};if(f){let g=f.username||"",P=unescape(encodeURIComponent(f.password))||"",T=`${g}:${P}`;s.Authorization=`Basic ${btoa(T)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&a.setRequestHeader(g,P)})}r!==void 0&&(a.withCredentials=!!r),a.responseType=m||"json";let w=0;a.upload.addEventListener("progress",s=>{e.onProgress&&(w=s.loaded,e.onProgress(s.loaded))}),a.onreadystatechange=()=>{var g;if(!a||a.readyState!==4||a.status===0&&((g=a==null?void 0:a.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(w,!0,s),u(s),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(w,!1),h(),a=null},a.send(b)})}i(Ce,"uploadFile");import{useEffect as Ee,useState as ze}from"react";function xe(e,t){let[o,c]=ze(null);return Ee(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),c(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),o}i(xe,"useObjectUrl");import{Fragment as je,jsx as n,jsxs as C}from"react/jsx-runtime";function ye(e){let{disabled:t,acceptLabel:o,isDragging:c,events:d,files:y,removeFile:f,openFileDialogButton:F,readOnly:r,style:m,className:p,inputFile:l}=e,u=y.length>0,h=u&&n(ce,{flexDirection:"column",flex:"fluid",p:"large",children:y.map(a=>n(be,{removeFile:f,readOnly:r,...a},a.id))});return C(me,{...d,style:m,className:p,active:c,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[l,C(v,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[C(ge,{gap:"small",flex:"fluid",cq:u?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[C(v,{gap:"xs",alignItems:"center",children:[n(O,{icon:k,size:16,color:r||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!r&&C(je,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),F]})]}),h]}),c&&C(j,{absoluteFill:!0,children:[n(N,{absoluteFill:!0,bgColor:"surface.paper"}),C(v,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(O,{icon:k,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(ye,"UploadCardRegular");function he(e){let{disabled:t,isDragging:o,events:c,files:d,removeFile:y,style:f,className:F,readOnly:r,openFileDialogButton:m,inputFile:p}=e;return C(ue,{...c,style:f,className:F,active:o,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[p,n(v,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:m}),n(Fe,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:d.map(l=>n(be,{removeFile:y,readOnly:r,...l},l.id))}),o&&C(j,{children:[n(N,{}),C(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(O,{icon:k,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(he,"UploadCardCompact");function be({removeFile:e,readOnly:t,...o}){let c=o.uploadLoaded?`${o.uploadLoaded} de`:"";return C(D,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ve,{...o}),C(v,{children:[C(v,{flexDirection:"row",justifyContent:"between",children:[n(pe,{variant:"meta",children:n("b",{children:o.fileName})}),!t&&n(Y,{onClick:()=>e(o.id),icon:n(O,{icon:re}),variant:"linked"})]}),o.uploadPercentage&&n(fe,{style:{backgroundSize:o.uploadPercentage}}),C(v,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${o.fileSize}`}),o.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${o.uploadPercentage}`})]})]})]})}i(be,"FileItemComponent");function Ve({file:e}){let t=xe(e,o=>o.type.startsWith("image"));return t?n(B,{children:n(X,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(B,{children:n(O,{icon:ne})}):n(B,{children:n(O,{icon:ie})})}i(Ve,"Preview");import{useState as Ne}from"react";function ve(e){let[t,o]=Ne({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(r=>{var u;let m=M(r,e.maxSize),l={files:$(m),type:"ADD_INITIAL_FILES"};(u=e.onChange)==null||u.call(e,l),o(l)},"setInitialFiles"),removeFile:i(r=>{var p;let m={type:"REMOVE",files:t.files.filter(l=>l.id!==r),payload:t.files.find(l=>l.id===r)};(p=e.onChange)==null||p.call(e,m),o(m)},"removeFile"),removeAll:i(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),o(r)},"removeAll"),addFiles:i(r=>{var h;let m=M(r,e.maxSize),p=$(m),l=[...t.files,...p],u={files:l,type:"ADD",payload:p};e.single&&(l=p,u={files:l,type:"REPLACE",payload:l[0]}),(h=e.onChange)==null||h.call(e,u),o(u)},"addFiles"),updateFileProgress:i((r,m,p,l)=>{var s;let u=t.files.find(g=>g.id===r),h=i(()=>({uploadCompleted:p,uploadError:!p,uploadResponse:l||void 0}),"uploadResponse"),b={...u,...m!==void 0?i(()=>({uploadLoaded:q(m),uploadPercentage:`${Math.min(m/u.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...p!==void 0?h():{}},w={files:t.files.map(g=>g.id===b.id?b:g),type:"UPDATE",payload:b};(s=e.onChange)==null||s.call(e,w),o(w)},"updateFileProgress")}}i(ve,"useFileState");import{jsx as A}from"react/jsx-runtime";var Ze=qe((e,t)=>{let{accept:o,maxSize:c,singleFile:d,uploadConfig:y,onUnsupportedFile:f,customButton:F,style:r,className:m,onChange:p,initialFiles:l,name:u}=e,[h,a]=Ge(!1),{active:b,enable:R,disable:w}=ee(),{files:s,setInitialFiles:g,addFiles:P,removeFile:T,removeAll:we,updateFileProgress:H}=ve({single:d,maxSize:c,onChange:p}),{getFiles:Pe}=oe({accept:o,single:d,onFilesSelect:P,onUnsupportedFile:f}),{isDragging:W,events:Ue}=te({accept:o,single:d,onDrop:P});$e(()=>{let S=Array.isArray(l)?l.length>0:!!l;!h&&!s.files.length&&S&&(a(!0),g(l))},[h,a,l,g,s.files]);let Se=Me(async S=>{if(s.files.length){R();let Re=s.files.map(({id:Te,file:Le})=>Ce({file:Le,fieldName:S.formDataFileKey||"file",requestConfig:{...y,...S},onProgress:i((ke,Be,Ae)=>{H(Te,ke,Be,Ae)},"onProgress")})),De=await Promise.all(Re);return w(),De}return[]},[s.files,y,R,H,w]);He(t,()=>({submit:Se,addFiles:P,removeFile:T,removeAll:we,files:s.files}));let L=We(null),E=i(()=>{var S;(S=L==null?void 0:L.current)==null||S.click()},"openFileDialog"),Oe=F?F({files:s.files,isDragging:W,openFileDialog:E,isSubmitting:b}):A(J,{onClick:E,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||b,isLoading:b,type:"button",children:e.buttonText||"Enviar arquivos"}),G={...e,...!e.readOnly&&{events:Ue,isDragging:W},files:s.files,style:r,className:m,removeFile:T,openFileDialog:E,openFileDialogButton:Oe,name:u},Z=A(le,{type:"file",isHidden:!0,position:"absolute",name:u,id:u,ref:L,onChange:Pe,multiple:!d,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?A(he,{...G,inputFile:Z}):A(ye,{...G,inputFile:Z})});Ze.displayName="UploadCard";import{useCallback as _e,useState as Ie}from"react";var qt=i(()=>{let[e,t]=Ie([]),[o,c]=Ie([]);return{onFilesChange:_e(f=>{if(!f.payload)return;let{payload:F}=f;f.type==="ADD"?c(r=>z(r,F)):f.type==="REMOVE"&&t(r=>z(r,F))},[]),removedFiles:e,addedFiles:o,clear:i(f=>{f==="removedFiles"&&t([]),f==="addedFiles"&&c([])},"clear")}},"useFileControl");export{me as a,j as b,N as c,D as d,ce as e,pe as f,fe as g,B as h,ue as i,ge as j,Fe as k,Ze as l,qt as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-347TNROV.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));z-index:1;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,z]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),F=x(n=>{s.current=n,typeof u=="function"?u(n):u&&(u.current=n)},[u]);X(()=>{let n=s.current,t,r=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(n){let{clientHeight:l,scrollHeight:a}=n;z(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",r),r(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",r)}},[s,e]);let $=x(n=>{if(i&&i(n),d===1)return;let t=s.current,r=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);r&&(r.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(n=>{let t=s.current,r,c=n.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:F,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
1
|
+
import{b as a}from"./chunk-OEEVC5Y2.esm.js";import{a as i}from"./chunk-UDQ3TYVZ.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var f={xs:{columns:"100%",rows:"100%",areas:`
|
|
2
2
|
"content"
|
|
3
3
|
`}};var m=e(a).attrs({medias:f}).withConfig({componentId:"sc-11xb4nx-0"})(["width:100%;height:100%;"]);import{jsx as o}from"react/jsx-runtime";var n=r(({layoutComponents:t})=>o(m,{children:o(i,{area:"content",width:"100%",justifyContent:"center",md_justifyContent:"start",children:t&&t.content&&o(t.content,{})})}),"DefaultLayout");n.displayName="DefaultLayout";export{f as a,m as b,n as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as d}from"./chunk-347TNROV.esm.js";import{c as a}from"./chunk-XTY6DXMK.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var u=t(e=>{var i;if(e===void 0)return;if(typeof e=="string")return e;let r="autoFit"in e?"auto-fit":"auto-fill",n="autoFit"in e?e.autoFit:e.autoFill;return`repeat(${r}, minmax(min(${n}, 100%), ${(i=e.max)!=null?i:"1fr"}))`},"resolveColumns"),f=t((e,r)=>({gridTemplateColumns:u(r.columns),gridTemplateRows:r.rows,gridTemplateAreas:r.areas,gap:r.gap?e.spacing(r.gap):void 0,gridColumnGap:r.columnGap?e.spacing(r.columnGap):void 0,gridRowGap:r.rowGap?e.spacing(r.rowGap):void 0,...a(r)}),"getGridProps"),s=t(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((n,i)=>({...n,[r.breakpoints.up(i)]:f(r,e[i])}),{}):f(r,e):{},"setGridBreakpoints"),p=o(d).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],s);export{s as a,p as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b as o,d as s}from"./chunk-
|
|
1
|
+
import{a,b as o,d as s}from"./chunk-GHDDFAEP.esm.js";import{a as e}from"./chunk-J2ZPCUOE.esm.js";import{forwardRef as u}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";var m=u(({color:i="primary",border:f,size:l="medium",progress:r=0,showProgressLabel:g=!1,...P},c)=>{let p=-100+Number(r),B=Math.min(100,Math.max(0,Number(r)));return n(s,{color:i,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":B,...P,ref:c,children:[t(a,{size:l,border:f,children:t(o,{style:{transform:`translateX(${p}%)`}})}),g&&n(e,{children:[r,"%"]})]})});m.displayName="ProgressBar";export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-J2ZPCUOE.esm.js";import{a as s}from"./chunk-UDQ3TYVZ.esm.js";import{a as l}from"./chunk-347TNROV.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{forwardRef as g}from"react";var h=n(l).withConfig({componentId:"sc-1ulk0ua-0"})(["display:flex;flex-shrink:0;margin:0;",""],({$orientation:i})=>i==="vertical"?"border-top-width: 0; border-right-width: 0; border-bottom-width: 0;":"border-right-width: 0; border-bottom-width: 0; border-left-width: 0;"),c=n(s).withConfig({componentId:"sc-1ulk0ua-1"})(["width:100%;"]);import{jsx as v,jsxs as u}from"react/jsx-runtime";var y=g(({orientation:i="horizontal",tone:D="hairline",color:t,thickness:w="thin",spacing:o="micro",label:e,...a},m)=>{let r=i==="vertical",x=t!=null?t:`edge.${D}`,d=f((b={})=>v(h,{as:r?"div":"hr",$orientation:i,role:r?"separator":void 0,"aria-orientation":r?"vertical":void 0,borderStyle:"solid",borderWidth:w,borderPosition:r?"left":"top",borderColor:x,...r?{alignSelf:"stretch",mx:o,minHeight:"1em"}:{width:"100%",my:o},...b}),"line");return e&&!r?u(c,{role:"separator","aria-label":typeof e=="string"?e:void 0,flexDirection:"row",alignItems:"center",gap:"small",my:o,...a,ref:m,children:[d({flex:"fluid",my:0}),typeof e=="string"?v(p,{fontSize:"micro",lineHeight:"tight",color:"ink.secondary",whiteSpace:"nowrap",children:e}):e,d({flex:"fluid",my:0})]}):d({...a,ref:m})});y.displayName="Divider";export{h as a,c as b,y as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-R2B57RMV.esm.js";import{k as b}from"./chunk-PXVTXO3L.esm.js";import{b as s,g as c}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as S,useRef as v}from"react";var g=c(y).withConfig({componentId:"sc-rp85te-0"})(["padding:",";border-radius:",";background:",";"],({theme:e})=>e.spacing("micro"),({theme:e})=>e.border.borderRadius.md,({theme:e})=>e.colors.surface.sunken),I={small:s(["min-height:1.75rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("small"),({theme:e})=>e.font.fontSize.xs),medium:s(["min-height:2.25rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("medium"),({theme:e})=>e.font.fontSize.small)},k=c.button.withConfig({componentId:"sc-rp85te-1"})(["appearance:none;border:0;margin:0;background:transparent;cursor:pointer;font-family:",";font-weight:",";line-height:",";color:",";border-radius:",";transition:",";display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:",";",";&:hover:not([aria-checked='true']):not(:disabled){background:",";}&[aria-checked='true']{background:",";box-shadow:",";color:",";}&:focus-visible{outline:2px solid ",";outline-offset:1px;}&:disabled{cursor:not-allowed;color:",";}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontWeight.bold,({theme:e})=>e.font.lineHeight.tight,({theme:e})=>e.colors.ink.secondary,({theme:e})=>e.border.borderRadius.sm,({theme:e})=>e.animation.transitions.short,({$fullWidth:e})=>e?"1 1 0":"0 0 auto",({$size:e})=>I[e],({theme:e})=>e.colors.wash.hover,({theme:e})=>e.colors.surface.raised,({theme:e})=>e.depth("level-one"),({theme:e})=>e.colors.ink.primary,({theme:e})=>h(e,i=>b(i.colors.primary,"base")),({theme:e})=>e.colors.ink.disabled);import{jsx as x}from"react/jsx-runtime";var w=S(({options:e,value:i,onChange:O,size:R="medium",label:D,fullWidth:d=!0,...C},a)=>{let f=v(null),m=l(r=>{var o,t;let n=e[r];!n||n.disabled||n.value===i||(O(n.value),(t=(o=f.current)==null?void 0:o.querySelectorAll('[role="radio"]')[r])==null||t.focus())},"pick"),u=l((r,n)=>{let o=e.length,t=r;for(let p=0;p<o;p+=1)if(t=(t+n+o)%o,!e[t].disabled)return t;return r},"step");return x(g,{flexDirection:"row",alignItems:"stretch",gap:"micro",width:d?"100%":void 0,role:"radiogroup","aria-label":D,onKeyDown:l(r=>{let n=e.findIndex(t=>t.value===i),o=null;r.key==="ArrowRight"||r.key==="ArrowDown"?o=u(n,1):r.key==="ArrowLeft"||r.key==="ArrowUp"?o=u(n,-1):r.key==="Home"?o=e.findIndex(t=>!t.disabled):r.key==="End"&&(o=e.length-1-[...e].reverse().findIndex(t=>!t.disabled)),!(o===null||o<0)&&(r.preventDefault(),m(o))},"handleKeyDown"),...C,ref:l(r=>{f.current=r,typeof a=="function"?a(r):a&&(a.current=r)},"setRefs"),children:e.map((r,n)=>{let o=r.value===i;return x(k,{type:"button",role:"radio","aria-checked":o,tabIndex:o?0:-1,disabled:r.disabled,$size:R,$fullWidth:d,onClick:()=>m(n),children:r.label},r.value)})})});w.displayName="Option";export{g as a,k as b,w as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as p}from"./chunk-DAT6GD4T.esm.js";import{b as r}from"./chunk-
|
|
1
|
+
import{Q as p}from"./chunk-DAT6GD4T.esm.js";import{b as r}from"./chunk-H4XR4LGF.esm.js";import{e as m}from"./chunk-J2ZPCUOE.esm.js";import{a as e}from"./chunk-UDQ3TYVZ.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var i=n(e).attrs(t=>({bgColor:"surface.sunken",...t})).withConfig({componentId:"sc-1rhi83a-0"})([""]);import{jsx as o,jsxs as l}from"react/jsx-runtime";var y=a(t=>l(i,{width:"100%",justifyContent:"center",alignItems:"center",gap:2,p:"xl",...t,children:[t.iconPropsEmpty?o(r,{...t.iconPropsEmpty}):o(r,{icon:p,size:"xl",color:"primary.dark"}),l(e,{width:"50%",children:[o(m,{variant:"h5",color:"primary",readable:5,textAlign:"center",children:t.titleEmpty?t.titleEmpty:"Nada foi encontrado"}),o(m,{variant:"p",color:"primary",readable:5,textAlign:"center",children:t.subtitleEmpty?t.subtitleEmpty:"Tente ajustar os par\xE2metros dos filtros ou tente um novo termo para a busca."})]})]}),"TableEmptyComponent");export{i as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-IK5Z5C2R.esm.js";import{b as C}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as c}from"./chunk-TZQMBDGR.esm.js";import{b as y}from"./chunk-WCUEINBQ.esm.js";import{b as f}from"./chunk-QYL6LECA.esm.js";import{b as s}from"./chunk-3A7I6HM2.esm.js";import{
|
|
1
|
+
import{b as u}from"./chunk-IK5Z5C2R.esm.js";import{b as C}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as c}from"./chunk-TZQMBDGR.esm.js";import{b as y}from"./chunk-WCUEINBQ.esm.js";import{b as f}from"./chunk-QYL6LECA.esm.js";import{b as s}from"./chunk-3A7I6HM2.esm.js";import{e as p}from"./chunk-XTY6DXMK.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var d=["cq"],h=["xs","sm","md","lg","xl"],Q=t((r,e)=>{let o={theme:e};return{...C(r)(),...f(r)(o),...c(r)(o),...S(r)(o),...y(r)(o),...p(r)(o),...u(r)(o),...s(r)(o)}},"getStyles"),j=t(r=>e=>{let{theme:o,...F}={...r,...e},{cq:n}=F;if(!n)return{};let i={};return h.forEach(m=>{let a=n[m];a&&(i[o.containerSizes.up(m)]=Q(a,o))}),i},"ContainerQueryFactory");export{d as a,j as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a,d as f}from"./chunk-XTY6DXMK.esm.js";import{b as n}from"./chunk-AXUWC2WH.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var p=o(i=>s=>{let{area:e,alignSelf:r,justifySelf:t}={...i,...s},l=r&&a("alignSelf",r,f);return n([""," "," ",""],e?`grid-area: ${e};`:"",l?`align-self: ${l};`:"",t?`justify-self: ${t};`:"")},"PlacementFactory");var g=["area","alignSelf","justifySelf"];export{p as a,g as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as F}from"./chunk-43YSWDK6.esm.js";import{a as w,c as E}from"./chunk-R3VRFUEK.esm.js";import{e as N,g as k}from"./chunk-UQVJ7IG5.esm.js";import{a as T}from"./chunk-J2ZPCUOE.esm.js";import{a as v}from"./chunk-UDQ3TYVZ.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as H,useEffect as V,useMemo as A,useState as U}from"react";function s(e){return e.replace(/\D/g,"")}c(s,"removeNonDigits");function B(e,r="."){return s(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}c(B,"formatNumber");function b(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:m}=r,l=t.indexOf(n);if(l>=0){let f=t.substring(0,l),u=t.substring(l);f=B(f,o),m&&(u=`${u}00`),u=s(u).substring(0,2),t=`${f}${n}${u}`}else t=B(t),m&&(t+=`${n}00`);return t}c(b,"formatCurrency");function G(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=s(e.substring(0,t)),o=s(e.substring(t));return+`${n}.${o}`}return Number(s(e))}catch(t){return console.log("Failed to convert string to Number"),0}}c(G,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),b(t,{validate:!0,...r})}c(g,"getInitialCurrencyValue");var M=d(T).withConfig({componentId:"sc-1xhba8m-0"})(["position:absolute;right:1em;align-self:center;pointer-events:none;color:var(--icon-color);z-index:100;"]),P=d(v).withConfig({componentId:"sc-1xhba8m-1"})(["","{border-bottom-left-radius:0;border-bottom-right-radius:0;}","{border-top-left-radius:0;border-top-right-radius:0;}"],N,w);import{jsx as y,jsxs as q}from"react/jsx-runtime";var W=H(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",suffix:m,options:l,optionValue:f,onOptionChange:u,optionsLabel:R="Percent of balance",...z},D)=>{let[x,p]=U(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");V(()=>{p(i=>{let a=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return a!==i?a:i})},[r,t,n,o]);let S=A(()=>F(i=>e==null?void 0:e(i),250),[e]),I=c((i,a)=>{var h;let $=b((h=i.target.value)!=null?h:"",{validate:a,decimal:t,thousand:n,prefix:o});p($),S($)},"handleChange"),L=c(()=>{p(""),S("")},"resetValues"),O=o?`${o} ${x}`:x,C=y(k,{...z,...m&&{icon:y(M,{fontSize:"xs",fontWeight:"bold","data-testid":"input-currency-suffix",children:m})},ref:D,reset:L,value:O,onChange:I,onBlur:i=>I(i,!0)});return l!=null&&l.length?q(P,{flexDirection:"column",width:"100%",children:[C,y(E,{size:"small",label:R,options:l,value:f!=null?f:"",onChange:i=>u==null?void 0:u(i)})]}):C});W.displayName="InputCurrency";export{b as a,G as b,g as c,W as d};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-H4XR4LGF.esm.js";import{a as m}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-TBHGVERY.esm.js";import{c as a}from"./chunk-62CVSGJD.esm.js";import{b as p}from"./chunk-WCUEINBQ.esm.js";import{b as s,g as d}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var c=a("input").withConfig({componentId:"apollion-checkbox-input"})`
|
|
2
2
|
position: absolute;
|
|
3
3
|
left: 0;
|
|
4
4
|
top: 0;
|
|
5
5
|
margin: 0;
|
|
6
6
|
opacity: 0;
|
|
7
7
|
cursor: pointer;
|
|
8
|
-
`,r=d(
|
|
8
|
+
`,r=d(m).attrs(o=>({alignItems:"center",justifyContent:"center",borderRadius:"micro",borderWidth:"thin",boderStyle:"solid",borderColor:"primary",deep:-1,mr:"small",...o})).withConfig({componentId:"sc-o1c91u-0"})(["width:20px;height:20px;flex-shrink:0;transition:",";"],({theme:o})=>o.animation.transitions.short);function b(o,t,l="primary"){var e;return t==="success"?o.colors.success:t==="error"?o.colors.danger:(e=o.colors[l])!=null?e:o.colors.primary}n(b,"resolveControlPalette");function x({variant:o,$color:t,theme:l}){let e=b(l,o,t);return s(["color:",";& > ","{border:1px solid ",";}&:hover > ",",&:focus > ","{border-color:",";box-shadow:",";}& > ",":checked ~ ","{border-color:",";background-color:",";box-shadow:",";}"],e.dark,r,e.dark,r,r,e.action,l.depth("level-zero"),c,r,e.base,e.base,l.depth("level-zero"))}n(x,"checkboxVariantStyle");function y({theme:o,disabled:t}){return t?s(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";box-shadow:none;& > ","{color:",";}}}"],o.colors.disabled.color,c,r,o.colors.disabled.fill,o.colors.disabled.fill,i,o.colors.disabled.color):null}n(y,"disabledStyle");var w=a("label").withConfig({componentId:"apollion-checkbox-container"})`
|
|
9
9
|
position: relative;
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
flex-direction: row;
|
|
@@ -20,16 +20,20 @@ import{a as i}from"./chunk-CTNZPJ47.esm.js";import{a as h}from"./chunk-NHE4GLQK.
|
|
|
20
20
|
margin: ${({theme:o})=>o.spacing(0,"xs","xs",0)};
|
|
21
21
|
transition: ${({theme:o})=>o.animation.transitions.short};
|
|
22
22
|
|
|
23
|
-
& > ${
|
|
23
|
+
& > ${c} ~ ${r} > ${i} {
|
|
24
24
|
${p({color:"neutral.0"})}
|
|
25
25
|
opacity: 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* Shows the check when the native input is :checked */
|
|
29
|
-
& > ${
|
|
29
|
+
& > ${c}:checked ~ ${r} > ${i} {
|
|
30
30
|
opacity: 1;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
${x}
|
|
34
|
-
${
|
|
35
|
-
|
|
34
|
+
${y}
|
|
35
|
+
|
|
36
|
+
/* Grid-item placement — native \`<label>\` root: the factory emits the CSS,
|
|
37
|
+
the System \`styled\` withholds the keys from the DOM. */
|
|
38
|
+
${h({})}
|
|
39
|
+
`;export{c as a,r as b,b as c,w as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"./chunk-347TNROV.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var e=o(t).withConfig({componentId:"sc-atg43m-0"})(["display:flex;"]);export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as f}from"./chunk-UACWLLHE.esm.js";import{a as s}from"./chunk-J2ZPCUOE.esm.js";import{a as p}from"./chunk-347TNROV.esm.js";import{b as d,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var a=l.input.withConfig({componentId:"sc-truao3-0"})(["position:absolute;left:0;top:0;margin:0;z-index:1;opacity:0;"]);a.displayName="input";var r=l(p).attrs(o=>({borderRadius:"md",borderWidth:"regular",borderStyle:"solid",borderColor:"primary",deep:-1,...o})).withConfig({componentId:"sc-truao3-1"})(["--size:20px;--checked-size:calc(var(--size) * 0.5);width:var(--size);height:var(--size);flex-shrink:0;&::before{content:'';border-radius:50%;display:inline-block;width:var(--checked-size);height:var(--checked-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;}"]);function S({variant:o,$color:i,theme:t}){let e=f(t,o,i);return d(["color:",";& > ","{border:2px solid ",";&::before{background:",";}}&:hover > ",",&:focus > ","{border-color:",";}& > ",":checked ~ ","{border-color:",";box-shadow:",";}"],e.dark,r,e.dark,e.base,r,r,e.action,a,r,e.base,t.depth("level-zero"))}n(S,"inputVariantStyle");function C(o){return d(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";&::before{background:",";}}}"],o.colors.disabled.color,a,r,o.colors.disabled.fill,o.colors.disabled.fill,o.colors.disabled.color)}n(C,"getDisabledStyle");var m=l(s).withConfig({componentId:"sc-truao3-2"})(["cursor:pointer;position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:",";margin:",";"," "," & ",":checked ~ ","::before{opacity:1;}"],({theme:o})=>o.spacing("micro"),({theme:o})=>o.spacing(0,"xs","xs",0),S,({theme:o,disabled:i})=>i&&C(o),a,r);import{jsx as c,jsxs as k}from"react/jsx-runtime";var b=n(({id:o,disabled:i,label:t=null,labelProps:e,variant:u="default",color:y,area:g,alignSelf:h,justifySelf:x,...R})=>k(m,{as:"label",htmlFor:o,variant:u,$color:y,disabled:i,area:g,alignSelf:h,justifySelf:x,children:[c(a,{...R,type:"radio",id:o,disabled:i}),c(r,{}),typeof t=="string"?c(s,{fontSize:"small",color:"ink.primary",...e,children:t}):t]}),"RadioComponent");b.displayName="Radio";export{a,r as b,m as c,b as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-UQVJ7IG5.esm.js";import{r as c}from"./chunk-BV6GHAF7.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{useEffect as h,useMemo as I,useState as v}from"react";import{jsx as g}from"react/jsx-runtime";function i(M){let{mask:u,value:e,onChange:t,...d}=M,a=I(()=>c(u),[u]),[C,s]=v(()=>e?a(e):"");h(()=>{s(n=>{let r=e?a(e):"";return r!==n?r:n})},[e,a]);let m=I(()=>k(t!=null?t:(()=>{}),250),[t]);return g(f,{...d,reset:o(()=>{s(""),m("")},"resetValues"),value:C,onChange:o((n,r)=>{var l;let p=a((l=n.target.value)!=null?l:"");s(p),m(p)},"handleChange")})}o(i,"InputMaskComponent");i.displayName="InputMask";export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,b as P}from"./chunk-
|
|
1
|
+
import{a as s,b as P}from"./chunk-EK6YOJCW.esm.js";import{ga as I,o as v}from"./chunk-DAT6GD4T.esm.js";import{a as c,b as f}from"./chunk-H4XR4LGF.esm.js";import{a as C}from"./chunk-UDQ3TYVZ.esm.js";import{d as w}from"./chunk-62CVSGJD.esm.js";import{b}from"./chunk-TZQMBDGR.esm.js";import{b as u}from"./chunk-3A7I6HM2.esm.js";import{a as S}from"./chunk-R2B57RMV.esm.js";import{j as k}from"./chunk-PXVTXO3L.esm.js";import{b as i,f as x,g as y}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";function M(){return i(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus + ","{color:var(--base-color);}"],u({deep:-1}),u({deep:0}),c)}p(M,"inputVariantStyle");var N=i(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.ink.muted),E=i(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],u({deep:0}));function L({iconPosition:o}){return o==="left"?i(["& ~ ",",& ~ ","{left:1em;right:unset;}"],s,c):null}p(L,"invertIconPosition");var V=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);}}"],c,s,b(()=>({bgColor:"wash.hover"})),s,b(()=>({bgColor:"wash.pressed"})),s,c),W=y(w.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"surface.paper",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({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,M,V,L,E,N),g=y(C).withConfig({componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let e=o.colors.primary;r==="error"?e=o.colors.danger:r==="success"&&(e=o.colors.success);let{base:t,dark:l}=e;return{display:"flex",position:"relative","--base-color":t,"--dark-color":r==="default"?o.colors.ink.primary:S(o,n=>{var a,d;return k((d=(a=n.colors[r==="error"?"danger":"success"])==null?void 0:a.dark)!=null?d:n.colors.ink.primary,n.colors.surface.paper)}),"--disabled-bg":o.colors.disabled.fill,"--disabled-color":o.colors.disabled.color,"--icon-color":r==="default"?o.colors.ink.muted:t,"--border-color":r==="default"?o.colors.edge.border:t}});g.displayName="input";import{forwardRef as j}from"react";import{jsx as m}from"react/jsx-runtime";function F({icon:o,variant:r,clearable:e,reset:t,value:l,readOnly:n}){return e&&t&&l&&!n?m(P,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:t,"data-testid":"input-reset-button",icon:m(f,{size:"small",color:"grayscale.0",icon:I})}):o||(r==="error"?m(f,{icon:I,"data-testid":"input-icon-error"}):r==="success"?m(f,{icon:v,"data-testid":"input-icon-success"}):null)}p(F,"getIconComponent");import{jsx as q,jsxs as G}from"react/jsx-runtime";var T=j(({value:o,variant:r="default",iconPosition:e="right",size:t="medium",...l},n)=>{let{disabled:a,width:d,style:J,area:z,alignSelf:A,justifySelf:B,...D}=l,R=x(),h=F({...l,value:o,variant:r,size:t,iconPosition:e}),H={...R.component.input.size[t],...h&&{[e==="right"?"pr":"pl"]:"xl"}};return G(g,{variant:r,width:d,flexDirection:"row",area:z,alignSelf:A,justifySelf:B,children:[q(W,{iconPosition:e,disabled:a,variant:r,...H,...D,...o!==void 0&&{value:o},ref:n}),h]})});T.displayName="Input";export{M as a,N as b,E as c,L as d,W as e,g as f,T as g};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{a as c}from"./chunk-X2CMFDNG.esm.js";import{b as q}from"./chunk-RNAHUZE7.esm.js";import{a as T}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-FBHZTBNG.esm.js";import{a as j}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-EFFENLBC.esm.js";import{a as K}from"./chunk-HKOM2JMK.esm.js";import{g as O}from"./chunk-UQVJ7IG5.esm.js";import{a as A}from"./chunk-BHRDNR3A.esm.js";import{a as V}from"./chunk-CLU3WNVI.esm.js";import{F as N,K as y,Y as M,v as I,w as B}from"./chunk-DAT6GD4T.esm.js";import{b as m}from"./chunk-H4XR4LGF.esm.js";import{a as z,e as E}from"./chunk-J2ZPCUOE.esm.js";import{a as f}from"./chunk-UDQ3TYVZ.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as L}from"./chunk-TZQMBDGR.esm.js";import{b as o,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import P,{useEffect as ue,useState as v}from"react";function ie(e){switch(e){case"Compact":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("micro"),l,c,({theme:t})=>t.spacing("micro"));case"Expansive":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("large"),l,c,({theme:t})=>t.spacing("large"));default:return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("medium"),l,c,({theme:t})=>t.spacing("medium"))}}i(ie,"getSizeStyle");function D(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(D,"getAlignDirection");function ae(e){if(typeof e=="object"){let t=e.reduce((u,r)=>{let x=`
|
|
2
|
+
& ${l}, ${c}, ${s} {
|
|
3
|
+
&:nth-child(${r.target}) {
|
|
4
|
+
${f} {
|
|
5
|
+
text-align: ${r.direction};
|
|
6
|
+
align-items: ${D(r.direction)}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;return`${u} ${x}`},"");return o(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,f,D("center"),t)}return e!==void 0?o(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,f,e,D(e)):o(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,f)}i(ae,"getAlignStyle");function re(e){if(e===void 0)return o([""]);let t=e.map((u,r)=>u&&(u.type===void 0?`
|
|
11
|
+
&:nth-child(${r+1}) {
|
|
12
|
+
width: ${u.width}px;
|
|
13
|
+
}
|
|
14
|
+
`:`
|
|
15
|
+
&:nth-child(${r+1}) {
|
|
16
|
+
${u.type}-width: ${u.width}px;
|
|
17
|
+
}
|
|
18
|
+
`));return o(["& ",",",",","{","}"],l,c,s,t)}i(re,"getColumnSizeStyle");function oe(){return o(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,z)}i(oe,"getEllipsisStyle");function le(e){return e.map(t=>o(["& ","{&:nth-child(","){",";}}"],T,t+1,L({bgColor:"muted"})))}i(le,"getSelectedStyle");var ce=`
|
|
19
|
+
& ${s} {
|
|
20
|
+
position: sticky;
|
|
21
|
+
top: 0;
|
|
22
|
+
}
|
|
23
|
+
`,se=o(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],V,T,L({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s),de=i(e=>`
|
|
24
|
+
& ${T}{
|
|
25
|
+
&:hover{
|
|
26
|
+
& ${l}, ${c}{
|
|
27
|
+
/* box-shadow inset instead of border avoids layout shift on hover
|
|
28
|
+
(rows would get +1px taller on mouseover, causing visible
|
|
29
|
+
drift). Visually identical to the classic border-1px. */
|
|
30
|
+
box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
|
|
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.edge.border};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,"getHoverableProps"),W=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&ce,({striped:e})=>e&&se,({hoverable:e,theme:t})=>e&&de(t),({selected:e})=>le(e),({ellipsis:e})=>e?oe():"",({columnSize:e})=>re(e),({align:e})=>ae(e),({rowSize:e})=>ie(e));import{jsx as a,jsxs as C}from"react/jsx-runtime";var Y=i(e=>{let[t,u]=v(""),[r,x]=v([]),[k,w]=v([]),[G,S]=v("Default"),b=P.useRef(null);ue(()=>{if(!b.current)return;let n=Array.from(b.current.children);x(n)},[]);let J=P.Children.toArray(e.children).length>1?1:0,Q=P.Children.map(e.children,(n,g)=>g===J?P.cloneElement(n,{ref:b}):n),U=i(n=>{if(n.key==="Enter"){if(!b.current)return;let g=b.current.children,d=r.map((h,p)=>{let $=g[p];return $&&(t===""&&($.style.display=""),h.innerText.toLowerCase().includes(t.toLowerCase())||($.style.display="none")),h});x(d)}},"getFilterData"),X=r.length>0&&r.every(n=>n.style.display==="none"),Z=r.length,_=i((n,g)=>{g&&w(d=>[...d,n]),g||w(k.filter(d=>d!==n))},"getSelected"),ee=i(n=>(r.forEach((g,d)=>{let h=g.children[0].querySelectorAll("input")[0];return n&&(h.checked=!0,w(p=>[...p,d])),n||(h.checked=!1,w([])),null}),n),"getAllSelected"),te=i(n=>r.map(d=>parseInt(d.children[n].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ne=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(n){switch(n){case"normal":if(Z<=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 i(H,"getOverflow"),C(f,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[C(f,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&a(E,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true",children:e.title}),C(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&a(f,{width:"230px",children:a(O,{placeholder:"Pesquisar",type:"text",value:t,name:"search",onChange:n=>u(n.target.value),onKeyDown:n=>U(n),width:"230",icon:a(m,{icon:I}),role:"search"})}),e.rowTypes&&a(A,{options:[{icon:a(m,{icon:y}),title:"Layout Condensado",action:i(()=>S("Compact"),"action")},{icon:a(m,{icon:y}),title:"Layout Padr\xE3o",action:i(()=>S("Expansive"),"action")},{icon:a(m,{icon:y}),title:"Layout Expandido",action:i(()=>S("Default"),"action")}],children:a(m,{icon:y,color:"primary"})}),e.share&&a(A,{options:[{icon:a(m,{icon:N}),title:"Enviar por email",action:e.share.email},{icon:a(m,{icon:M}),title:"Compartilhar",action:e.share.social}],children:a(m,{icon:B,color:"primary"})})]})]}),ne&&a(K,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel,linesPerPageValue:e.linesPerPageValue,onLinesPerPageChange:e.onLinesPerPageChange,onPreviousPage:e.onPreviousPage,onNextPage:e.onNextPage,canPreviousPage:e.canPreviousPage,canNextPage:e.canNextPage,previousLabel:e.previousLabel,nextLabel:e.nextLabel}),C(W,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:G||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,children:[a(E,{as:"caption","aria-hidden":"false",hidden:!0,children:e.title}),a(j.Provider,{value:{ellipsis:e.ellipsis,getSelected:_,getAllSelected:ee,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:te(e.columnSum)}:{index:void 0,sum:void 0}},children:Q})]}),X&&a(q,{})]})},"TableComponent");export{W as a,Y as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-347TNROV.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var a=e(r).attrs(({flat:o,...t})=>({p:"medium",borderRadius:"micro",...o?{}:{bgColor:"surface.paper",deep:2},...t})).withConfig({componentId:"sc-5vfy6v-0"})(["display:flex;"]);export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-FBHZTBNG.esm.js";import{a}from"./chunk-7BPSZCSD.esm.js";import{a as r}from"./chunk-CDRLVSLF.esm.js";import{a as C}from"./chunk-YSSFTYCU.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import d from"react";var b=n(c).withConfig({componentId:"sc-g7895e-0"})([""]);import{jsx as t}from"react/jsx-runtime";var o=l(m=>{let{getSelected:p}=d.useContext(r),x=l(e=>[...e.parentNode.children].indexOf(e),"getNodeIndex"),h=l(e=>{let T=x(e.target.closest("tr"));p(T,e.target.checked)},"handleChecked");return t(b,{children:t(C,{children:t(a,{label:m.children,onChange:h})})})},"TableCheckboxCellComponent");o.displayName="TableCheckboxCell";export{b as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-GZONWSRB.esm.js";var k=["flex","gap","flexDirection","flexBasis","justifyContent","alignItems","alignContent","justifyItems","placeItems","wrap","alignSelf","grow","shrink","order","justifySelf"],C={auto:"1 1 auto",fluid:"1 1 0%",initial:"0 1 auto",none:"none"},S={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},w={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},h={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"},p={start:"start",end:"end",center:"center",stretch:"stretch"},A={"flex-start":"start","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly"},o=a((e,t,l)=>{var s;if(t==null)return;let r=(s=A[t])!=null?s:t,n=l[r];return n},"resolveAlignment"),b=a(e=>{let t=o("justifyContent",e.justifyContent,S),l=o("alignItems",e.alignItems,w),r=o("alignContent",e.alignContent,h),n=o("justifyItems",e.justifyItems,p),s=o("placeItems",e.placeItems,p);return{...t&&{justifyContent:t},...l&&{alignItems:l},...r&&{alignContent:r},...n&&{justifyItems:n},...s&&{placeItems:s}}},"alignmentCss"),v={wrap:"wrap",nowrap:"nowrap",reverse:"wrap-reverse"},O={start:"flex-start",end:"flex-end",auto:"auto",center:"center",stretch:"stretch"},P=a(e=>typeof e=="string"?{first:-999,last:999}[e]:e,"flexOrderMap"),T=a(e=>({theme:t,...l})=>{let{flex:r,flexDirection:n,flexBasis:s,gap:i,justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y,wrap:c,justifySelf:F,alignSelf:f,grow:I,shrink:j,order:x}={...e,...l};return{...i!=null?{gap:t.spacing(i)}:void 0,...r&&{flex:C[r]},...b({justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y}),...f&&{alignSelf:o("alignSelf",f,O)},...c&&{flexWrap:v[c]},...x&&{order:P(x)},...j&&{flexShrink:1},...I&&{flexGrow:1},...n?{flexDirection:n}:{flexDirection:"column"},flexBasis:s,justifySelf:F}},"FlexFactory");export{k as a,o as b,b as c,T as
|
|
1
|
+
import{a}from"./chunk-GZONWSRB.esm.js";var k=["flex","gap","flexDirection","flexBasis","justifyContent","alignItems","alignContent","justifyItems","placeItems","wrap","alignSelf","grow","shrink","order","justifySelf"],C={auto:"1 1 auto",fluid:"1 1 0%",initial:"0 1 auto",none:"none"},S={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},w={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},h={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"},p={start:"start",end:"end",center:"center",stretch:"stretch"},A={"flex-start":"start","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly"},o=a((e,t,l)=>{var s;if(t==null)return;let r=(s=A[t])!=null?s:t,n=l[r];return n},"resolveAlignment"),b=a(e=>{let t=o("justifyContent",e.justifyContent,S),l=o("alignItems",e.alignItems,w),r=o("alignContent",e.alignContent,h),n=o("justifyItems",e.justifyItems,p),s=o("placeItems",e.placeItems,p);return{...t&&{justifyContent:t},...l&&{alignItems:l},...r&&{alignContent:r},...n&&{justifyItems:n},...s&&{placeItems:s}}},"alignmentCss"),v={wrap:"wrap",nowrap:"nowrap",reverse:"wrap-reverse"},O={start:"flex-start",end:"flex-end",auto:"auto",center:"center",stretch:"stretch"},P=a(e=>typeof e=="string"?{first:-999,last:999}[e]:e,"flexOrderMap"),T=a(e=>({theme:t,...l})=>{let{flex:r,flexDirection:n,flexBasis:s,gap:i,justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y,wrap:c,justifySelf:F,alignSelf:f,grow:I,shrink:j,order:x}={...e,...l};return{...i!=null?{gap:t.spacing(i)}:void 0,...r&&{flex:C[r]},...b({justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y}),...f&&{alignSelf:o("alignSelf",f,O)},...c&&{flexWrap:v[c]},...x&&{order:P(x)},...j&&{flexShrink:1},...I&&{flexGrow:1},...n?{flexDirection:n}:{flexDirection:"column"},flexBasis:s,justifySelf:F}},"FlexFactory");export{k as a,o as b,b as c,O as d,T as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as m}from"./chunk-H4XR4LGF.esm.js";import{b as c}from"./chunk-JLUNVLUS.esm.js";import{e as f}from"./chunk-J2ZPCUOE.esm.js";import{a as g}from"./chunk-347TNROV.esm.js";import{g as p}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function h(t){return t==="extraLarge"?"xl":t==="giant"?"xxl":t}a(h,"getIconSize");function d({theme:t,size:i,$label:e}){let{fontSize:o}=t.font,n=(e==null?void 0:e.length)||0;switch(i){case"small":{let r=t.spacing("medium");return{width:r,height:r,fontSize:o.micro}}case"large":{let r=t.spacing("xl");return{width:r,height:r,fontSize:n===1?o.xxl:o.large}}case"extraLarge":{let r=t.spacing("xxl");return{width:r,height:r,fontSize:n===1?o.gargantua:o.giant}}case"giant":{let r=t.spacing("giant");return{width:r,height:r,fontSize:o.gargantua}}default:{let r=t.spacing("large");return{width:r,height:r,fontSize:n===1?o.medium:o.xs}}}}a(d,"getSizes");var u=p(g).withConfig({componentId:"sc-k7r87e-0"})(["display:flex;",""],d);import{jsx as s}from"react/jsx-runtime";function x({imgSrc:t,icon:i,size:e,label:o,alt:n}){return t?s(c,{width:"100%",height:"100%",src:t,alt:n!=null?n:"","data-testid":"avatar-image"}):i?s(m,{icon:i,size:h(e),"data-testid":"avatar-icon"}):s(f,{textTransform:"uppercase",children:o})}a(x,"getContent");var l=a(({size:t,icon:i,imgSrc:e,label:o,alt:n,...r})=>s(u,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"surface.sunken",color:"primary.base",$label:o,size:t,...!e&&!i&&!!o&&{role:"img","aria-label":n!=null?n:o},...r,children:x({size:t,icon:i,imgSrc:e,label:o,alt:n})}),"Avatar");l.displayName="Avatar";export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-OEEVC5Y2.esm.js";import{a as m}from"./chunk-J2ZPCUOE.esm.js";import{a as t}from"./chunk-UDQ3TYVZ.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{k as c}from"./chunk-PXVTXO3L.esm.js";import{b as h,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var I=h(["cursor:pointer;&:hover,&:focus-within{border-color:",";box-shadow:",";transform:translateY(-2px);}@media (prefers-reduced-motion:reduce){&:hover,&:focus-within{transform:none;}}"],({theme:e})=>f(e,r=>c(r.colors.primary,"base")),({theme:e})=>e.depth("level-three")),g=l(u).withConfig({componentId:"sc-mtfzzn-0"})(["transition:",";",""],({theme:e})=>e.animation.transitions.short,({$interactive:e})=>e&&I),C=l(t).withConfig({componentId:"sc-mtfzzn-1"})(["margin:",";overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;"],({theme:e,$pad:r})=>{let o=`calc(${e.spacing(r)} * -1)`;return`${o} ${o} 0`});import{jsx as a,jsxs as y}from"react/jsx-runtime";var B=s(e=>{let r=[],o=[];return e.media&&(r.push("media"),o.push("auto")),e.title&&(r.push("title"),o.push("auto")),r.push("content"),o.push(e.action?"1fr":"auto"),e.action&&(r.push("action"),o.push("auto")),{columns:"1fr",rows:o.join(" "),areas:r.map(i=>`"${i}"`).join(" ")}},"cardTemplate"),x=s(({media:e,title:r,description:o,subtitle:i,actionComponent:n,children:b,interactive:p=!1,medias:S,p:d="large",...w})=>{let v=typeof r=="string"?a(m,{as:"h4",fontSize:"small",fontWeight:"bold",lineHeight:"regular",color:"ink.primary",children:r}):r,z=typeof o=="string"?a(m,{as:"p",fontSize:"micro",lineHeight:"wild",color:"ink.secondary",children:o}):o,F=B({media:!!e,title:!!r,action:!!n});return y(g,{borderRadius:"md",borderWidth:"thin",borderColor:"edge.hairline",bgColor:"surface.paper",overflow:p?"visible":"hidden",p:d,medias:{...F,gap:"large",...S},$interactive:p,containment:"inline-size",...w,children:[e&&a(C,{area:"media",$pad:d,children:e}),r&&a(t,{area:"title",children:v}),y(t,{area:"content",gap:"xs",children:[z,i,b]}),n&&a(t,{area:"action",children:n})]})},"CardComponent");x.displayName="Card";export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t}from"./chunk-
|
|
1
|
+
import{e as t}from"./chunk-J2ZPCUOE.esm.js";import{b as c}from"./chunk-4TQV5FFJ.esm.js";import{a as i}from"./chunk-UDQ3TYVZ.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{forwardRef as L,useMemo as T}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var y=L(({title:m,contents:d,direction:p="row",itemProps:x,dividers:h=!1,gap:n,...u},w)=>{let l=T(()=>d.map(e=>{var o;return{...e,id:(o=e.id)!=null?o:c()}}),[d]),s=p==="row",g=f(e=>h&&e<l.length-1?{borderPosition:"bottom",borderWidth:"thin",borderColor:"edge.strong"}:void 0,"dividerProps");return a(i,{ref:w,flexDirection:"column",gap:"small",width:"100%",...u,children:[m&&r(t,{fontWeight:"bold",lineHeight:"regular",children:m}),r(i,{as:"dl",flexDirection:"column",gap:"micro",width:"100%",m:"zero",children:l.map(({id:e,key:o,value:D},b)=>a(i,{as:"div",width:"100%",flexDirection:s?"row":"column",justifyContent:s?"between":void 0,gap:n!=null?n:s?"medium":"micro",...g(b),...x,children:[r(t,{as:"dt",fontSize:"xs",lineHeight:"tight",color:"ink.primary",children:o}),r(t,{as:"dd",fontSize:"xs",lineHeight:"tight",children:D})]},e))})]})});y.displayName="DescriptionList";export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o}from"./chunk-
|
|
1
|
+
import{g as o}from"./chunk-ZQ5JOSGH.esm.js";import{a as e}from"./chunk-UDQ3TYVZ.esm.js";import{forwardRef as u}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";var f=u(({loading:r,opener:l=null,closer:m=null,content:s,contentGap:p="xs",children:x,loadingComponent:t,...c},a)=>i(e,{flexDirection:"row",justifyContent:"center",alignItems:"center",...c,ref:a,children:[i(e,{flexDirection:"row",flex:"fluid",alignItems:"center",gap:p,isHidden:r,children:[l,n(e,{flex:"fluid",minWidth:0,children:x||s}),m]}),r&&(t!=null?t:n(o,{"data-testid":"content-spinner",color:"gray.0",position:"absolute"}))]}));f.displayName="Content";export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./chunk-
|
|
1
|
+
import{e as g}from"./chunk-CC5NKEXF.esm.js";import{a as k}from"./chunk-J2ZPCUOE.esm.js";import{a}from"./chunk-UDQ3TYVZ.esm.js";import{a as I}from"./chunk-R2B57RMV.esm.js";import{k as v}from"./chunk-PXVTXO3L.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as K,useRef as P}from"react";var B=d(a).withConfig({componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}","{> ","{overflow-x:visible;overflow-y:visible;}}"],({theme:t})=>t.colors.edge.hairline,a,a,({theme:t})=>t.breakpoints.up("sm"),a),S=d(g).attrs(t=>{var e,n;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(n=t.borderWidth)!=null?n:"none"}}).withConfig({componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:1px;background:",";transition:",";}&&&,&&&:focus,&&&:active,&&&:hover{box-shadow:none;text-decoration:none;}"],({isActive:t,theme:e,color:n})=>t?I(e,m=>v(m.colors[n],"base")):"transparent",({theme:t})=>t.animation.transitions.short);import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:n="primary",buttonProps:m}){return f(S,{as:"button",variant:"linked",isActive:t,color:n,...m,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:n,tabHeaderProps:m,tabContentProps:H,...D},R)=>{var w;let y=L(),b=K(()=>n.map((o,i)=>({...o,id:`${y}-${i}`})),[n,y]),x=P(null),A=l(o=>t===o,"isCurrentIndex"),T=l(o=>`tab-${o}`,"tabId"),h=l(o=>`tabpanel-${o}`,"panelId"),s=(w=b[t])!=null?w:b[0],E=l(o=>{var r,p;e==null||e(o);let i=(r=x.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=i==null?void 0:i[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...m,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let i=b.length-1,r=null;o.key==="ArrowRight"?r=t>=i?0:t+1:o.key==="ArrowLeft"?r=t<=0?i:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=i),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:x,children:b.map(({id:o,buttonProps:i,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...i,id:T(o),role:"tab","aria-selected":u,"aria-controls":h(o),tabIndex:u?0:-1,onClick:l(M=>{c!==t&&(r==null||r(c,M),e==null||e(c))},"onClick")}},o)})})}),f(a,{flex:"fluid",pageShell:!0,width:"100%",role:"tabpanel",id:s?h(s.id):void 0,"aria-labelledby":s?T(s.id):void 0,...H,children:s==null?void 0:s.content})]})});W.displayName="Tabs";export{B as a,S as b,$ as c,W as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-KT4BKJVV.esm.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-KT4BKJVV.esm.js";import{a as r}from"./chunk-347TNROV.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var c=o(r).withConfig({componentId:"sc-1teioay-0"})(["animation:rotate var(--apollion-motion-indicator-loop,2000ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),l=o(t).withConfig({componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:dash var(--apollion-motion-indicator-pulse,1500ms) var(--apollion-motion-easing-standard,cubic-bezier(0.42,0,0.58,1)) 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;}}@media (prefers-reduced-motion:reduce){animation:none;stroke-dasharray:90,150;stroke-dashoffset:-35;}"]),d=2*Math.PI*20,p=o(r).withConfig({componentId:"sc-1teioay-2"})(["transform:rotate(-90deg);"]),m=o(t).withConfig({componentId:"sc-1teioay-3"})(["fill:none;stroke:currentColor;stroke-width:4;opacity:0.2;"]),f=o(t).withConfig({componentId:"sc-1teioay-4"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-dasharray:",";animation:drain var(--countdown-duration) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) forwards;@keyframes drain{0%{stroke-dashoffset:0;}100%{stroke-dashoffset:",";}}"],d,d);import{forwardRef as k}from"react";import{jsx as n,jsxs as S}from"react/jsx-runtime";var h=k(({size:y,label:i="Carregando",variant:u="indeterminate",duration:w=15e3,cycle:C,...a},s)=>{let e=y||"1em";return u==="countdown"?S(p,{as:"svg",viewBox:"0 0 50 50",role:"timer","aria-label":i,...a,width:e,height:e,ref:s,children:[n(m,{cx:"25",cy:"25",r:"20"}),n(f,{cx:"25",cy:"25",r:"20",style:{"--countdown-duration":`${w}ms`}},C)]}):n(c,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":i,...a,width:e,height:e,ref:s,children:n(l,{cx:"25",cy:"25",r:"20"})})});h.displayName="Spinner";export{c as a,l as b,d as c,p as d,m as e,f,h as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-347TNROV.esm.js";import"../../chunks/chunk-MPMCXGOX.esm.js";import"../../chunks/chunk-TBHGVERY.esm.js";import"../../chunks/chunk-62CVSGJD.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-MBQGF5IM.esm.js";import"../../chunks/chunk-CK3WBMQQ.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-RZLOZ3NW.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-XTY6DXMK.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as BaseContainer,b as LayoutBase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"../../chunks/chunk-
|
|
1
|
+
import{b as t}from"../../chunks/chunk-347TNROV.esm.js";import"../../chunks/chunk-MPMCXGOX.esm.js";import"../../chunks/chunk-TBHGVERY.esm.js";import"../../chunks/chunk-62CVSGJD.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-VUFEYXWD.esm.js";import"../../chunks/chunk-SF2QSF7E.esm.js";import"../../chunks/chunk-MBQGF5IM.esm.js";import"../../chunks/chunk-CK3WBMQQ.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-RZLOZ3NW.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-TZQMBDGR.esm.js";import"../../chunks/chunk-WCUEINBQ.esm.js";import"../../chunks/chunk-YJ6PPJQ4.esm.js";import"../../chunks/chunk-QYL6LECA.esm.js";import"../../chunks/chunk-3A7I6HM2.esm.js";import"../../chunks/chunk-XTY6DXMK.esm.js";import"../../chunks/chunk-R2B57RMV.esm.js";import"../../chunks/chunk-RFUX53ZX.esm.js";import"../../chunks/chunk-CQASQBD7.esm.js";import"../../chunks/chunk-MREWGN5R.esm.js";import"../../chunks/chunk-PXVTXO3L.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import{g as o}from"../../chunks/chunk-AXUWC2WH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";var r=o(t).withConfig({componentId:"sc-fc1jyz-0"})(["display:block;"]);export{r as Box};
|