@apollion-dsi/core 7.7.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -10
- package/lib/chunks/Dropdown.floating-RZKMFV6N.esm.js +1 -0
- package/lib/chunks/{Notification.group-4D3CNTGF.esm.js → Notification.group-OOLQ3DCI.esm.js} +1 -1
- package/lib/chunks/Tooltip.floating-ELFMKU3S.esm.js +1 -0
- package/lib/chunks/chunk-2VRBBC54.esm.js +1 -0
- package/lib/chunks/chunk-3EWFXP4N.esm.js +1 -0
- package/lib/chunks/{chunk-7QZAWMWZ.esm.js → chunk-6D5LRZHG.esm.js} +1 -1
- package/lib/chunks/chunk-6PVZ2DEN.esm.js +1 -0
- package/lib/chunks/chunk-AWLWV76H.esm.js +1 -0
- package/lib/chunks/chunk-B7BKUYC4.esm.js +3 -0
- package/lib/chunks/chunk-BUPS7DX6.esm.js +1 -0
- package/lib/chunks/{chunk-RIDQQLK7.esm.js → chunk-CIHS5F2A.esm.js} +1 -1
- package/lib/chunks/{chunk-YPEM3MWB.esm.js → chunk-DJY3YRWV.esm.js} +1 -1
- package/lib/chunks/chunk-F4JQP5I6.esm.js +1 -0
- package/lib/chunks/{chunk-HJVFE7FQ.esm.js → chunk-FDF774OD.esm.js} +1 -1
- package/lib/chunks/chunk-H2YBLEHV.esm.js +1 -0
- package/lib/chunks/{chunk-MPOW55EU.esm.js → chunk-JPHQLSMT.esm.js} +1 -1
- package/lib/chunks/{chunk-URD3VE47.esm.js → chunk-KI46FTJ7.esm.js} +1 -1
- package/lib/chunks/{chunk-EXZZEN2U.esm.js → chunk-LLQWVULM.esm.js} +1 -1
- package/lib/chunks/{chunk-ZOO4TDFX.esm.js → chunk-LNSQRZR7.esm.js} +1 -1
- package/lib/chunks/chunk-M3VFZ745.esm.js +1 -0
- package/lib/chunks/{chunk-PIZ5RV6D.esm.js → chunk-N273ZLSA.esm.js} +1 -1
- package/lib/chunks/{chunk-SVPEVGOA.esm.js → chunk-P7ARPZBU.esm.js} +1 -1
- package/lib/chunks/chunk-PPM5MYBX.esm.js +1 -0
- package/lib/chunks/chunk-QRUKZL4X.esm.js +1 -0
- package/lib/chunks/{chunk-COFDJE74.esm.js → chunk-RGBJDHFM.esm.js} +1 -1
- package/lib/chunks/{chunk-D6OVUFOQ.esm.js → chunk-RRTLPB5F.esm.js} +1 -1
- package/lib/chunks/chunk-S4K2XENC.esm.js +1 -0
- package/lib/chunks/{chunk-JNK7ZSEU.esm.js → chunk-TBNQUDOJ.esm.js} +1 -1
- package/lib/chunks/chunk-UX2DHPUJ.esm.js +5 -0
- package/lib/chunks/{chunk-FOHV4WEQ.esm.js → chunk-YEWND54D.esm.js} +1 -1
- package/lib/chunks/chunk-Z4PVL3DV.esm.js +1 -0
- package/lib/containers/Card/Card.interface.d.ts +12 -2
- package/lib/containers/Card/Card.style.d.ts +8 -4
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +73 -19
- package/lib/containers/Grid/Grid.style.d.ts +28 -11
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.d.ts +3 -0
- package/lib/containers/Scroll/Scroll.interface.d.ts +11 -0
- package/lib/containers/Scroll/Scroll.style.d.ts +18 -8
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/Accordion/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +1 -1
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- 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/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.d.ts +32 -16
- package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +78 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +57 -4
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Chip/Chip.style.d.ts +8 -1
- package/lib/elements/Chip/index.esm.js +1 -1
- package/lib/elements/Divider/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +6 -0
- package/lib/elements/Dropdown/Dropdown.floating.d.ts +12 -2
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +6 -3
- 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/index.esm.js +1 -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/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +9 -5
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/NavBar/NavBar.interface.d.ts +1 -1
- package/lib/elements/NavBar/index.d.ts +1 -1
- package/lib/elements/NavBar/index.esm.js +1 -1
- package/lib/elements/NavTabs/NavTabs.d.ts +15 -20
- package/lib/elements/NavTabs/NavTabs.interface.d.ts +9 -2
- package/lib/elements/NavTabs/NavTabs.style.d.ts +10 -24
- package/lib/elements/NavTabs/index.esm.js +1 -1
- package/lib/elements/Popover/Popover.d.ts +3 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.style.d.ts +5 -2
- package/lib/elements/Sheet/index.esm.js +1 -1
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +6 -1
- package/lib/elements/Tooltip/Tooltip.floating.d.ts +16 -2
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +12 -0
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.interface.d.ts +8 -4
- package/lib/form/Form/Form.style.d.ts +8 -4
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +3 -0
- package/lib/form/InputDate/InputDate.interface.d.ts +12 -0
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/InputSelect.interface.d.ts +11 -0
- package/lib/form/InputSelect/InputSelect.style.d.ts +5 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Option/index.esm.js +1 -1
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +31 -19
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/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/DefaultLayout.props.d.ts +10 -5
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +17 -9
- package/lib/layouts/DefaultLayout/index.d.ts +2 -1
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.props.d.ts +18 -8
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +22 -13
- package/lib/layouts/SideBarLayout/index.d.ts +2 -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/lib/vendors/FloatingUI/index.d.ts +1 -0
- package/lib/vendors/FloatingUI/origin.d.ts +18 -0
- package/package.json +2 -2
- package/lib/chunks/Dropdown.floating-LUGBBHPK.esm.js +0 -1
- package/lib/chunks/Tooltip.floating-X5XZSZ2I.esm.js +0 -1
- package/lib/chunks/chunk-2E56GHZG.esm.js +0 -1
- package/lib/chunks/chunk-3437GMP7.esm.js +0 -1
- package/lib/chunks/chunk-3R2MJA2X.esm.js +0 -1
- package/lib/chunks/chunk-6HPOOHYI.esm.js +0 -1
- package/lib/chunks/chunk-74AODEHL.esm.js +0 -1
- package/lib/chunks/chunk-A4A5GN53.esm.js +0 -1
- package/lib/chunks/chunk-CSBTMK6G.esm.js +0 -1
- package/lib/chunks/chunk-D75HJH24.esm.js +0 -1
- package/lib/chunks/chunk-K2QIMPT3.esm.js +0 -1
- package/lib/chunks/chunk-KITEZ7OW.esm.js +0 -1
- package/lib/chunks/chunk-RQZ3NB7A.esm.js +0 -1
- package/lib/chunks/chunk-UXUJNLR7.esm.js +0 -3
- package/lib/chunks/chunk-XUJF6HTG.esm.js +0 -5
- package/lib/chunks/chunk-ZZ5EX7HG.esm.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as d,c as m,d as p,e as c,f as g,g as f,h as u,j as P,k as F,l as h,m as w,n as y,o as b}from"./chunk-3437GMP7.esm.js";import{g as a}from"./chunk-L7A7RA56.esm.js";import{a as l}from"./chunk-64VNULOI.esm.js";import"./chunk-TQMP7PZI.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-AULAOFBW.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-IN2WB2ZK.esm.js";import"./chunk-FOWO4QTS.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-XR763B4T.esm.js";import"./chunk-47UE4K3O.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QEB4VTKV.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-EJ245MA7.esm.js";import"./chunk-FNYS25ZX.esm.js";import"./chunk-MYU2IAR3.esm.js";import"./chunk-VJ5GIFXO.esm.js";import"./chunk-REPFMEFA.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import{f as s}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{jsx as e}from"react/jsx-runtime";var z={left:"bottom-start",right:"bottom-end",center:"bottom"},K=t(({referenceEl:n,open:r,onClose:x,position:D,hoverable:v,role:M,width:R,motion:C,children:I})=>{let E=s(),i=b(n,r),{refs:H,floatingStyles:L,context:o}=F({open:r,strategy:i.strategy,onOpenChange:t(T=>{T||x()},"onOpenChange"),placement:z[D],middleware:[g(4),m(),u({padding:8})],whileElementsMounted:d,elements:{reference:n}}),{getFloatingProps:O}=w([h(o,{enabled:v,mouseOnly:!0,move:!1,handleClose:f()}),P(o,{outsidePress:!0,escapeKey:!0}),y(o,{role:M})]);return e(c,{root:i.root,children:e(p,{context:o,modal:!1,initialFocus:-1,children:e("div",{ref:H.setFloating,style:{...L,zIndex:a(E).dropdown},...O(),children:e(l,{p:"xs",borderRadius:"xs",deep:2,width:R,motion:C,children:I})})})})},"DropdownFloating"),k=K;export{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u,b as f,c as g,e as w,f as y,h,j as x,k as b,m as F,n as P,o as T}from"./chunk-3437GMP7.esm.js";import{a as R,b as v}from"./chunk-4XCYWJYX.esm.js";import{g as c}from"./chunk-L7A7RA56.esm.js";import"./chunk-TQMP7PZI.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-AULAOFBW.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-IN2WB2ZK.esm.js";import"./chunk-FOWO4QTS.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-XR763B4T.esm.js";import"./chunk-47UE4K3O.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QEB4VTKV.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-EJ245MA7.esm.js";import"./chunk-FNYS25ZX.esm.js";import"./chunk-MYU2IAR3.esm.js";import"./chunk-VJ5GIFXO.esm.js";import"./chunk-REPFMEFA.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import{f as m}from"./chunk-AXUWC2WH.esm.js";import{a as d}from"./chunk-GZONWSRB.esm.js";import K from"react";import{jsx as D,jsxs as O}from"react/jsx-runtime";var N=d(({referenceEl:e,open:t,onOpenChange:I,position:C,inverted:E,noArrow:L,content:M,tooltipId:A})=>{var s,p;let o=K.useRef(null),n=T(e,t),{refs:H,floatingStyles:S,context:r,placement:$,middlewareData:l}=b({open:t,strategy:n.strategy,onOpenChange:I,placement:C,middleware:[y(8),g(),h({padding:4}),u({element:o})],whileElementsMounted:f,elements:{reference:e}}),{getFloatingProps:k}=F([x(r,{outsidePress:!0,escapeKey:!0}),P(r,{role:"tooltip"})]),z=m(),a=(s=l.arrow)==null?void 0:s.x,i=(p=l.arrow)==null?void 0:p.y;return D(w,{root:n.root,children:O(v,{ref:H.setFloating,id:A,inverted:E,deep:2,p:"xs",borderRadius:"xs","data-placement":$,style:{...S,zIndex:c(z).dropdown},...k(),children:[M,!L&&D(R,{ref:o,style:{left:a!=null?`${a}px`:"",top:i!=null?`${i}px`:""}})]})})},"TooltipFloating"),B=N;export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as D}from"./chunk-ZOO4TDFX.esm.js";import{a as E}from"./chunk-BE2JDTVA.esm.js";import{d as p}from"./chunk-6G22RNUO.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import N,{lazy as H,Suspense as S,useCallback as z,useEffect as A,useState as T}from"react";import{Fragment as B,jsx as c,jsxs as I}from"react/jsx-runtime";var W=H(()=>import("./Dropdown.floating-LUGBBHPK.esm.js")),b=t(({children:s,options:e,content:o,hoverable:d=!1,position:C="left",width:i,full:g,motion:P="scale"})=>{if(!e&&!o)throw new Error('Dropdown deve receber "content" ou "options" props');let m=p(s),u=e?"menu":"dialog",[r,v]=T(null),[y,k]=T(),{active:n,enable:f,disable:R,toggle:w}=E(!1),x=z(a=>v(a),[]);A(()=>{g&&r&&k(r.getBoundingClientRect().width)},[g,r]);let F=t(()=>{let a=m?s({isOpen:n,open:f,toggle:w}):s,l={ref:x,"aria-haspopup":u,"aria-expanded":n};return m||(l.onClick=w),d&&(l.onPointerEnter=M=>{M.pointerType==="mouse"&&f()}),N.cloneElement(a,l)},"renderTrigger"),L=t(()=>Array.isArray(e)?c(D,{gap:"zero",color:"primary.action",exclusive:!0,content:e}):p(o)?o({close:R}):o,"renderMenuContent");return I(B,{children:[F(),n&&c(S,{fallback:null,children:c(W,{referenceEl:r,open:n,onClose:R,position:C,hoverable:d,role:u,width:i!=null?i:y,motion:P,children:L()})})]})},"DropdownComponent");b.displayName="Dropdown";export{b as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-J6F4PMW4.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{arrow as m,autoUpdate as d,flip as c,FloatingFocusManager as y,FloatingPortal as F,offset as L,safePolygon as p,shift as E,useClick as D,useDismiss as M,useFloating as O,useFocus as b,useHover as h,useInteractions as x,useRole as A}from"@floating-ui/react";import{useEffect as a}from"react";var i={root:void 0,strategy:"absolute"},s={root:null,strategy:"absolute"},l='dialog[open], [aria-modal="true"]';function u(e){if(!e)return s;let t=e.closest(l);return t?{root:t,strategy:"fixed"}:i}o(u,"getFloatingLayer");function w(e,t){return a(()=>{if(!t||e)return;let r=setTimeout(()=>{n.warn("[apollion] A floating layer is open but its reference element never mounted, so it renders nothing. Make sure the trigger forwards its ref to a DOM element.")},0);return()=>clearTimeout(r)},[t,e]),u(e)}o(w,"useFloatingLayer");export{m as a,d as b,c,y as d,F as e,L as f,p as g,E as h,D as i,M as j,O as k,h as l,x as m,A as n,w as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as B,b as K,c as N}from"./chunk-IMS5TWF3.esm.js";import{a as A}from"./chunk-6HPOOHYI.esm.js";import{a as M,b as F}from"./chunk-FMNMEPTI.esm.js";import{f as W}from"./chunk-HSKYQ6VP.esm.js";import{c as O}from"./chunk-KZTG5TDM.esm.js";import{a as G}from"./chunk-BE2JDTVA.esm.js";import{a as _}from"./chunk-P3SIJHYM.esm.js";import{b as D}from"./chunk-SRBIATLE.esm.js";import{ja as V}from"./chunk-TVJXEJLN.esm.js";import{f as E}from"./chunk-7MX2FUN4.esm.js";import{a as H,e as P}from"./chunk-EU4FKCQL.esm.js";import{g as k}from"./chunk-L7A7RA56.esm.js";import{a as L}from"./chunk-2Z3UZIWZ.esm.js";import{a as C}from"./chunk-LSLBDF5M.esm.js";import{a as u}from"./chunk-TQMP7PZI.esm.js";import{a as R}from"./chunk-J6F4PMW4.esm.js";import{c as S}from"./chunk-G5Z7USXC.esm.js";import{b as y,g as c}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var co=y(["width:",";"],K);function mo({size:o}){var n;let e=(n=B[o!=null?o:"base"])!=null?n:B.base;return y(["max-width:",";min-width:min(",",100%);"],e.max,e.min)}a(mo,"modalSize");function so({variant:o,theme:e}){let n=e.colors[o];return y(["--baseColor:",";--lightColor:",";--actionColor:",";"],n.base,n.light,n.action)}a(so,"modalVariantColor");var Q=c(u).attrs({p:"large",borderRadius:"md",bgColor:"surface.overlay"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],co,so,({theme:o})=>o.breakpoints.up("sm"),mo),U=c(C).withConfig({componentId:"sc-8jjm43-1"})(["max-height:",";overflow:hidden;"],N),X=c(C).withConfig({componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],H,M,M,M),Y=c(u).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overflow:hidden;"]),Z=c(u).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["display:flex;background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),$=c(u).withConfig({componentId:"sc-8jjm43-5"})(["z-index:",";display:flex;justify-content:center;align-items:center;position:fixed;inset:0;html:has(&){overflow:hidden;}"],({theme:o})=>k(o).modal),q=c(u).withConfig({componentId:"sc-8jjm43-6"})(["opacity:0.8;will-change:opacity;"]);import x,{cloneElement as fo,isValidElement as po,useEffect as uo,useRef as go,useState as Co}from"react";import{createPortal as ho}from"react-dom";import{Fragment as xo,jsx as r,jsxs as h}from"react/jsx-runtime";var z=a(({isOpen:o,onDismiss:e,...n})=>{if(!o&&!e)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[l,m]=Co(!1),i=go(null),{mounted:t,state:d,ref:s}=O(o!=null?o:!1);return uo(()=>{m(!0)},[]),_(i,{active:!!(o&&l&&t),onEscape:e}),!l||!S?null:ho(t?h($,{"data-testid":"modal-container",children:[r(q,{absoluteFill:!0,bgColor:"surface.scrim","data-testid":"modal-overlay",onClick:e,motion:"fade","data-state":d}),r(Mo,{ref:p=>{i.current=p,s(p)},motionState:d,onDismiss:e,...n})]}):null,S)},"ModalBaseComponent"),yo=a(({defaultOpen:o,trigger:e,isOpen:n,onDismiss:l,onModalOpen:m,...i})=>{let{active:t,disable:d,enable:s,toggle:p}=G(o,{onActive:m});return(n||l)&&R.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),h(xo,{children:[a(()=>{let f=null;if(typeof e=="function"&&(f=e({isOpen:t,open:s})),po(e)&&(f=fo(e,{onClick:p})),f===null)throw new Error('"trigger" prop is not a valid element');return f},"renderTrigger")(),r(z,{isOpen:t,onDismiss:d,...i})]})},"ModalTriggerVariant"),Mo=x.forwardRef(a(function({noCloseButton:e,primaryButton:n,secondaryButton:l,primaryText:m,secondaryText:i,onDismiss:t,primaryAction:d,secondaryAction:s,children:p,tagline:v,variant:f,footer:b,title:w,size:oo,icon:j,motionState:eo,closeLabel:to="Fechar",role:ro="dialog"},no){let{isMobile:I}=W(),T=x.useId(),ao=a(()=>{d({close:t})},"handlePrimary"),lo=a(()=>{s({close:t})},"handleSecondary"),io=a(()=>{let g={onClick:ao,fullWidth:b==="full"||I,"data-testid":"modal-confirm-button"};return n?x.cloneElement(n,g):r(E,{color:f,...g,children:m})},"renderPrimaryButton");return r(Q,{ref:no,role:ro,"aria-modal":"true","aria-labelledby":w?T:void 0,tabIndex:-1,size:oo,variant:f,motion:"sheet","data-state":eo,children:h(U,{gap:"medium",children:[h(X,{gap:"xs",children:[r(L,{opener:j&&r(Z,{justifyContent:"center",alignItems:"center",p:"micro",children:j}),closer:!e&&r(F,{onClick:t,"data-testid":"modal-close-button","aria-label":to,icon:r(D,{icon:V}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"}),children:w&&r(P,{id:T,variant:"h4",area:"title",color:"ink.primary",text:w})}),v&&r(P,{variant:"meta",color:"secondary.dark",area:"tagline",children:v})]}),r(Y,{py:"medium",children:r(A,{overscroll:"contain",children:p})}),(d||s)&&h(C,{flexDirection:I?"column-reverse":"row",justifyContent:b==="expanded"?"between":"end",gap:"medium",children:[s&&a(()=>{if(b==="full")return null;let g={onClick:lo,fullWidth:I,"data-testid":"modal-cancel-button"};return typeof l=="function"?l({close:a(()=>t==null?void 0:t(),"close")}):l?x.cloneElement(l,g):r(E,{variant:"outlined",color:"secondary",...g,children:i})},"renderSecondaryButton")(),d&&io()]})]})})},"ModalDialog")),J=a(({noCloseButton:o=!1,secondaryText:e="Cancelar",primaryText:n="Confirmar",variant:l="primary",footer:m="right",...i})=>{let t={noCloseButton:o,secondaryText:e,primaryText:n,variant:l,footer:m,...i};return t!=null&&t.trigger?r(yo,{...t}):r(z,{...t})},"ModalComponent");J.displayName="Modal";export{Q as a,U as b,X as c,Y as d,Z as e,$ as f,q as g,J as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as S,c as W}from"./chunk-TQMP7PZI.esm.js";import{b as a}from"./chunk-G5Z7USXC.esm.js";import{g as v}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as it,useCallback as E,useEffect as j,useLayoutEffect as rt,useRef as m}from"react";var R=v.div.withConfig({componentId:"sc-wsu612-0"})(["position:absolute;top:0;left:0;border-radius:999px;background:",";opacity:0.55;cursor:pointer;touch-action:none;transition:opacity var(--apollion-motion-duration-150,150ms) var(--apollion-motion-easing-standard,ease);&:hover,[data-dragging='true'] > &{opacity:0.85;}"],({theme:n})=>n.colors.ink.muted),l=v.div.withConfig({componentId:"sc-wsu612-1"})(["position:absolute;z-index:1;opacity:0;user-select:none;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));&[data-active='false']{display:none;}&[data-axis='y']{top:2px;right:2px;bottom:2px;width:8px;& > ","{width:100%;}}&[data-axis='x']{right:2px;bottom:2px;left:2px;height:8px;& > ","{height:100%;}}"],R,R),X=v(S).withConfig({componentId:"sc-wsu612-2"})(["flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box;scrollbar-width:none;-webkit-overflow-scrolling:touch;&::-webkit-scrollbar{display:none;width:0;height:0;}&[data-axis='y']{overflow-x:hidden;overflow-y:auto;}&[data-axis='x']{overflow-x:auto;overflow-y:hidden;}&[data-axis='both']{overflow:auto;}&[data-overscroll='contain']{overscroll-behavior:contain;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}"],({theme:n})=>n.colors.ink.primary),Y=v.div.withConfig({componentId:"sc-wsu612-3"})(["display:flow-root;&[data-axis='x'],&[data-axis='both']{width:fit-content;min-width:100%;}"]),$=v(S).attrs(({display:n})=>({display:n!=null?n:"flex"})).withConfig({componentId:"sc-wsu612-4"})([""," position:relative;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:hidden;&:hover > ",",&:focus-within > ",",&[data-scrolling='true'] > ",",& > ","[data-dragging='true']{opacity:1;transition-timing-function:var(--apollion-motion-easing-enter,cubic-bezier(0,0,0.2,1));}&[data-thumb='always'] > ","{opacity:1;}&[data-axis='both'] > ","[data-axis='y']{bottom:12px;}&[data-axis='both'] > ","[data-axis='x']{right:12px;}"],W("flex"),l,l,l,l,l,l,l);import{jsx as M,jsxs as ut}from"react/jsx-runtime";var at=24,ct=800,st=a?rt:j,B=c((n,r)=>r==="y"?{client:n.clientHeight,size:n.scrollHeight,position:n.scrollTop}:{client:n.clientWidth,size:n.scrollWidth,position:n.scrollLeft},"metrics"),_=c((n,r)=>r==="y"?n.clientHeight:n.clientWidth,"railLength"),U=c((n,r,x)=>Math.min(x,Math.max(at,n/r*x)),"thumbLength"),q=c(n=>n==="both"?["y","x"]:[n],"axesOf"),G=c((n,r)=>{typeof n=="function"?n(r):n&&(n.current=r)},"assignRef"),lt=it(({children:n,onScroll:r,scrollableRef:x,scrollerProps:J,axis:p="y",thumb:K="auto",overscroll:Q="auto",...V},k)=>{let N=m(null),g=m(null),P=m(null),H=m({}),C=m({}),I=m(0),z=m(void 0),Z=E(t=>{N.current=t,G(k,t)},[k]),tt=E(t=>{g.current=t,G(x,t)},[x]),L=E(()=>{let t=g.current;t&&q(p).forEach(e=>{let o=H.current[e],i=C.current[e];if(!o||!i)return;let{client:s,size:u,position:f}=B(t,e),y=u-s>1;if(o.dataset.active=String(y),!y)return;let b=_(o,e),w=U(s,u,b),T=f/(u-s)*(b-w);i.style[e==="y"?"height":"width"]=`${w}px`,i.style.transform=e==="y"?`translateY(${T}px)`:`translateX(${T}px)`})},[p]),d=E(()=>{a&&(a.cancelAnimationFrame(I.current),I.current=a.requestAnimationFrame(L))},[L]);st(()=>{L()},[L,n]),j(()=>{if(!a)return;let t=[g.current,P.current].filter(o=>!!o),e=typeof ResizeObserver=="undefined"?void 0:new ResizeObserver(d);return t.forEach(o=>e==null?void 0:e.observe(o)),a.addEventListener("resize",d),()=>{var o,i;e==null||e.disconnect(),(o=a)==null||o.removeEventListener("resize",d),(i=a)==null||i.cancelAnimationFrame(I.current),clearTimeout(z.current)}},[d]);let et=E(t=>{r==null||r(t),d();let e=N.current;e&&(e.dataset.scrolling="true",clearTimeout(z.current),z.current=setTimeout(()=>{e.dataset.scrolling="false"},ct))},[r,d]),nt=c(t=>e=>{let o=g.current,i=H.current[t];if(!o||!i||!a||e.button>0)return;e.preventDefault(),e.stopPropagation();let{client:s,size:u,position:f}=B(o,t),y=_(i,t),b=y-U(s,u,y),w=b>0?(u-s)/b:0,T=t==="y"?e.clientY:e.clientX,h=a;i.dataset.dragging="true";let A=c(F=>{let O=(t==="y"?F.clientY:F.clientX)-T;t==="y"?o.scrollTop=f+O*w:o.scrollLeft=f+O*w},"move"),D=c(()=>{i.dataset.dragging="false",h.removeEventListener("pointermove",A),h.removeEventListener("pointerup",D),h.removeEventListener("pointercancel",D)},"stop");h.addEventListener("pointermove",A),h.addEventListener("pointerup",D),h.addEventListener("pointercancel",D)},"startDrag"),ot=c(t=>e=>{let o=g.current,i=C.current[t];if(!o||!i||e.button>0)return;let s=i.getBoundingClientRect(),u=t==="y"?e.clientY<s.top:e.clientX<s.left,f=(t==="y"?o.clientHeight:o.clientWidth)*(u?-1:1);t==="y"?o.scrollTop+=f:o.scrollLeft+=f},"pageTowards");return ut($,{...V,ref:Z,"data-axis":p,"data-thumb":K,children:[M(X,{...J,ref:tt,"data-axis":p,"data-overscroll":Q,tabIndex:0,onScroll:et,children:M(Y,{ref:P,"data-axis":p,children:n})}),q(p).map(t=>M(l,{ref:e=>{H.current[t]=e},"data-axis":t,"data-active":"false","aria-hidden":"true",onPointerDown:ot(t),children:M(R,{ref:e=>{C.current[t]=e},onPointerDown:nt(t)})},t))]})});lt.displayName="CustomScroll";export{lt as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as se}from"./chunk-6HPOOHYI.esm.js";import{f as de}from"./chunk-Q3FUXFD5.esm.js";import{a as le,c as j}from"./chunk-ZZ5EX7HG.esm.js";import{a as Y,b as ee}from"./chunk-FMNMEPTI.esm.js";import{a as ie}from"./chunk-A3OJEVGQ.esm.js";import{b as oe}from"./chunk-KR2X2UQG.esm.js";import{a as te}from"./chunk-BE2JDTVA.esm.js";import{b as O}from"./chunk-SRBIATLE.esm.js";import{b as J}from"./chunk-BTPOCQ2L.esm.js";import{J as ne,K as re,ja as ae,ma as B}from"./chunk-TVJXEJLN.esm.js";import{f as Q}from"./chunk-7MX2FUN4.esm.js";import{e as I}from"./chunk-EU4FKCQL.esm.js";import{b as X}from"./chunk-D6OVUFOQ.esm.js";import{a as k}from"./chunk-LCCVFIPZ.esm.js";import{a as v}from"./chunk-LSLBDF5M.esm.js";import{a as U}from"./chunk-TQMP7PZI.esm.js";import{e as K}from"./chunk-QXV2TDLZ.esm.js";import{l as V}from"./chunk-6G22RNUO.esm.js";import{g as h}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var me=i(({theme:e,readOnly:t,disabled:o,active:r})=>{if(t||o)return null;let c=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:r?c:"transparent","&:hover":{borderColor:c}}},"activeStyle"),ce=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),pe=h(U).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],me,ce),N=h(U).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),q=h(U).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),D=h(j).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),fe=h(se).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],D,({theme:e})=>e.spacing("xs"),D,D,({theme:e})=>e.spacing("medium")),ue=h(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ge=h(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),z=h(U).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:",";height:",";font-size:",";color:",";"],({theme:e})=>k(e,8),({theme:e})=>k(e,8),({theme:e})=>k(e,6.4),({theme:e})=>e.colors.primary.base),Fe=h(U).withConfig({componentId:"sc-1erdx9t-8"})(["display:grid;"," "," ",""],le,me,ce),Ce=h(U).withConfig({componentId:"sc-1erdx9t-9"})(["display:flex;flex-direction:column;"]),xe=h(j).withConfig({componentId:"sc-1erdx9t-10"})(["",""],K({flex:"fluid"}));import{forwardRef as Me,useCallback as He,useEffect as We,useImperativeHandle as Ge,useRef as Ze,useState as _e}from"react";function $(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i($,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(c=>c.size<=o)}i(M,"filterFiles");function H(e){return e.map(t=>({id:X(),file:t,fileName:t.name,fileSize:$(t.size)}))}i(H,"convertFileToFileItem");function ye(e){let{fieldName:t,file:o,requestConfig:r}=e,{endpoint:c,timeout:b,auth:u,params:F,withCredentials:m,responseType:d,headers:f,formDataParams:s}=r;return new Promise((p,y)=>{let a=new XMLHttpRequest;a.timeout=b;let C=new FormData;C.append(t,o,o.name),s&&s.forEach(l=>{C.append(l.key,l.value)});let R=new URL(c);if(F&&Object.keys(F).forEach(l=>{R.searchParams.append(l,F[l])}),a.open("post",R.href),"setRequestHeader"in a){let l={...f};if(u){let g=u.username||"",w=unescape(encodeURIComponent(u.password))||"",L=`${g}:${w}`;l.Authorization=`Basic ${btoa(L)}`}Object.keys(l).forEach(g=>{let w=l[g];w!==void 0&&a.setRequestHeader(g,w)})}m!==void 0&&(a.withCredentials=!!m),a.responseType=d||"json";let P=0;a.upload.addEventListener("progress",l=>{e.onProgress&&(P=l.loaded,e.onProgress(l.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 l={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(P,!0,l),p(l),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(P,!1),y(),a=null},a.send(C)})}i(ye,"uploadFile");import{useEffect as Ve,useState as je}from"react";function he(e,t){let[o,r]=je(null);return Ve(()=>{let c="";return e&&t&&t(e)&&(c=URL.createObjectURL(e),r(c)),()=>{URL.revokeObjectURL(c)}},[e,t]),o}i(he,"useObjectUrl");import{Fragment as qe,jsx as n,jsxs as x}from"react/jsx-runtime";function be(e){let{disabled:t,acceptLabel:o,isDragging:r,events:c,files:b,removeFile:u,removeFileLabel:F,openFileDialogButton:m,readOnly:d,style:f,className:s,inputFile:p}=e,y=b.length>0,a=y&&n(fe,{children:n(v,{flexDirection:"column",p:"large",children:b.map(C=>n(Ie,{removeFile:u,removeFileLabel:F,readOnly:d,...C},C.id))})});return x(pe,{...c,style:f,className:s,active:r,disabled:t,readOnly:d,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[p,x(v,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[x(Ce,{gap:"small",flex:"fluid",cq:y?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[x(v,{gap:"xs",alignItems:"center",children:[n(O,{icon:B,size:16,color:d||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!d&&x(qe,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),m]})]}),a]}),r&&x(N,{absoluteFill:!0,children:[n(q,{absoluteFill:!0,bgColor:"surface.paper"}),x(v,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(O,{icon:B,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(be,"UploadCardRegular");function ve(e){let{disabled:t,isDragging:o,events:r,files:c,removeFile:b,removeFileLabel:u,style:F,className:m,readOnly:d,openFileDialogButton:f,inputFile:s}=e;return x(Fe,{...r,style:F,className:m,active:o,disabled:t,readOnly:d,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[s,n(v,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:f}),n(xe,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:c.map(p=>n(Ie,{removeFile:b,removeFileLabel:u,readOnly:d,...p},p.id))}),o&&x(N,{children:[n(q,{}),x(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(O,{icon:B,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(ve,"UploadCardCompact");function Ie({removeFile:e,removeFileLabel:t="Remover arquivo",readOnly:o,...r}){let c=r.uploadLoaded?`${r.uploadLoaded} de`:"";return x(D,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ne,{...r}),x(v,{children:[x(v,{flexDirection:"row",justifyContent:"between",children:[n(ue,{variant:"meta",children:n("b",{children:r.fileName})}),!o&&n(ee,{onClick:()=>e(r.id),icon:n(O,{icon:ae}),label:`${t} ${r.fileName}`,variant:"linked"})]}),r.uploadPercentage&&n(ge,{style:{backgroundSize:r.uploadPercentage}}),x(v,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${r.fileSize}`}),r.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${r.uploadPercentage}`})]})]})]})}i(Ie,"FileItemComponent");function Ne({file:e}){let t=he(e,o=>o.type.startsWith("image"));return t?n(z,{children:n(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(z,{children:n(O,{icon:re})}):n(z,{children:n(O,{icon:ne})})}i(Ne,"Preview");import{useState as $e}from"react";function Pe(e){let[t,o]=$e({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(m=>{var p;let d=M(m,e.maxSize),s={files:H(d),type:"ADD_INITIAL_FILES"};(p=e.onChange)==null||p.call(e,s),o(s)},"setInitialFiles"),removeFile:i(m=>{var f;let d={type:"REMOVE",files:t.files.filter(s=>s.id!==m),payload:t.files.find(s=>s.id===m)};(f=e.onChange)==null||f.call(e,d),o(d)},"removeFile"),removeAll:i(()=>{var d;let m={files:[],type:"REMOVE"};(d=e.onChange)==null||d.call(e,m),o(m)},"removeAll"),addFiles:i(m=>{var y;let d=M(m,e.maxSize),f=H(d),s=[...t.files,...f],p={files:s,type:"ADD",payload:f};e.single&&(s=f,p={files:s,type:"REPLACE",payload:s[0]}),(y=e.onChange)==null||y.call(e,p),o(p)},"addFiles"),updateFileProgress:i((m,d,f,s)=>{var l;let p=t.files.find(g=>g.id===m),y=i(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:s||void 0}),"uploadResponse"),C={...p,...d!==void 0?i(()=>({uploadLoaded:$(d),uploadPercentage:`${Math.min(d/p.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?y():{}},P={files:t.files.map(g=>g.id===C.id?C:g),type:"UPDATE",payload:C};(l=e.onChange)==null||l.call(e,P),o(P)},"updateFileProgress")}}i(Pe,"useFileState");import{jsx as A}from"react/jsx-runtime";var Ke=Me((e,t)=>{let{accept:o,maxSize:r,singleFile:c,uploadConfig:b,onUnsupportedFile:u,customButton:F,style:m,className:d,onChange:f,initialFiles:s,name:p}=e,[y,a]=_e(!1),{active:C,enable:R,disable:P}=te(),{files:l,setInitialFiles:g,addFiles:w,removeFile:L,removeAll:Ue,updateFileProgress:W}=Pe({single:c,maxSize:r,onChange:f}),{getFiles:Se}=ie({accept:o,single:c,onFilesSelect:w,onUnsupportedFile:u}),{isDragging:G,events:Oe}=oe({accept:o,single:c,onDrop:w});We(()=>{let S=Array.isArray(s)?s.length>0:!!s;!y&&!l.files.length&&S&&(a(!0),g(s))},[y,a,s,g,l.files]);let Re=He(async S=>{if(l.files.length){R();let Le=l.files.map(({id:ke,file:Be})=>ye({file:Be,fieldName:S.formDataFileKey||"file",requestConfig:{...b,...S},onProgress:i((ze,Ae,Ee)=>{W(ke,ze,Ae,Ee)},"onProgress")})),Te=await Promise.all(Le);return P(),Te}return[]},[l.files,b,R,W,P]);Ge(t,()=>({submit:Re,addFiles:w,removeFile:L,removeAll:Ue,files:l.files}));let T=Ze(null),E=i(()=>{var S;(S=T==null?void 0:T.current)==null||S.click()},"openFileDialog"),De=F?F({files:l.files,isDragging:G,openFileDialog:E,isSubmitting:C}):A(Q,{onClick:E,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||C,isLoading:C,type:"button",children:e.buttonText||"Enviar arquivos"}),Z={...e,...!e.readOnly&&{events:Oe,isDragging:G},files:l.files,style:m,className:d,removeFile:L,openFileDialog:E,openFileDialogButton:De,name:p},_=A(de,{type:"file",isHidden:!0,position:"absolute",name:p,id:p,ref:T,onChange:Se,multiple:!c,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?A(ve,{...Z,inputFile:_}):A(be,{...Z,inputFile:_})});Ke.displayName="UploadCard";import{useCallback as Xe,useState as we}from"react";var Ht=i(()=>{let[e,t]=we([]),[o,r]=we([]);return{onFilesChange:Xe(u=>{if(!u.payload)return;let{payload:F}=u;u.type==="ADD"?r(m=>V(m,F)):u.type==="REMOVE"&&t(m=>V(m,F))},[]),removedFiles:e,addedFiles:o,clear:i(u=>{u==="removedFiles"&&t([]),u==="addedFiles"&&r([])},"clear")}},"useFileControl");export{pe as a,N as b,q as c,D as d,fe as e,ue as f,ge as g,z as h,Fe as i,Ce as j,xe as k,Ke as l,Ht as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as g}from"./chunk-7MX2FUN4.esm.js";import{a as k}from"./chunk-EU4FKCQL.esm.js";import{a}from"./chunk-LSLBDF5M.esm.js";import{a as y}from"./chunk-EJ245MA7.esm.js";import{k as d}from"./chunk-REPFMEFA.esm.js";import{g as x}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as P,useRef as K}from"react";var B=x(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=x(g).attrs(t=>{var e,i;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(i=t.borderWidth)!=null?i:"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;}&&&:focus-visible{outline:2px solid ",";outline-offset:-2px;}"],({isActive:t,theme:e,color:i})=>t?y(e,b=>d(b.colors[i],"base")):"transparent",({theme:t})=>t.animation.transitions.short,({theme:t,color:e="primary"})=>y(t,i=>d(i.colors[e],"base")));import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:i="primary",buttonProps:b}){return f(S,{as:"button",variant:"linked",isActive:t,color:i,...b,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:i,tabHeaderProps:b,tabContentProps:H,...D},R)=>{var I;let T=L(),m=P(()=>i.map((o,n)=>({...o,id:`${T}-${n}`})),[i,T]),h=K(null),A=l(o=>t===o,"isCurrentIndex"),w=l(o=>`tab-${o}`,"tabId"),v=l(o=>`tabpanel-${o}`,"panelId"),s=(I=m[t])!=null?I:m[0],E=l(o=>{var r,p;e==null||e(o);let n=(r=h.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=n==null?void 0:n[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...b,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let n=m.length-1,r=null;o.key==="ArrowRight"?r=t>=n?0:t+1:o.key==="ArrowLeft"?r=t<=0?n:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=n),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:h,children:m.map(({id:o,buttonProps:n,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...n,id:w(o),role:"tab","aria-selected":u,"aria-controls":v(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?v(s.id):void 0,"aria-labelledby":s?w(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 +0,0 @@
|
|
|
1
|
-
import{b as S,c as H,d as k,e as O,f as D,h as K,i as A,j as C,k as z,m as _,n as j,o as B}from"./chunk-3437GMP7.esm.js";import{b as c,c as N,d as U,e as Z,f as q}from"./chunk-XKACWIWC.esm.js";import{h as L}from"./chunk-Q3FUXFD5.esm.js";import{b as R}from"./chunk-SRBIATLE.esm.js";import{n as x}from"./chunk-TVJXEJLN.esm.js";import{g as T}from"./chunk-L7A7RA56.esm.js";import{a as F}from"./chunk-64VNULOI.esm.js";import{f as P}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{forwardRef as ae,useMemo as m,useState as J}from"react";function G(e,n){let i={value:n,name:e!=null?e:"",type:"text"};return{target:i,currentTarget:i,type:"change",bubbles:!0,cancelable:!0,defaultPrevented:!1,isDefaultPrevented:t(()=>!1,"isDefaultPrevented"),isPropagationStopped:t(()=>!1,"isPropagationStopped"),isTrusted:!1,persist:t(()=>{},"persist"),preventDefault:t(()=>{},"preventDefault"),stopPropagation:t(()=>{},"stopPropagation"),timeStamp:Date.now(),nativeEvent:{target:i},eventPhase:0}}t(G,"buildSyntheticEvent");import{Fragment as ue,jsx as a,jsxs as de}from"react/jsx-runtime";var se="yyyy-MM-dd";function pe(e){if(!e)return;let n=U(e);return N(n)?n:void 0}t(pe,"toDate");function le(e,n,i){let o=[];if(n&&o.push({before:n}),i&&o.push({after:i}),e&&o.push(...Array.isArray(e)?e:[e]),o.length!==0)return o.length===1?o[0]:o}t(le,"resolveDisabled");var Q=ae(({value:e,onChange:n,onValueChange:i,locale:o=Z,minDate:s,maxDate:p,disabledDates:h,displayFormat:y="dd/MM/yyyy",name:g,placeholder:W,disabled:M,readOnly:I,...X},u)=>{let[f,v]=J(!1),Y=P(),l=m(()=>pe(e),[e]),$=m(()=>l?c(l,y,{locale:o}):"",[l,y,o]),V=m(()=>le(h,s,p),[h,s,p]),[E,ee]=J(null),b=B(E,f),{floatingStyles:te,context:d,refs:ne}=z({open:f,onOpenChange:v,strategy:b.strategy,elements:{reference:E},placement:"bottom-start",middleware:[D(4),H(),K({padding:8})],whileElementsMounted:S}),{getReferenceProps:oe,getFloatingProps:re}=_([A(d,{enabled:!M&&!I}),C(d,{outsidePress:!0,escapeKey:!0}),j(d,{role:"dialog"})]),ie=t(r=>{if(!r)return;let w=c(r,se);i==null||i(w),n==null||n(G(g,w)),v(!1)},"handleSelect");return de(ue,{children:[a(L,{...X,ref:r=>{typeof u=="function"?u(r):u&&(u.current=r),ee(r)},type:"text",role:"combobox",disabled:M,readOnly:I,name:g,placeholder:W,value:$,onChange:t(r=>{},"handleInputChange"),inputMode:"none",autoComplete:"off",icon:a(R,{icon:x}),iconPosition:"right",...oe({onKeyDown:t(r=>{r.key.length===1&&r.key!==" "&&r.preventDefault()},"handleKeyDown")})}),f&&a(O,{root:b.root,children:a(k,{context:d,modal:!1,initialFocus:-1,children:a("div",{ref:ne.setFloating,style:{...te,zIndex:T(Y).dropdown},...re(),children:a(F,{p:"xs",borderRadius:"xs",deep:3,children:a(q,{mode:"single",selected:l,onSelect:ie,locale:o,defaultMonth:l,disabled:V,captionLayout:"dropdown",startMonth:s!=null?s:new Date(1970,0,1),endMonth:p!=null?p:new Date(2100,11,31)})})})})})]})});Q.displayName="InputDate";export{Q as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-EU4FKCQL.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-X5XZSZ2I.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 +0,0 @@
|
|
|
1
|
-
import{c as G,d as V}from"./chunk-24CF72TV.esm.js";import{a as F}from"./chunk-RIDQQLK7.esm.js";import{a as O}from"./chunk-DVMAC4Z4.esm.js";import{b as q}from"./chunk-FMNMEPTI.esm.js";import{b as R}from"./chunk-SRBIATLE.esm.js";import{X as M,ja as A}from"./chunk-TVJXEJLN.esm.js";import{a as W}from"./chunk-TQMP7PZI.esm.js";import{e as L}from"./chunk-3WXII2F3.esm.js";import{a as D}from"./chunk-EJ245MA7.esm.js";import{b as p,g as u}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";import{forwardRef as te,useCallback as ie,useContext as ne,useId as re,useRef as le,useState as se}from"react";var g={medium:"2.75rem",small:"2rem"},_=a((e,o)=>o==="neutral"?e.colors.quiet:e.colors.primary,"chipPalette"),ee=a((e,o)=>D(e,i=>{var l,t;return(t=(l=i.colors).getContrastColor)==null?void 0:t.call(l,_(i,o).base)}),"onBaseInk"),oe=a(({$variant:e,$color:o,$selected:i,$disabled:l,theme:t})=>{let n=_(t,o);return l?p(["background:transparent;border-color:",";color:",";"],t.colors.edge.hairline,t.colors.disabled.color):e==="contained"?i?p(["background:",";border-color:",";color:",";"],n.base,n.base,ee(t,o)):p(["background:",";border-color:",";color:",";"],n.light,n.light,n.onLight):i?p(["background:",";border-color:",";color:",";"],n.light,n.base,n.onLight):p(["background:transparent;border-color:",";color:",";"],t.colors.edge.border,L(t.colors.ink.primary,"ink","primary"))},"surfaceCss"),J=u(W).withConfig({componentId:"sc-youeq7-0"})(["position:relative;display:inline-flex;flex-direction:row;align-items:stretch;box-sizing:border-box;min-width:0;max-width:",";vertical-align:middle;border:"," solid;border-radius:",";font-family:",";font-size:",";font-weight:",";line-height:",";transition:",";",""],({$maxWidth:e})=>e,({theme:e})=>e.border.borderWidth.thin,({theme:e})=>e.border.borderRadius.large,({$mono:e,theme:o})=>e?o.font.fontFamily.code:o.font.fontFamily.main,({theme:e})=>e.font.fontSize.xs,({$selected:e,theme:o})=>e?o.font.fontWeight.bold:o.font.fontWeight.regular,({theme:e})=>e.font.lineHeight.tight,({theme:e})=>e.animation.transitions.short,oe),C=u.span.withConfig({componentId:"sc-youeq7-1"})(["&&{display:inline-flex;flex:1 1 auto;align-items:center;gap:",";min-inline-size:",";min-block-size:",";box-sizing:border-box;margin:calc(-1 * ",") 0;padding-block:0;padding-inline:",";border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:",";outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;}",""],({$size:e,theme:o})=>o.spacing(e==="small"?"micro":"xs"),({$size:e,$interactive:o})=>o?g[e]:0,({$size:e})=>g[e],({theme:e})=>e.border.borderWidth.thin,({$size:e,$trailing:o,theme:i})=>i.spacing(e==="small"?"xs":"small",o?"micro":e==="small"?"xs":"small"),({$interactive:e})=>e?"pointer":"default",({$interactive:e,theme:o})=>e&&p(["&&:hover:not(:disabled){background:",";}&&:active:not(:disabled){background:",";}&&:focus-visible{outline:2px solid currentColor;outline-offset:-2px;}&&:disabled{cursor:default;}"],o.colors.wash.hover,o.colors.wash.pressed)),K=u.span.withConfig({componentId:"sc-youeq7-2"})(["display:inline-flex;flex:none;align-items:center;font-size:",";line-height:0;"],({$size:e,theme:o})=>o.font.fontSize[e==="small"?"xs":"small"]),Q=u.span.withConfig({componentId:"sc-youeq7-3"})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),T=u(q).withConfig({componentId:"sc-youeq7-4"})(["&&&{flex:none;box-sizing:border-box;inline-size:",";min-block-size:",";margin:calc(-1 * ",");margin-inline-start:0;padding:0;border:0;border-radius:",";color:inherit;font-size:",";touch-action:manipulation;}&&&:hover,&&&:active{color:inherit;}&&&:focus-visible{outline:2px solid currentColor;outline-offset:-2px;}&&&:disabled{background:transparent;color:inherit;}"],({$size:e})=>g[e],({$size:e})=>g[e],({theme:e})=>e.border.borderWidth.thin,({theme:e})=>e.border.borderRadius.large,({$size:e,theme:o})=>o.font.fontSize[e==="small"?"xs":"small"]);import{Fragment as ce,jsx as s,jsxs as U}from"react/jsx-runtime";function ae(e){let o=re(),i=ne(O),[l,t]=se(!1),n=le(null),c=e&&(i?i.openId===o:l),d=ie(r=>{r||(n.current=null),i?i.setOpenId(m=>r?o:m===o?null:m):t(r)},[i,o]);return{open:c,close:a(()=>d(!1),"close"),triggerProps:{"aria-expanded":c,onClick:a(()=>{if(c&&n.current==="hover"){n.current="press";return}if(c){d(!1);return}n.current="press",d(!0)},"onClick"),onPointerEnter:a(r=>{r.pointerType!=="mouse"||c||(n.current="hover",d(!0))},"onPointerEnter"),onPointerLeave:a(r=>{r.pointerType==="mouse"&&n.current==="hover"&&d(!1)},"onPointerLeave")}}}a(ae,"useDescription");var X=te((e,o)=>{let{label:i,description:l,size:t="medium",variant:n="outlined",color:c="primary",mono:d=!1,maxWidth:P="100%",disabled:r=!1,infoLabel:m,icon:E,status:y,statusLabel:H,onToggle:x,selected:v,onRemove:S,removeLabel:z,...Y}=e,f=l!==void 0&&l!=="",{open:Z,close:j,triggerProps:N}=ae(f&&!r),B=a(b=>f?s(F,{visible:Z,onDismiss:j,title:i,description:l!=null?l:"",position:"bottom",children:b}):b,"withDescription"),$=null;y!==void 0?$=s(G,{as:"span","aria-hidden":!0,$status:y,$size:t}):E&&($=s(K,{"aria-hidden":!0,$size:t,children:E}));let I=U(ce,{children:[$,s(Q,{title:f?void 0:i,children:i}),y!==void 0&&H&&s(V,{children:` ${H}`})]}),k=x!==void 0,w=S!==void 0||k&&f,h;return x?h=s(C,{as:"button",type:"button","aria-pressed":!!v,disabled:r,onClick:b=>x(!v,b),$size:t,$interactive:!0,$trailing:w,children:I}):f?h=B(s(C,{as:"button",type:"button",disabled:r,...N,$size:t,$interactive:!0,$trailing:w,children:I})):h=s(C,{$size:t,$interactive:!1,$trailing:w,children:I}),U(J,{...Y,as:"span",ref:o,$size:t,$variant:n,$color:c,$selected:!!(k&&v),$mono:d,$maxWidth:P,$disabled:r,children:[h,k&&f&&B(s(T,{type:"button",icon:s(R,{icon:M}),label:m!=null?m:`About ${i}`,variant:"ghost",color:"neutral",size:"small",disabled:r,...N,$size:t})),S&&s(T,{type:"button",icon:s(R,{icon:A}),label:z!=null?z:`Remove ${i}`,variant:"ghost",color:"neutral",size:"small",disabled:r,onClick:S,$size:t})]})});X.displayName="Chip";export{g as a,J as b,C as c,K as d,Q as e,T as f,X as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me}from"./chunk-2FQC32AA.esm.js";import{a as fe}from"./chunk-BE2JDTVA.esm.js";import{a as de}from"./chunk-E2U6IFPB.esm.js";import{g as ue}from"./chunk-L7A7RA56.esm.js";import{a as ce}from"./chunk-EJ245MA7.esm.js";import{c as ie,e as K,g as ae,h as se,o as le}from"./chunk-6G22RNUO.esm.js";import{a as ne}from"./chunk-J6F4PMW4.esm.js";import{f as pe}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var Ce=le((e,s)=>{var i;let l=(i=s.component.inputSelect.size[e!=null?e:"medium"])!=null?i:s.component.inputSelect.size.medium;return{padding:s.spacing(l.py,l.px),fontSize:s.font.fontSize[l.fontSize],...l.lineHeight!==void 0&&{lineHeight:s.font.lineHeight[l.lineHeight]},borderRadius:s.border.borderRadius[l.borderRadius],height:l.height}});function ge(e,s,l={}){var y,O,N,$,G,A,W,D,d,b,h,w,P,f,V,x;let i=(y=e.colors.baseDark)!=null?y:"#000",L=(O=e.colors.neutral)!=null?O:{},{defaultBorderColor:u,dark:S}=(()=>{var r,o,a,p,m,k,C,v,E,z,M,H;switch(s){case"error":return{dark:(o=(r=e.colors.danger)==null?void 0:r.dark)!=null?o:i,defaultBorderColor:(p=(a=e.colors.danger)==null?void 0:a.base)!=null?p:i};case"success":return{dark:(k=(m=e.colors.success)==null?void 0:m.dark)!=null?k:i,defaultBorderColor:(v=(C=e.colors.success)==null?void 0:C.base)!=null?v:i};default:return{dark:(z=(E=e.colors.primary)==null?void 0:E.dark)!=null?z:i,defaultBorderColor:(H=(M=e.colors.edge)==null?void 0:M.border)!=null?H:i}}})(),c=($=(N=e.colors.ink)==null?void 0:N.muted)!=null?$:i,B=(A=(G=e.colors.wash)==null?void 0:G.hover)!=null?A:i,F=s==="error"?(D=(W=e.colors.danger)==null?void 0:W.base)!=null?D:i:s==="success"?(b=(d=e.colors.success)==null?void 0:d.base)!=null?b:i:(w=(h=e.colors.primary)==null?void 0:h.base)!=null?w:i,R=e.colors.disabled.color,I=e.colors.disabled.fill,Y=e.colors.muted,Z=(f=(P=e.colors.ink)==null?void 0:P.secondary)!=null?f:i,q=(x=(V=e.colors.ink)==null?void 0:V.secondary)!=null?x:i,J=e.spacing("small"),g=e.spacing("micro");return{container:t((r,o)=>({...r,width:o.selectProps.width,...l,fontFamily:e.font.fontFamily.main}),"container"),control:t((r,{isDisabled:o,selectProps:a})=>{var k,C,v;let p=o?"transparent":u,m=Ce(a.size,e);return{...r,...m,borderColor:p,borderWidth:1,minHeight:void 0,background:o?I:(v=(C=(k=e.colors.surface)==null?void 0:k.paper)!=null?C:e.colors.baseLight)!=null?v:"#fff",boxShadow:e.depth("level-one-minus"),"&:hover, &:focus":{boxShadow:"none",borderColor:p},"&:has(input:focus-visible)":{outline:`2px solid ${F}`,outlineOffset:2}}},"control"),valueContainer:t((r,{isMulti:o})=>{let a=o?`calc(${g} * -1) 0`:0;return{...r,margin:a,padding:0,lineHeight:1}},"valueContainer"),input:t(r=>{var o,a;return{...r,padding:0,margin:0,fontSize:e.font.fontSize.small,color:(a=(o=e.colors.ink)==null?void 0:o.primary)!=null?a:S}},"input"),singleValue:t(r=>{var o,a;return{...r,color:(a=(o=e.colors.ink)==null?void 0:o.primary)!=null?a:S}},"singleValue"),multiValue:t(r=>({...r,margin:g,fontSize:e.font.fontSize.micro,background:Y,"& svg":{color:q,strokeWidth:1},"& > div:first-of-type":{color:Z}}),"multiValue"),multiValueLabel:t(r=>({...r,padding:e.spacing(0,"micro"),lineHeight:e.font.lineHeight.regular}),"multiValueLabel"),multiValueRemove:t(r=>({...r,background:B,cursor:"pointer","&:hover":{background:I}}),"multiValueRemove"),placeholder:t((r,{isDisabled:o})=>({...r,color:o?R:S}),"placeholder"),indicatorsContainer:t((r,{isDisabled:o})=>({...r,lineHeight:1,display:"inline-flex",alignItems:"center",alignSelf:"center","& > div":{paddingTop:0,paddingBottom:0},"& svg":{color:o?R:c,fontSize:"inherit",width:"1em",height:"1em"}}),"indicatorsContainer"),indicatorSeparator:t((r,{isDisabled:o})=>({...r,margin:0,height:"1rem",alignSelf:"center",borderColor:o?R:c,backgroundColor:o?R:c}),"indicatorSeparator"),menu:t(r=>{var o,a;return{...r,backgroundColor:(a=(o=e.colors.surface)==null?void 0:o.overlay)!=null?a:e.colors.baseLight,borderRadius:8,overflow:"hidden",boxShadow:e.depth("level-three"),marginTop:g,padding:0,zIndex:ue(e).dropdown}},"menu"),menuList:t(r=>{var o,a,p,m;return{...r,borderRadius:8,border:`1px solid ${(a=(o=e.colors.edge)==null?void 0:o.hairline)!=null?a:e.colors.baseLight}`,padding:0,"& div:not(:first-of-type)":{borderTop:`1px solid ${(m=(p=e.colors.edge)==null?void 0:p.hairline)!=null?m:e.colors.baseLight}`}}},"menuList"),option:t((r,o)=>{var p,m,k,C,v,E,z,M;let a="transparent";return o.isSelected&&(a=(m=(p=e.colors.wash)==null?void 0:p.selected)!=null?m:a),o.isFocused&&(a=(C=(k=e.colors.wash)==null?void 0:k.hover)!=null?C:a),{...r,color:(E=(v=e.colors.ink)==null?void 0:v.primary)!=null?E:i,backgroundColor:a,cursor:"pointer",textAlign:"left",padding:J,lineHeight:"1.2rem","&:active":{color:ce(e,H=>{var U,ee,re,oe,te;return(te=(oe=(re=H.colors).getContrastColor)==null?void 0:oe.call(re,(ee=(U=H.colors.primary)==null?void 0:U.base)!=null?ee:"#000"))!=null?te:i}),backgroundColor:(M=(z=e.colors.primary)==null?void 0:z.base)!=null?M:i}}},"option"),clearIndicator:t(r=>({...r,cursor:"pointer"}),"clearIndicator"),dropdownIndicator:t(r=>({...r,cursor:"pointer",paddingRight:0}),"dropdownIndicator")}}t(ge,"createComponentStyle");import{forwardRef as we,useImperativeHandle as xe,useMemo as Re,useState as Ie}from"react";import ye,{components as Q}from"react-select";import X from"react-select/async";var _=ye;import{jsx as n,jsxs as T}from"react/jsx-runtime";function be(e){return n(Q.DropdownIndicator,{...e,children:n("div",{style:{width:24},children:T("svg",{xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",background:"0 0"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",display:"block",children:[n("defs",{}),n("g",{transform:"translate(80 50)",children:T("circle",{r:"6",fill:"#9bb6c0",transform:"scale(1.37926)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.875s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.875s"})]})}),n("g",{transform:"rotate(45 -50 122)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".9",transform:"scale(1.44176)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.75s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.75s"})]})}),n("g",{transform:"rotate(90 -15 65)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".8",transform:"scale(1.00426)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.625s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.625s"})]})}),n("g",{transform:"rotate(135 0 42)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".6",transform:"scale(1.06676)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.5s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.5s"})]})}),n("g",{transform:"rotate(180 10 25)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".5",transform:"scale(1.12926)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.375s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.375s"})]})}),n("g",{transform:"rotate(-135 20 8)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".4",transform:"scale(1.19176)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.25s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.25s"})]})}),n("g",{transform:"rotate(-90 35 -15)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".3",transform:"scale(1.25426)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.125s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.125s"})]})}),n("g",{transform:"rotate(-45 70 -72)",children:T("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".1",transform:"scale(1.31676)",children:[n("animateTransform",{attributeName:"transform",type:"scale",begin:"0s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),n("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"0s"})]})})]})})})}t(be,"DropdownIndicator");import{useCallback as ve,useRef as Oe}from"react";function j(e,s){if(!(!e||se(s))){if(K(e))return e;if(ae(e))return s.find(l=>l.value===e);if(Array.isArray(e)){if(e.every(l=>typeof l=="string"))return s.filter(l=>e.includes(l.value));if(e.every(K))return e}}}t(j,"getDefaultValue");function Te(e){let s=Oe(e),{active:l,disable:i,enable:L}=fe();de(()=>{s.current=e});let u=ve(async S=>{try{L();let c=await s.current(S);if(Array.isArray(c))return c;throw new Error('"LoadOptions" prop did not return the expected result')}catch(c){ne.error(c==null?void 0:c.message)}finally{i()}},[L,i]);return[l,u]}t(Te,"useLoadOptions");import{jsx as Se}from"react/jsx-runtime";function he(e,s){let{loadingPlaceholder:l="Carregando (aguarde)...",emptyMessage:i="Sem Op\xE7\xF5es",isLoading:L,onChange:u,loadOptions:S,onItemSelect:c,variant:B,style:F,readOnly:R,value:I,hideSelectedOptions:Y=!1,menuPlacement:Z="bottom",placeholder:q="Selecione...",size:J="medium",...g}=e,[y,O]=Ie(()=>{let{options:d,defaultValue:b}=g;return j(b||I,d)}),N=t(d=>{O(d||[]);let b=ie(d);if(u&&u(d?b:[]),g.isMulti&&c){let h=Array.isArray(y)&&y.length,w=b.length,P=t(()=>{let f=y||[];u&&u(f),O(f)},"cancelAction");if(w===0)y.forEach(f=>{c({option:f,type:"REMOVE",cancelAction:t(()=>O(V=>{let x=[...V,f];return u&&u(x),x}),"cancelAction")})});else if(w>h)c({option:b[w-1],type:"ADD",cancelAction:P});else if(w<h){let f=y.find(V=>!b.some(x=>x.value===V.value));c({option:f,type:"REMOVE",cancelAction:P})}}},"onChangeValue");me(()=>{O(I||[])},[I]),xe(s,()=>({setValue:t(d=>{N(j(d,g.options))},"setValue")}));let[$,G]=Te(S),A=pe(),W=Re(()=>ge(A,B,F),[A,B,F]),D={ref:s,...g,size:J,hideSelectedOptions:Y,menuPlacement:Z,placeholder:q,...(L||$)&&{components:{DropdownIndicator:be,LoadingIndicator:null},placeholder:l,isDisabled:!0},closeMenuOnSelect:!g.isMulti,styles:W,value:y,noOptionsMessage:t(()=>i,"noOptionsMessage"),onChange:N,...R&&{isClearable:!1,isSearchable:!1,openMenuOnClick:!1,menuIsOpen:!1}};return S?Se(X,{...D,cacheOptions:!0,defaultOptions:!0,loadOptions:G}):Se(_,{...D})}t(he,"InputSelectComponent");var ke=we(he);ke.displayName="InputSelect";export{ge as a,ke as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i,b as c,c as d,d as h}from"./chunk-BTO37XLJ.esm.js";import{a as m}from"./chunk-TQMP7PZI.esm.js";import{b as f,g as a}from"./chunk-AXUWC2WH.esm.js";import{forwardRef as L,useEffect as k,useRef as C}from"react";var S="2.75rem",b=a(m).withConfig({componentId:"sc-1rdixph-0"})(["display:block;min-width:0;"]),v=a.ul.withConfig({componentId:"sc-1rdixph-1"})(["position:relative;display:flex;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;&::-webkit-scrollbar{display:none;}",""],({$snap:t})=>t&&f(["scroll-snap-type:x proximity;& > li{scroll-snap-align:start;}"])),y=a.li.withConfig({componentId:"sc-1rdixph-2"})(["display:flex;flex-shrink:0;"]),x=a.a.withConfig({componentId:"sc-1rdixph-3"})(["position:relative;display:inline-flex;align-items:center;min-height:",";box-sizing:border-box;margin:0;padding:",";border:0;background:transparent;color:",";font-family:",";font-size:",";font-weight:",";line-height:",";white-space:nowrap;text-decoration:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:",";&::after{content:'';position:absolute;inset-inline:0;bottom:0;height:2px;border-radius:1px;background:",";}&:hover{background:",";}&:active{background:",";}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}"],S,({theme:t})=>t.spacing("zero","medium"),({$current:t,$color:o,theme:n})=>t?i(n,o):c(n),({theme:t})=>t.font.fontFamily.main,({theme:t})=>t.font.fontSize.xs,({$current:t,theme:o})=>t?o.font.fontWeight.bold:o.font.fontWeight.regular,({theme:t})=>t.font.lineHeight.tight,({theme:t})=>t.animation.transitions.short,({$current:t,$color:o,theme:n})=>t?i(n,o):"transparent",({theme:t})=>t.colors.wash.hover,({theme:t})=>t.colors.wash.pressed,({$color:t,theme:o})=>i(o,t));import{jsx as s}from"react/jsx-runtime";var T=L(({items:t,linkAs:o,color:n="primary",snap:g=!1,...u},N)=>{let p=C(null),l=t.findIndex(e=>e.current);return k(()=>{let e=p.current,r=l>=0?e==null?void 0:e.children[l]:void 0;!e||!r||(e.scrollLeft=r.offsetLeft-(e.clientWidth-r.offsetWidth)/2)},[l]),s(b,{...u,as:"nav",borderPosition:"bottom",borderWidth:"thin",borderStyle:"solid",borderColor:"edge.hairline",ref:N,children:s(v,{ref:p,$snap:g,children:t.map((e,r)=>{let{as:I,props:w}=h(e,o);return s(y,{children:s(x,{...w,as:I,$current:!!e.current,$color:n,children:e.label})},d(e,r))})})})});T.displayName="NavTabs";export{S as a,b,v as c,y as d,x as e,T as f};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./chunk-ZZ5EX7HG.esm.js";import{a as i}from"./chunk-LSLBDF5M.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
|
-
"content"
|
|
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};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{c as d}from"./chunk-ZZ5EX7HG.esm.js";import{a}from"./chunk-LSLBDF5M.esm.js";import{a as i}from"./chunk-TQMP7PZI.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";var m={xs:{columns:"minmax(0, 1fr)",rows:"100%",areas:`
|
|
2
|
-
"content"
|
|
3
|
-
`},md:{columns:"200px minmax(0, 1fr)",rows:"100%",areas:`
|
|
4
|
-
"sidebar content"
|
|
5
|
-
`}};var n=o(d).attrs({medias:m}).withConfig({componentId:"sc-191lt0b-0"})(["height:100%;"]);import{jsx as t,jsxs as f}from"react/jsx-runtime";function s({layoutComponents:r}){return f(n,{children:[r.sidebar&&t(i,{area:"sidebar",display:"none",md_display:"flex",children:t(r.sidebar,{})}),t(a,{area:"content",width:"100%",justifyContent:"center",md_justifyContent:"start",children:r.content&&t(r.content,{})})]})}e(s,"SideBarLayout");s.displayName="SideBarLayout";export{m as a,n as b,s as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as u,c}from"./chunk-TQMP7PZI.esm.js";import{b as p}from"./chunk-XR763B4T.esm.js";import{c as f}from"./chunk-QXV2TDLZ.esm.js";import{g as s}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var G=n(e=>{var t;if(e===void 0)return;if(typeof e=="string")return e;if(typeof e=="number")return`repeat(${e}, minmax(0, 1fr))`;let r="autoFit"in e?"auto-fit":"auto-fill",i="autoFit"in e?e.autoFit:e.autoFill;return`repeat(${r}, minmax(min(${i}, 100%), ${(t=e.max)!=null?t:"1fr"}))`},"resolveColumns"),a=n((e,r)=>({gridTemplateColumns:G(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,...f(r)}),"getGridProps"),l=n(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((i,t)=>({...i,[r.breakpoints.up(t)]:a(r,e[t])}),{}):a(r,e):{},"setGridBreakpoints"),g=n(({cq:e,theme:r})=>p.reduce((i,t)=>{let o=e==null?void 0:e[t];if(!o)return i;let d=Object.fromEntries(Object.entries(a(r,o)).filter(([,m])=>m!==void 0));return Object.keys(d).length===0?i:{...i,[r.containerSizes.up(t)]:d}},{}),"setGridContainerQueries"),y=s(u).attrs(({display:e})=>({display:e!=null?e:"grid"})).withConfig({componentId:"sc-11fh3lu-0"})([""," "," ",""],c("grid"),l,g);export{l as a,g as b,y as c};
|