@tap-payments/os-micro-frontend-shared 0.3.284 → 0.3.286
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/build/_chunks/chunk-2IOTEGXO.js +2 -0
- package/build/_chunks/{chunk-VTF7IHDJ.js → chunk-54STY6MC.js} +1 -1
- package/build/_chunks/chunk-D7SCPBNH.js +1 -0
- package/build/_chunks/chunk-FS7JHQ4B.js +2 -0
- package/build/_chunks/{chunk-7EIZDPRX.js → chunk-MEM7VSBN.js} +1 -1
- package/build/_chunks/{chunk-CZZIV6U2.js → chunk-QP4V7L7P.js} +1 -1
- package/build/_chunks/{chunk-YHRFQZCJ.js → chunk-SVHOBX55.js} +1 -1
- package/build/_chunks/{chunk-VBB5WMVK.js → chunk-ZA7JORR7.js} +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/ExpandableChip/ExpandableChip.d.ts +4 -0
- package/build/components/ExpandableChip/constants.d.ts +44 -0
- package/build/components/ExpandableChip/hooks/useExpandableChip.d.ts +23 -0
- package/build/components/ExpandableChip/index.d.ts +3 -0
- package/build/components/ExpandableChip/index.js +1 -0
- package/build/components/{LeftPeekRightExpandingChip → ExpandableChip}/style.d.ts +564 -10
- package/build/components/ExpandableChip/type.d.ts +87 -0
- package/build/components/ExpandableChip/utils.d.ts +16 -0
- package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +4 -0
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +15 -2
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MultiLevelMenu/MultiLevelMenu.d.ts +10 -0
- package/build/components/MultiLevelMenu/MultiLevelMenuItem.d.ts +6 -0
- package/build/components/MultiLevelMenu/MultiLevelMenuPanel.d.ts +6 -0
- package/build/components/MultiLevelMenu/constants.d.ts +56 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuContext.d.ts +24 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSearch.d.ts +11 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSelection.d.ts +25 -0
- package/build/components/MultiLevelMenu/hooks/useSubmenu.d.ts +12 -0
- package/build/components/MultiLevelMenu/icons.d.ts +7 -0
- package/build/components/MultiLevelMenu/index.d.ts +3 -0
- package/build/components/MultiLevelMenu/index.js +1 -0
- package/build/components/MultiLevelMenu/style.d.ts +58 -0
- package/build/components/MultiLevelMenu/type.d.ts +239 -0
- package/build/components/MultiLevelMenu/utils.d.ts +122 -0
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/WindowServices/index.js +1 -1
- package/build/components/index.d.ts +4 -4
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/index.js +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/index.js +1 -1
- package/build/components/modules/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-24FDQ7SG.js +0 -2
- package/build/_chunks/chunk-VRPTMDSJ.js +0 -1
- package/build/_chunks/chunk-W2HSCMPT.js +0 -1
- package/build/_chunks/chunk-Z2ELLNWM.js +0 -1
- package/build/components/LeftPeekRightExpandingChip/LeftPeekRightExpandingChip.d.ts +0 -13
- package/build/components/LeftPeekRightExpandingChip/index.d.ts +0 -2
- package/build/components/LeftPeekRightExpandingChip/index.js +0 -1
- package/build/components/LeftPeekRightExpandingChip/type.d.ts +0 -7
- package/build/components/LeftPeekRightExpandingChip/useLeftPeekRightExpandingChip.d.ts +0 -26
- package/build/components/RightLeftExpandingCenterChip/RightLeftExpandingCenterChip.d.ts +0 -36
- package/build/components/RightLeftExpandingCenterChip/index.d.ts +0 -2
- package/build/components/RightLeftExpandingCenterChip/index.js +0 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -3417
- package/build/components/RightLeftExpandingCenterChip/type.d.ts +0 -11
- package/build/components/RightLeftExpandingCenterChip/useRightLeftExpandingCenterChip.d.ts +0 -41
- package/build/components/TreeDropdown/TreeDropdown.d.ts +0 -4
- package/build/components/TreeDropdown/TreeNodeItem/SelectionControl.d.ts +0 -8
- package/build/components/TreeDropdown/TreeNodeItem/TreeNodeItem.d.ts +0 -13
- package/build/components/TreeDropdown/TreeNodeItem/index.d.ts +0 -2
- package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +0 -18
- package/build/components/TreeDropdown/TreeNodeList/List.d.ts +0 -6
- package/build/components/TreeDropdown/TreeNodeList/TreeNodeList.d.ts +0 -17
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +0 -6
- package/build/components/TreeDropdown/context/TreeDropdownProvider.d.ts +0 -15
- package/build/components/TreeDropdown/hooks/useSearch.d.ts +0 -18
- package/build/components/TreeDropdown/hooks/useTreeDropdown.d.ts +0 -12
- package/build/components/TreeDropdown/index.d.ts +0 -4
- package/build/components/TreeDropdown/index.js +0 -1
- package/build/components/TreeDropdown/style.d.ts +0 -13
- package/build/components/TreeDropdown/type.d.ts +0 -96
- package/build/components/TreeDropdown/utils.d.ts +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {j as j$2,r as r$1,R as R$1,V}from'./chunk-6GZFEPN6.js';import {
|
|
1
|
+
import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {r}from'./chunk-JKW2LY7R.js';import {j as j$2,r as r$1,R as R$1,V}from'./chunk-6GZFEPN6.js';import {ya,nc,cc}from'./chunk-Z2DUFVI5.js';import {Yc,Xc,jb,Bn}from'./chunk-3M2GZVQW.js';import {memo,forwardRef,useState,useRef,useMemo,useEffect,useCallback}from'react';import m from'@mui/material/Box';import Ge from'@mui/material/MenuItem';import je from'@mui/material/Select';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import eo from'@mui/material/ClickAwayListener';var c="os-shared-WindowServices",s={root:`${c}-root`,bar:`${c}-bar`,tabsBar:`${c}-tabsBar`,tabs:`${c}-tabs`,tab:`${c}-tab`,trigger:`${c}-trigger`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,menuItem:`${c}-menuItem`,contextMenu:`${c}-contextMenu`},D="os-shared-WindowSkeleton",g={root:`${D}-root`,bar:`${D}-bar`,body:`${D}-body`,rows:`${D}-rows`,row:`${D}-row`},re="Open in a new window",R="en",ie=51,ae=8,se=3,de=10,le=64,pe=4;var ce=styled(m,{shouldForwardProp:e=>e!=="$isDragging"})(({$isDragging:e=false})=>({cursor:e?"move":"default",position:"relative",zIndex:1,margin:0,backgroundColor:j$1,backdropFilter:k})),me=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),overflow:"hidden",height:"4.1875rem",paddingBottom:"1.2rem",paddingInline:e.v2.spacing(32),paddingTop:e.v2.spacing(4),backgroundColor:"transparent",'[data-window-maximized="true"] &':{height:e.v2.spacing(44),paddingBottom:e.v2.spacing(10),paddingTop:0}})),we=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),userSelect:"none",width:"max-content",maxWidth:"100%"})),Ke=ya(),ue=styled(j$2,{shouldForwardProp:e=>e!=="$title"})(({theme:e,$title:n})=>{let{base:o}=e.v2.palette;return {position:"relative",fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),color:o.black,fontSize:"11px",lineHeight:"15px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["backgroundColor","boxShadow"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),whiteSpace:"nowrap",textTransform:"capitalize","&:hover, &.active":{backgroundColor:o.white,boxShadow:e.shadows[2],cursor:"pointer",position:"relative",color:"transparent","&:after":{...n&&{content:`"${n}"`},color:o.black,fontWeight:e.v2.typography.fontWeightBold,overflow:"hidden",position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:Ke==="safari"?"-1px":"",padding:8,borderRadius:e.shape.borderRadius}}}}),ge=styled(je)(({theme:e})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:e.shadows[5],cursor:"pointer",outline:e.palette.background.default,border:"none",backgroundColor:e.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),fe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),Se=styled(Ge)(({theme:e})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${e.shadows[3]}`}})),xe=styled("p")(({theme:e})=>({fontSize:"0.75rem",fontWeight:500,color:e.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),ye=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),G=styled(m)(()=>({display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",borderRadius:"inherit",backgroundColor:"transparent"})),be=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e.v2.spacing(8),height:"4.1875rem",flexShrink:0,paddingTop:e.v2.spacing(10),paddingInline:e.v2.spacing(32),paddingBottom:"1.2rem",backgroundColor:j$1,backdropFilter:k})),he=styled(m)(({theme:e})=>({flex:1,minHeight:0,backgroundColor:e.v2.palette.base.white})),ve=styled(m)(({theme:e})=>({height:"100%",overflow:"hidden",backgroundColor:e.v2.palette.base.white,padding:`${e.v2.spacing(8)} ${e.v2.spacing(32)}`})),Ce=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.v2.spacing(8),alignItems:"center",paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),height:56,borderTop:`1px solid ${e.v2.palette.border.default}`})),Le=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),ke=styled(m)(()=>({display:"flex",gap:"4px"}));function Ye({className:e}){return jsx(ye,{src:(e??"").includes("MuiSelect-iconOpen")?Yc:Xc,alt:"dropdown",className:nc(s.triggerArrow)})}var We=memo(Ye);function oo({name:e,code:n,isActive:o,openInNewWindowLabel:l,onOpenService:u,onOpenServiceInNewWindow:d,className:f}){let[p,v]=useState(null),C=!!p,L=useRef(null),b=useCallback(()=>{v(null);},[]),B=useCallback(r=>{L.current={x:r.clientX,y:r.clientY};},[]),$=useCallback(r=>{let S=L.current;if(L.current=null,S&&Math.hypot(r.clientX-S.x,r.clientY-S.y)>5){r.preventDefault(),r.stopPropagation();return}r.preventDefault(),r.stopPropagation(),u(n);},[n,u]),k=useCallback(r=>{r.preventDefault(),r.stopPropagation(),v(r.currentTarget);},[]),W=useCallback(r=>{r.preventDefault(),r.stopPropagation(),d?.(n),b();},[n,b,d]);return jsx(eo,{onClickAway:b,children:jsxs(m,{component:"span",sx:{display:"contents"},children:[jsx(ue,{$title:e,onClick:$,onPointerDown:B,onContextMenu:k,className:nc(s.tab,o&&"active",f),children:e}),jsx(R$1,{open:C,anchorEl:p,placement:"bottom-start",className:nc(s.contextMenu),children:jsx(V,{startAdornment:null,onClick:W,className:nc(s.menuItem),children:jsxs(m,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[jsx("img",{src:jb,alt:"new-window-icon"}),l]})})})]})})}var Re=memo(oo);function Ne(e){return e===Bn.reports.code||e===Bn.upload.code}function P(e){if(!e)return "";try{return decodeURIComponent(e)}catch{return e}}function Me(e,n,o){let l=P(n).toLowerCase(),u=(e??[]).filter(d=>P(d.code).toLowerCase()===l)?.[0];return cc(u?.name??[],o??R)||""}function j(e,n){return cc(e.name,n??R)||""}function Te(e,n){return P(e).toLowerCase()===P(n).toLowerCase()}var Oe=forwardRef(function({serviceCode:n="",services:o,onOpenService:l,onOpenServiceInNewWindow:u,language:d=R,openInNewWindowLabel:f=re,id:p,className:v,sx:C,"data-testid":L,"data-id":b},B){let[$,k]=useState(false),[W,r$1]=useState(0),[S,$e]=useState(false),[Ae,K]=useState(false),[Ee,{width:A}]=r(),X=useRef(null),E=useMemo(()=>Me(o,n,d),[o,n,d]);useEffect(()=>{S||r$1(X.current?.offsetWidth??0);},[S,o,d]),useEffect(()=>{if(A<=0||W<=0)return;let i=W+le+ie+ae+se+de;$e(A<i);},[A,W]);let He=useCallback(()=>{k(true);},[]),ze=useCallback(()=>{k(false);},[]),_e=useCallback(()=>{k(false);},[]),Fe=useCallback(()=>{K(i=>!i);},[]),Ue=useCallback(i=>{l?.(i),K(false);},[l]),Ve=useCallback(i=>{l?.(i);},[l]);return o.length?jsx(ce,{ref:B,id:p,"data-testid":L??p??"WindowServices",...(b??p)!=null?{"data-id":b??p}:null,$isDragging:$,onPointerDown:He,onPointerUp:ze,onPointerCancel:_e,className:nc(s.root,s.bar,g$1,v),sx:C,children:jsxs(me,{ref:Ee,className:nc(s.tabsBar),children:[!S&&jsx(we,{ref:X,className:nc(s.tabs),children:o.map((i,H)=>jsx(Re,{name:j(i,d),code:i.code,isActive:Te(n,i.code),openInNewWindowLabel:f,onOpenService:Ve,onOpenServiceInNewWindow:u},`service-item-${i.code}-${H}`))}),S&&jsx(ge,{open:Ae,onClick:Fe,displayEmpty:true,inputProps:{"aria-label":E||"Window services"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:E,IconComponent:We,renderValue:i=>jsx(fe,{className:nc(s.triggerLabel),children:i}),sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},className:nc(s.trigger),children:o.map((i,H)=>{let z=j(i,d);return z.toLowerCase()===E?.toLowerCase()?null:jsx(Se,{value:z,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),Ue(i.code);},className:nc(s.menuItem),children:jsx(xe,{children:z})},`option-${i.code}-${H}`)})})]})}):null});Oe.displayName="WindowServices";var ao=memo(Oe);var Be=forwardRef(function({appCode:n,id:o,className:l,sx:u,"data-testid":d,"data-id":f},p){return Ne(n)?jsx(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:jsx(ve,{className:nc(g.rows,g.body),children:Array.from({length:pe}).map((v,C)=>jsxs(Ce,{className:nc(g.row),children:[jsx(r$1,{variant:"rounded",width:32,height:32}),jsxs(Le,{children:[jsx(r$1,{width:80,height:12.29}),jsxs(ke,{children:[jsx(r$1,{width:50,height:12.29}),jsx(r$1,{width:125,height:12.29})]})]})]},C))})}):jsxs(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:[jsxs(be,{className:nc(g.bar),children:[jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31})]}),jsx(he,{className:nc(g.body)})]})});Be.displayName="WindowSkeleton";var co=memo(Be);export{s as a,g as b,ao as c,co as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-
|
|
1
|
+
export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-FS7JHQ4B.js';import'../../_chunks/chunk-54STY6MC.js';import'../../_chunks/chunk-QP4V7L7P.js';import'../../_chunks/chunk-WRJLCKDU.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-JK5C4QAJ.js';import'../../_chunks/chunk-7LVGFAVY.js';import'../../_chunks/chunk-SVHOBX55.js';import'../../_chunks/chunk-KZIIULI3.js';import'../../_chunks/chunk-ZA7JORR7.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-MZBS2I4P.js';import'../../_chunks/chunk-RSIJKVO6.js';import'../../_chunks/chunk-MLJHEMAE.js';import'../../_chunks/chunk-MEM7VSBN.js';import'../../_chunks/chunk-R367WWTC.js';import'../../_chunks/chunk-2SZKMLBQ.js';import'../../_chunks/chunk-VIBNNV7I.js';import'../../_chunks/chunk-RI3HCTED.js';import'../../_chunks/chunk-NQGK2Q5L.js';import'../../_chunks/chunk-J5Y23R6K.js';import'../../_chunks/chunk-IPYIRN2R.js';import'../../_chunks/chunk-JRADYN3S.js';import'../../_chunks/chunk-LDCRZFUN.js';import'../../_chunks/chunk-ZYP2H2JO.js';import'../../_chunks/chunk-LR6FBC7S.js';import'../../_chunks/chunk-ONSPUGYN.js';import'../../_chunks/chunk-UY75PFQ7.js';import'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-OR22XGAD.js';import'../../_chunks/chunk-UENR5XJD.js';import'../../_chunks/chunk-NNMPGGZY.js';import'../../_chunks/chunk-U2D7PCC4.js';import'../../_chunks/chunk-S6DUWS2C.js';import'../../_chunks/chunk-7K7NRYXI.js';import'../../_chunks/chunk-PPHYI47H.js';import'../../_chunks/chunk-6PCVGKSW.js';import'../../_chunks/chunk-N2WU3HEH.js';import'../../_chunks/chunk-PG6JHNLH.js';import'../../_chunks/chunk-3HYMTOAJ.js';import'../../_chunks/chunk-QVH3AVGY.js';import'../../_chunks/chunk-XYMZXP5A.js';import'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-XSMIOEMD.js';import'../../_chunks/chunk-B7SIZBZ4.js';import'../../_chunks/chunk-DO5LOF3O.js';import'../../_chunks/chunk-BT4FYCLB.js';import'../../_chunks/chunk-3M7YAX7A.js';import'../../_chunks/chunk-HFZFV3IA.js';import'../../_chunks/chunk-YI5J4DCB.js';import'../../_chunks/chunk-JDSJDVQK.js';import'../../_chunks/chunk-AI4TRR5F.js';import'../../_chunks/chunk-2DZTKOWC.js';import'../../_chunks/chunk-IBVECU2A.js';import'../../_chunks/chunk-4UPB4XII.js';import'../../_chunks/chunk-OL4HUADY.js';import'../../_chunks/chunk-FYZLPKZJ.js';import'../../_chunks/chunk-ARPUXMV4.js';import'../../_chunks/chunk-32GIDLTK.js';import'../../_chunks/chunk-MGKZHRIG.js';import'../../_chunks/chunk-ZERM22LM.js';import'../../_chunks/chunk-JKW2LY7R.js';import'../../_chunks/chunk-AYDZ5BY7.js';import'../../_chunks/chunk-6GZFEPN6.js';export{Db as CUSTOM_VIEW,yb as DATE_COLUMN_CONFIG,Cb as DEFAULT_VIEW,Eb as DEFAULT_VIEW_OPTIONS,tb as DIALOG_HEIGHT,sb as DIALOG_WIDTH,xb as INDEX_COLUMN_CONFIG,ub as MAX_CUSTOM_VIEWS,vb as TEMPLATE_NAME_MAX_LENGTH,wb as TableViewColumnNames}from'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Lc as DateFilter}from'../../_chunks/chunk-
|
|
1
|
+
export{Lc as DateFilter}from'../../_chunks/chunk-FS7JHQ4B.js';import'../../_chunks/chunk-54STY6MC.js';import'../../_chunks/chunk-QP4V7L7P.js';import'../../_chunks/chunk-WRJLCKDU.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-JK5C4QAJ.js';import'../../_chunks/chunk-7LVGFAVY.js';import'../../_chunks/chunk-SVHOBX55.js';import'../../_chunks/chunk-KZIIULI3.js';import'../../_chunks/chunk-ZA7JORR7.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-MZBS2I4P.js';import'../../_chunks/chunk-RSIJKVO6.js';import'../../_chunks/chunk-MLJHEMAE.js';import'../../_chunks/chunk-MEM7VSBN.js';import'../../_chunks/chunk-R367WWTC.js';import'../../_chunks/chunk-2SZKMLBQ.js';import'../../_chunks/chunk-VIBNNV7I.js';import'../../_chunks/chunk-RI3HCTED.js';import'../../_chunks/chunk-NQGK2Q5L.js';import'../../_chunks/chunk-J5Y23R6K.js';import'../../_chunks/chunk-IPYIRN2R.js';import'../../_chunks/chunk-JRADYN3S.js';import'../../_chunks/chunk-LDCRZFUN.js';import'../../_chunks/chunk-ZYP2H2JO.js';import'../../_chunks/chunk-LR6FBC7S.js';import'../../_chunks/chunk-ONSPUGYN.js';import'../../_chunks/chunk-UY75PFQ7.js';import'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-OR22XGAD.js';import'../../_chunks/chunk-UENR5XJD.js';import'../../_chunks/chunk-NNMPGGZY.js';import'../../_chunks/chunk-U2D7PCC4.js';import'../../_chunks/chunk-S6DUWS2C.js';import'../../_chunks/chunk-7K7NRYXI.js';import'../../_chunks/chunk-PPHYI47H.js';import'../../_chunks/chunk-6PCVGKSW.js';import'../../_chunks/chunk-N2WU3HEH.js';import'../../_chunks/chunk-PG6JHNLH.js';import'../../_chunks/chunk-3HYMTOAJ.js';import'../../_chunks/chunk-QVH3AVGY.js';import'../../_chunks/chunk-XYMZXP5A.js';import'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-XSMIOEMD.js';import'../../_chunks/chunk-B7SIZBZ4.js';import'../../_chunks/chunk-DO5LOF3O.js';import'../../_chunks/chunk-BT4FYCLB.js';import'../../_chunks/chunk-3M7YAX7A.js';import'../../_chunks/chunk-HFZFV3IA.js';import'../../_chunks/chunk-YI5J4DCB.js';import'../../_chunks/chunk-JDSJDVQK.js';import'../../_chunks/chunk-AI4TRR5F.js';import'../../_chunks/chunk-2DZTKOWC.js';import'../../_chunks/chunk-IBVECU2A.js';import'../../_chunks/chunk-4UPB4XII.js';import'../../_chunks/chunk-OL4HUADY.js';import'../../_chunks/chunk-FYZLPKZJ.js';import'../../_chunks/chunk-ARPUXMV4.js';import'../../_chunks/chunk-32GIDLTK.js';import'../../_chunks/chunk-MGKZHRIG.js';import'../../_chunks/chunk-ZERM22LM.js';import'../../_chunks/chunk-JKW2LY7R.js';import'../../_chunks/chunk-AYDZ5BY7.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ExpandableChipProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Readonly<ExpandableChipProps> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ExpandableChipVariant, ResolvedExpandableChipTransition } from './type';
|
|
2
|
+
export declare const expandableChipClassNamePrefix: "os-shared-ExpandableChip";
|
|
3
|
+
export declare const expandableChipClassNames: {
|
|
4
|
+
/** Outer element. Receives consumer `className` / `sx`. */
|
|
5
|
+
readonly root: "os-shared-ExpandableChip-root";
|
|
6
|
+
/** Wrapper around `main` and its adornments — the part that shifts for `expandFrom="start" | "end"`. */
|
|
7
|
+
readonly mainGroup: "os-shared-ExpandableChip-mainGroup";
|
|
8
|
+
/** The always-visible chip. */
|
|
9
|
+
readonly main: "os-shared-ExpandableChip-main";
|
|
10
|
+
/** `startAdornment` / `endAdornment` container. */
|
|
11
|
+
readonly adornment: "os-shared-ExpandableChip-adornment";
|
|
12
|
+
/** One revealed chip (start or end side). */
|
|
13
|
+
readonly item: "os-shared-ExpandableChip-item";
|
|
14
|
+
/** Decorative sliver hinting at hidden items (`default` variant only). */
|
|
15
|
+
readonly peek: "os-shared-ExpandableChip-peek";
|
|
16
|
+
};
|
|
17
|
+
/** Chip height and collapsed sliver width (px). */
|
|
18
|
+
export declare const EXPANDABLE_CHIP_CHIP_SIZE_PX = 24;
|
|
19
|
+
/** Space between open chips (px). */
|
|
20
|
+
export declare const EXPANDABLE_CHIP_GAP_PX = 3;
|
|
21
|
+
/** `stacked`: how far each stacked sliver sticks out beyond the previous one (px). */
|
|
22
|
+
export declare const EXPANDABLE_CHIP_STACK_STEP_PX = 6;
|
|
23
|
+
/** `default` variant: how far the decorative sliver sticks out beyond `main` (px). */
|
|
24
|
+
export declare const EXPANDABLE_CHIP_PEEK_OFFSET_PX = 5;
|
|
25
|
+
/** Adornment width animation duration (s) — same for both variants. */
|
|
26
|
+
export declare const EXPANDABLE_CHIP_ADORNMENT_DURATION_S = 0.2;
|
|
27
|
+
/** Peek / main transition duration (s) used by the `default` variant for its sliver. */
|
|
28
|
+
export declare const EXPANDABLE_CHIP_PEEK_DURATION_S = 0.18;
|
|
29
|
+
/** Root z-index while open (a consumer `sx.zIndex` wins). */
|
|
30
|
+
export declare const EXPANDABLE_CHIP_OPEN_Z_INDEX = 1000;
|
|
31
|
+
export declare const EXPANDABLE_CHIP_DEFAULT_VARIANT: ExpandableChipVariant;
|
|
32
|
+
/**
|
|
33
|
+
* Variant defaults. Each variant only decides timing, padding, and how an item looks closed vs open —
|
|
34
|
+
* the positions come from the shared layout in `utils.ts`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const EXPANDABLE_CHIP_VARIANTS: Record<ExpandableChipVariant, ResolvedExpandableChipTransition & {
|
|
37
|
+
/** Horizontal padding inside `main` and open items (px). */
|
|
38
|
+
chipPaddingX: number;
|
|
39
|
+
}>;
|
|
40
|
+
/** Values used when `transition={false}` or the user prefers reduced motion. */
|
|
41
|
+
export declare const EXPANDABLE_CHIP_NO_MOTION: {
|
|
42
|
+
readonly duration: 0;
|
|
43
|
+
readonly stagger: 0;
|
|
44
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ExpandableChipProps } from '../type';
|
|
3
|
+
type UseExpandableChipArgs = Pick<ExpandableChipProps, 'main' | 'startItems' | 'endItems' | 'startAdornment' | 'endAdornment' | 'variant' | 'transition' | 'open' | 'defaultOpen' | 'onOpenChange'> & {
|
|
4
|
+
expandFrom: NonNullable<ExpandableChipProps['expandFrom']>;
|
|
5
|
+
};
|
|
6
|
+
/** Open state, measurement, layout, and adornment motion values for `ExpandableChip`. */
|
|
7
|
+
export declare function useExpandableChip({ main, startItems, endItems, startAdornment, endAdornment, expandFrom, variant, transition, open: openProp, defaultOpen, onOpenChange, }: UseExpandableChipArgs): {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
motion: Required<import("../type").ExpandableChipTransition>;
|
|
10
|
+
variant: import("../type").ExpandableChipVariant;
|
|
11
|
+
chipPaddingX: number;
|
|
12
|
+
handleOpen: () => void;
|
|
13
|
+
handleClose: () => void;
|
|
14
|
+
layout: import("../type").ExpandableChipLayout;
|
|
15
|
+
mainRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
16
|
+
startContentRefs: import("react").MutableRefObject<(HTMLSpanElement | null)[]>;
|
|
17
|
+
endContentRefs: import("react").MutableRefObject<(HTMLSpanElement | null)[]>;
|
|
18
|
+
startAdornmentRef: import("react").MutableRefObject<HTMLSpanElement | null>;
|
|
19
|
+
endAdornmentRef: import("react").MutableRefObject<HTMLSpanElement | null>;
|
|
20
|
+
startAdornmentWidth: import("framer-motion").MotionValue<number>;
|
|
21
|
+
endAdornmentWidth: import("framer-motion").MotionValue<number>;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as default,a as expandableChipClassNames}from'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|