@tap-payments/os-micro-frontend-shared 0.3.263 → 0.3.264-test.1793609694
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-6IAMZFT6.js → chunk-2JYBMD4I.js} +1 -1
- package/build/_chunks/{chunk-ZRRZG4CU.js → chunk-4JUVQWRF.js} +1 -1
- package/build/_chunks/chunk-5DKCOPDF.js +1 -0
- package/build/_chunks/{chunk-ALZSCMJI.js → chunk-64ZDTAAW.js} +1 -1
- package/build/_chunks/{chunk-VDOQXEUT.js → chunk-7NMMD6VJ.js} +1 -1
- package/build/_chunks/{chunk-54TY5SXL.js → chunk-ABVY4O2O.js} +1 -1
- package/build/_chunks/{chunk-OL6PQPSI.js → chunk-AJS7K55Q.js} +1 -1
- package/build/_chunks/chunk-AXNWVU3K.js +2 -0
- package/build/_chunks/{chunk-MBC5H6W7.js → chunk-BNM6FJCR.js} +1 -1
- package/build/_chunks/{chunk-3CMVSEFO.js → chunk-BRFCMPF5.js} +1 -1
- package/build/_chunks/{chunk-LJY75SQY.js → chunk-BXVLLRHG.js} +1 -1
- package/build/_chunks/{chunk-Q6AL55UP.js → chunk-DFEQ23C7.js} +1 -1
- package/build/_chunks/{chunk-5BAFTVZQ.js → chunk-DJRPY3A2.js} +1 -1
- package/build/_chunks/{chunk-ZZPTXUPF.js → chunk-DOZLA7RE.js} +1 -1
- package/build/_chunks/{chunk-PGRQEN5C.js → chunk-DRRME7J2.js} +1 -1
- package/build/_chunks/{chunk-BTE72W4R.js → chunk-EUMG4QKT.js} +1 -1
- package/build/_chunks/{chunk-YFIYVG7E.js → chunk-F3U4ZIAP.js} +1 -1
- package/build/_chunks/{chunk-IA5IEBOH.js → chunk-FMUJQ45L.js} +1 -1
- package/build/_chunks/{chunk-IRBWQZSH.js → chunk-FNUU2KSZ.js} +1 -1
- package/build/_chunks/{chunk-6BFV6NCN.js → chunk-GBGW63EG.js} +1 -1
- package/build/_chunks/{chunk-EB24OXAG.js → chunk-GFOWTME6.js} +1 -1
- package/build/_chunks/{chunk-5DFEQLOX.js → chunk-GHI2J2Y4.js} +1 -1
- package/build/_chunks/{chunk-44P3BD62.js → chunk-H4FZYTL7.js} +1 -1
- package/build/_chunks/chunk-HEMK2P3G.js +9 -0
- package/build/_chunks/{chunk-WYJOH2AK.js → chunk-HOHQMC2O.js} +1 -1
- package/build/_chunks/{chunk-PNIR4GUC.js → chunk-IBHWDBBJ.js} +1 -1
- package/build/_chunks/{chunk-ESRTU72R.js → chunk-IPEPXEL5.js} +1 -1
- package/build/_chunks/chunk-K5TV637V.js +2 -0
- package/build/_chunks/{chunk-JZN7D44A.js → chunk-K6LOVRKX.js} +1 -1
- package/build/_chunks/{chunk-Y2GYQNCW.js → chunk-KCIFOOFA.js} +1 -1
- package/build/_chunks/chunk-L3NA7BJY.js +2 -0
- package/build/_chunks/{chunk-UPSV4H3R.js → chunk-LDCBWAC4.js} +1 -1
- package/build/_chunks/{chunk-74TIGJAP.js → chunk-LON6X4MJ.js} +1 -1
- package/build/_chunks/{chunk-N7BI2AMJ.js → chunk-LTIWXK7D.js} +1 -1
- package/build/_chunks/{chunk-HBR7P4LZ.js → chunk-LVQ2UFZT.js} +1 -1
- package/build/_chunks/{chunk-BFVDSVFM.js → chunk-LXG5YXOJ.js} +1 -1
- package/build/_chunks/chunk-MF5ATA3Y.js +1 -0
- package/build/_chunks/{chunk-TYMPXKFT.js → chunk-MI3EC2ZF.js} +1 -1
- package/build/_chunks/{chunk-QNBOZQDY.js → chunk-NUCUSAD2.js} +1 -1
- package/build/_chunks/{chunk-TC4ME6DZ.js → chunk-ONANHXZA.js} +1 -1
- package/build/_chunks/{chunk-2YNDLGG6.js → chunk-OOLWSYGD.js} +1 -1
- package/build/_chunks/{chunk-WHPBDYOY.js → chunk-PUJ762TG.js} +1 -1
- package/build/_chunks/chunk-RC2N67CM.js +2 -0
- package/build/_chunks/{chunk-7GTNCNBB.js → chunk-REZFP4CA.js} +1 -1
- package/build/_chunks/chunk-RNJI3YXH.js +1 -0
- package/build/_chunks/chunk-RUFO5P34.js +1 -0
- package/build/_chunks/{chunk-334EPCW5.js → chunk-SMJCH23I.js} +1 -1
- package/build/_chunks/chunk-SRVQWLPZ.js +1 -0
- package/build/_chunks/{chunk-JWLIHVLP.js → chunk-TN55SPRQ.js} +1 -1
- package/build/_chunks/{chunk-4HUB6MWM.js → chunk-TX3XM6XL.js} +1 -1
- package/build/_chunks/chunk-TY7VGG46.js +1 -0
- package/build/_chunks/chunk-TZOMS57X.js +1 -0
- package/build/_chunks/{chunk-TDNUHD3F.js → chunk-UC5FMNUV.js} +1 -1
- package/build/_chunks/chunk-UFNFYH2N.js +1 -0
- package/build/_chunks/{chunk-M6SPV57Z.js → chunk-UPZR423T.js} +1 -1
- package/build/_chunks/{chunk-B4T3R7V3.js → chunk-UXR6RZN4.js} +1 -1
- package/build/_chunks/{chunk-LEFLUMTS.js → chunk-WC2MF35C.js} +1 -1
- package/build/_chunks/chunk-WFQ2555H.js +1 -0
- package/build/_chunks/{chunk-MQT2XWOM.js → chunk-WXCTMI3J.js} +1 -1
- package/build/_chunks/{chunk-ZT35MSJQ.js → chunk-X5HRCMTE.js} +1 -1
- package/build/_chunks/{chunk-MGH52F2U.js → chunk-XRUOTYCI.js} +1 -1
- package/build/_chunks/{chunk-7SNHZ7VW.js → chunk-XXCH74F3.js} +1 -1
- package/build/_chunks/{chunk-HWDXYAQY.js → chunk-YIZKLFYJ.js} +1 -1
- package/build/_chunks/{chunk-7ZWAT3EG.js → chunk-ZCULKYWE.js} +1 -1
- package/build/_chunks/{chunk-OGVYYV4P.js → chunk-ZUK5FRG5.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/Autocomplete.d.ts +5 -10
- package/build/components/Autocomplete/constants.d.ts +21 -0
- package/build/components/Autocomplete/icons.d.ts +10 -0
- package/build/components/Autocomplete/index.d.ts +3 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/Autocomplete/style.d.ts +37 -6
- package/build/components/Autocomplete/type.d.ts +59 -0
- package/build/components/Autocomplete/utils.d.ts +9 -0
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Card/index.js +1 -1
- package/build/components/CardList/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColorPicker/style.d.ts +1 -1
- package/build/components/ColumnViews/index.d.ts +1 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/types.d.ts +0 -5
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/CountryFlag.d.ts +2 -10
- package/build/components/CountryFlag/constants.d.ts +4 -0
- package/build/components/CountryFlag/index.d.ts +3 -2
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CountryFlag/style.d.ts +4 -0
- package/build/components/CountryFlag/type.d.ts +21 -0
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/CurrencySymbol.d.ts +3 -9
- package/build/components/CurrencySymbol/constants.d.ts +10 -0
- package/build/components/CurrencySymbol/index.d.ts +3 -2
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CurrencySymbol/style.d.ts +7 -7
- package/build/components/CurrencySymbol/type.d.ts +19 -0
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateInput/DateInput.d.ts +4 -0
- package/build/components/DateInput/constants.d.ts +74 -0
- package/build/components/DateInput/icons.d.ts +3 -0
- package/build/components/DateInput/index.d.ts +5 -0
- package/build/components/DateInput/index.js +1 -0
- package/build/components/DateInput/style.d.ts +38 -0
- package/build/components/DateInput/type.d.ts +84 -0
- package/build/components/DateInput/utils.d.ts +25 -0
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/GroupedSelect/icons.d.ts +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/GroupedSelect/style.d.ts +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/{ColumnViews → ListHeader/components}/ColumnViewsMenu.d.ts +7 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/FieldSelectedValues.d.ts +2 -2
- package/build/components/MultiLevelSelect/MultiLevelSelect.d.ts +4 -0
- package/build/components/MultiLevelSelect/NodeMenuItem.d.ts +11 -0
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/SelectableOption.d.ts +4 -4
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/SelectedChips.d.ts +3 -3
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/constants.d.ts +12 -12
- package/build/components/{InputBase/SelectBase/components/DefaultClearIcon.d.ts → MultiLevelSelect/icons.d.ts} +2 -2
- package/build/components/MultiLevelSelect/index.d.ts +4 -0
- package/build/components/MultiLevelSelect/index.js +1 -0
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/type.d.ts +10 -10
- package/build/components/{NestedMultiSelect → MultiLevelSelect}/utils.d.ts +12 -12
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/Select/Select.d.ts +4 -0
- package/build/components/Select/SelectField.d.ts +37 -0
- package/build/components/Select/SelectFieldValue.d.ts +14 -0
- package/build/components/Select/constants.d.ts +49 -0
- package/build/components/Select/icons.d.ts +9 -0
- package/build/components/Select/index.d.ts +5 -0
- package/build/components/Select/index.js +1 -0
- package/build/components/Select/style.d.ts +87 -0
- package/build/components/Select/type.d.ts +102 -0
- package/build/components/Select/utils.d.ts +39 -0
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/constants.d.ts +2 -0
- package/build/components/TextInput/index.js +1 -1
- package/build/components/TextInput/type.d.ts +6 -0
- package/build/components/TextInput/utils.d.ts +3 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/index.d.ts +6 -8
- package/build/components/index.js +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/primitives/FieldFeedback/icons.d.ts +2 -1
- package/build/components/primitives/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/user.d.ts +0 -46
- package/build/utils/index.js +1 -1
- package/build/utils/number.d.ts +7 -0
- package/package.json +1 -1
- package/build/_chunks/chunk-4YB6A7BD.js +0 -8
- package/build/_chunks/chunk-53C2M4NA.js +0 -1
- package/build/_chunks/chunk-637B2KTR.js +0 -2
- package/build/_chunks/chunk-D43ULOY2.js +0 -1
- package/build/_chunks/chunk-DS6S5G66.js +0 -1
- package/build/_chunks/chunk-FOSRKOWU.js +0 -1
- package/build/_chunks/chunk-FQ2VMVUY.js +0 -0
- package/build/_chunks/chunk-HDCNWBW5.js +0 -1
- package/build/_chunks/chunk-HS3LRC2D.js +0 -1
- package/build/_chunks/chunk-I3LSSBRI.js +0 -1
- package/build/_chunks/chunk-K43ZLU4I.js +0 -2
- package/build/_chunks/chunk-L3QJZAXC.js +0 -1
- package/build/_chunks/chunk-MH3KQO3F.js +0 -1
- package/build/_chunks/chunk-MUR4ILTY.js +0 -2
- package/build/_chunks/chunk-NW7HJXBW.js +0 -8
- package/build/_chunks/chunk-SNCNXCPA.js +0 -1
- package/build/_chunks/chunk-TR2D6CJW.js +0 -2
- package/build/_chunks/chunk-XK6PKLJK.js +0 -1
- package/build/_chunks/chunk-Y7SE3WMR.js +0 -1
- package/build/_chunks/chunk-YROLX5D7.js +0 -8
- package/build/components/FormSelect/FormSelect.d.ts +0 -8
- package/build/components/FormSelect/FormSelectMenuSearchInput.d.ts +0 -9
- package/build/components/FormSelect/FormSelectSearchableField.d.ts +0 -3
- package/build/components/FormSelect/FormSelectSelectMenu.d.ts +0 -21
- package/build/components/FormSelect/index.d.ts +0 -3
- package/build/components/FormSelect/index.js +0 -1
- package/build/components/FormSelect/style.d.ts +0 -52
- package/build/components/FormSelect/type.d.ts +0 -105
- package/build/components/FormSelect/utils.d.ts +0 -15
- package/build/components/Icons/LoadingIcon.d.ts +0 -4
- package/build/components/Icons/MenuSearchIcon.d.ts +0 -3
- package/build/components/Icons/index.d.ts +0 -2
- package/build/components/Icons/index.js +0 -1
- package/build/components/InputBase/SelectBase/SelectBase.d.ts +0 -46
- package/build/components/InputBase/SelectBase/SelectBaseMultiple.d.ts +0 -33
- package/build/components/InputBase/SelectBase/components/DefaultSelectIcon.d.ts +0 -5
- package/build/components/InputBase/SelectBase/components/SelectBaseEndAdornment.d.ts +0 -13
- package/build/components/InputBase/SelectBase/components/SelectInlineProgress.d.ts +0 -6
- package/build/components/InputBase/SelectBase/index.d.ts +0 -3
- package/build/components/InputBase/SelectBase/style.d.ts +0 -14
- package/build/components/InputBase/SelectBase/utils.d.ts +0 -2
- package/build/components/InputBase/index.d.ts +0 -1
- package/build/components/InputBase/index.js +0 -1
- package/build/components/Inputs/Select/Select.d.ts +0 -3
- package/build/components/Inputs/Select/index.d.ts +0 -2
- package/build/components/Inputs/Select/type.d.ts +0 -9
- package/build/components/Inputs/index.d.ts +0 -2
- package/build/components/Inputs/index.js +0 -1
- package/build/components/MultiSelect/MultiSelect.d.ts +0 -21
- package/build/components/MultiSelect/index.d.ts +0 -2
- package/build/components/MultiSelect/index.js +0 -1
- package/build/components/MultiSelect/style.d.ts +0 -40
- package/build/components/NestedMultiSelect/NestedMultiSelect.d.ts +0 -4
- package/build/components/NestedMultiSelect/NodeMenuItem.d.ts +0 -11
- package/build/components/NestedMultiSelect/icons.d.ts +0 -2
- package/build/components/NestedMultiSelect/index.d.ts +0 -4
- package/build/components/NestedMultiSelect/index.js +0 -1
- /package/build/components/{NestedMultiSelect → MultiLevelSelect}/BranchMenuItem.d.ts +0 -0
- /package/build/components/{NestedMultiSelect → MultiLevelSelect}/style.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-BFVDSVFM.js';import {a,c as c$1,d as d$1}from'./chunk-EG32DA46.js';import {b,a as a$1}from'./chunk-DS6S5G66.js';import {zc,xa}from'./chunk-I3LSSBRI.js';import {If}from'./chunk-IQAHULGQ.js';import {createContext,memo,forwardRef,useRef,useState,useId,useCallback,useMemo,useContext,useLayoutEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {Dialog,styled,Box,Button,alpha}from'@mui/material';import wt from'@mui/material/Box';import {Resizable}from're-resizable';import Wt from'react-draggable';import {motion}from'framer-motion';var Q=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var we=(e,t)=>t.toLowerCase().includes(e);function be(e,t,n){let i=we("top",t),o=we("left",t);return !i&&!o?null:{x:o?e.x+n.width:e.x,y:i?e.y-n.height:e.y}}var We=e=>{let{viewportWidth:t,viewportHeight:n,viewerDefaultWidth:i,viewerDefaultHeight:o,initialPosition:p,isMaximized:l,containerRef:r}=e,d=!l&&r?.current&&r.current!==document.body?r.current:null,u=d?.getBoundingClientRect(),a=u?.left??0,c=u?.top??0,m=d?.clientWidth||t,x=p?.x??t/2-i/2,h=p?.y??n/2-o/2;return {x:m-(x-a),y:h-c}};var et=555,tt=545;function ne({children:e,isOpen:t,onClose:n,defaultWindowHeight:i,defaultWindowWidth:o,initialPosition:p,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a,windowZIndex:c=1}){let{height:m,width:x}=a$1(),[h,O]=useState(false),k=h?null:a?.current,I=k?.clientWidth||x,y=k?.clientHeight||m,D=o||et,s=i||tt,[B,L]=useState(()=>We({viewportWidth:x,viewportHeight:m,viewerDefaultWidth:D,viewerDefaultHeight:s,initialPosition:p,isMaximized:h,containerRef:a})),[P,H]=useState(false),[F,T]=useState(false),[S,G]=useState(true),W=useRef(),[U,z]=useState({width:o??0,height:i??0}),V=useCallback(g=>{W?.current?.updateSize(g);},[]),C=useCallback(g=>{W.current?.updateSize(g),z(A=>({width:g.width??A.width,height:g.height??A.height}));},[]),j=useMemo(()=>({position:B,setPosition:L,resizableRef:W,windowZIndex:c,isOpen:t,setIsMaximized:O,setIsSidebarExpanded:G,setIsToolbarAnimationDisabled:T,setIsResized:H,isMaximized:h,isToolbarAnimationDisabled:F,isSidebarExpanded:S,isResized:P,dimensions:U,setNewDimensions:z,viewerDefaultWidth:D,viewerDefaultHeight:s,onClose:n,fullWindowWidth:I,fullWindowHeight:y,viewportWidth:x,viewportHeight:m,updateRefSize:V,updateSize:C,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a}),[B,L,W,t,O,G,T,H,h,F,S,P,U,z,I,y,x,m,D,s,V,C,n,l,r,d,u,a,c]);return jsx(Q.Provider,{value:j,children:e})}var ee=35;var te=createContext(null);function rt({title:e,onClose:t,onMaximize:n,maximized:i=false,id:o,onRequestClick:p,isSidebarExpanded:l=false,isHovered:r=false,onMouseHover:d$2,onMouseLeave:u,showSectionsButton:a$1,rightActions:c$2,icon:m}){return jsx(c,{id:o,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:d$2,onMouseLeave:u,isMaximized:i,isHovered:r,title:e,icon:m||If,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t},"window-close"),jsx(c$1,{isMaximized:i,onClick:n},"window-maximize"),a$1&&jsx(d$1,{onClick:p,isExpanded:!l,isHovered:r,children:"Sidebar"},"window-sections")]}),rightActions:c$2})})}var ve=memo(rt);var re=ve;function lt({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:n,onClose:i,isSidebarExpanded:o,setIsSidebarExpanded:p,isToolbarAnimationDisabled:l,title:r,showSectionsButton:d,rightActions:u,icon:a}){let{isHovered:c,onMouseEnter:m,onMouseLeave:x}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(re,{title:r||"Users",showSectionsButton:d,onClose:i,onMaximize:()=>{n?.(h=>!h),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),p(!o);},isSidebarExpanded:o,isHovered:c,onMouseHover:m,onMouseLeave:x,rightActions:u,icon:a})})}var Te=memo(lt);var Ee=Te;var gt=forwardRef(function({children:t,titleBar:n,titleBarText:i,mainAppOrder:o,mainAppIsMinimized:p,showSectionsButton:l=true,rightActions:r,titleBarIcon:d,overflow:u="hidden"},a){let c=useRef(null),[m,x]=useState(null),h=zc(useId(),"app-window"),O=useCallback(f=>{c.current=f,x(R=>R===f?R:f),typeof a=="function"?a(f):a&&(a.current=f);},[a]),k=useMemo(()=>({current:m}),[m]),{dimensions:I,position:y,resizableRef:D,isMaximized:s,isOpen:B,onClose:L,viewerDefaultWidth:P,viewerDefaultHeight:H,windowZIndex:F,setPosition:T,setNewDimensions:S,isToolbarAnimationDisabled:G,fullWindowWidth:W,fullWindowHeight:U,viewportWidth:z,viewportHeight:V,setIsMaximized:C,setIsResized:j,isResized:g,setIsToolbarAnimationDisabled:A,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,minWidth:Ge,maxWidth:Ue,minHeight:Ve,maxHeight:je,containerRef:ie}=useContext(Q),w=useMemo(()=>document.createElement("div"),[]),[Xe,qe]=useState(null);useLayoutEffect(()=>{qe(ie?.current??document.body);},[ie]);let b=s?document.body:Xe;useLayoutEffect(()=>{if(!b)return;let f=b===document.body;return w.style.position=f?"":"absolute",w.style.inset=f?"":"0",w.style.pointerEvents="none",w.style.overflow="visible",b.appendChild(w),()=>{w.parentNode===b&&b.removeChild(w);}},[b,w]);let pe=useRef({x:0,y:0}),le=xa(),Ke=useCallback((f,R,q,Ze)=>{j(true),S({width:q.offsetWidth,height:q.offsetHeight});let ue=be(pe.current,R,Ze);ue&&T(ue);},[S,j,T]),X=I.width||P;if(!b)return null;let Ye=jsx(Wt,{nodeRef:c,disabled:s,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-X/2,y:U/2-H/2},position:{x:W-y.x,y:y.y},onStop:(f,R)=>{let q=ie?.current?.clientWidth||W;T({x:q-R.x,y:R.y});},...b===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:O,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(o||0)+F+(s?1:0),...p&&{display:"none"},...b===document.body?!s&&{transform:"translate(180px, 14px)"}:!s&&{position:"absolute"},...!s&&{width:le?X:"fit-content",height:le?H:"fit-content"},...s&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:u,width:g?"fit-content":X,height:g?"fit-content":"100%",...s&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{C(false),A(true),setTimeout(()=>{A(false);},.5*1e3);},open:B,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:w,fullScreen:s,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:I.width,height:I.height},maxHeight:je??V-40,maxWidth:Ue??z,minWidth:s?"100vw":Ge??P,minHeight:s?"100vh":Ve??H,ref:f=>{D.current=f;},onResizeStart:()=>{pe.current=y,A(true);},onResizeStop:()=>{A(false);},onResize:Ke,defaultSize:{width:X,height:H},style:{background:"transparent",height:I.height,overflow:u,...s&&{height:"100% !important",width:"100% !important",flex:1},...s&&{position:"relative"}},children:jsxs(wt,{sx:{height:"100%"},id:h,"data-testid":"AppWindow",children:[n??jsx(Ee,{setIsToolbarAnimationDisabled:A,onClose:L,setIsMaximized:C,isToolbarAnimationDisabled:G,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,title:i,isMaximized:s,showSectionsButton:l,rightActions:r,icon:d}),jsx(te.Provider,{value:k,children:t})]})})})});return createPortal(Ye,w)}),Me=memo(gt);var Ht=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Rt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),vt=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),yt=styled(Box)(()=>({position:"fixed",height:ee,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),Tt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var se=Me;var Pt=forwardRef(function({children:t,windowProps:n,inheritParentContainer:i=false,...o},p){let l=useContext(te),r=i?l??void 0:void 0,d=o.containerRef??r;return o.isOpen?jsx(ne,{...o,containerRef:d,children:jsx(se,{...n,ref:p,children:t})}):null}),Oe=Pt;function zt({title:e,maximized:t=false,id:n,isHovered:i=false,onMouseHover:o,onMouseLeave:p,leftActions:l,titleIconSrc:r,sx:d$1,...u}){return jsx(c,{className:"header-wrapper",id:n,maximized:t||false,sx:d$1,...u,children:jsx(d,{onMouseEnter:o,onMouseLeave:p,isMaximized:t,isHovered:i,title:e||"",icon:r,leftActions:l})})}var de=memo(zt);function _t({isMaximized:e,id:t,isToolbarAnimationDisabled:n,title:i,leftActions:o,onClose:p,onMaximize:l,sx:r}){let{isHovered:d,onMouseEnter:u,onMouseLeave:a$1}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...n&&{duration:0}},children:jsx(de,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:d,onMouseHover:u,onMouseLeave:a$1,leftActions:o||jsxs(Fragment,{children:[jsx(a,{onClick:p}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:r})})}var Be=memo(_t);var kt=Be;var li=Oe;export{Q as a,ne as b,ee as c,re as d,Ht as e,Rt as f,vt as g,yt as h,Tt as i,se as j,de as k,kt as l,li as m};
|
|
1
|
+
import {c,d}from'./chunk-LXG5YXOJ.js';import {a,c as c$1,d as d$1}from'./chunk-EG32DA46.js';import {b,a as a$1}from'./chunk-5DKCOPDF.js';import {Bc,za}from'./chunk-RUFO5P34.js';import {If}from'./chunk-IQAHULGQ.js';import {createContext,memo,forwardRef,useRef,useState,useId,useCallback,useMemo,useContext,useLayoutEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {Dialog,styled,Box,Button,alpha}from'@mui/material';import wt from'@mui/material/Box';import {Resizable}from're-resizable';import Wt from'react-draggable';import {motion}from'framer-motion';var Q=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var we=(e,t)=>t.toLowerCase().includes(e);function be(e,t,n){let i=we("top",t),o=we("left",t);return !i&&!o?null:{x:o?e.x+n.width:e.x,y:i?e.y-n.height:e.y}}var We=e=>{let{viewportWidth:t,viewportHeight:n,viewerDefaultWidth:i,viewerDefaultHeight:o,initialPosition:p,isMaximized:l,containerRef:r}=e,d=!l&&r?.current&&r.current!==document.body?r.current:null,u=d?.getBoundingClientRect(),a=u?.left??0,c=u?.top??0,m=d?.clientWidth||t,x=p?.x??t/2-i/2,h=p?.y??n/2-o/2;return {x:m-(x-a),y:h-c}};var et=555,tt=545;function ne({children:e,isOpen:t,onClose:n,defaultWindowHeight:i,defaultWindowWidth:o,initialPosition:p,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a,windowZIndex:c=1}){let{height:m,width:x}=a$1(),[h,O]=useState(false),k=h?null:a?.current,I=k?.clientWidth||x,y=k?.clientHeight||m,D=o||et,s=i||tt,[B,L]=useState(()=>We({viewportWidth:x,viewportHeight:m,viewerDefaultWidth:D,viewerDefaultHeight:s,initialPosition:p,isMaximized:h,containerRef:a})),[P,H]=useState(false),[F,T]=useState(false),[S,G]=useState(true),W=useRef(),[U,z]=useState({width:o??0,height:i??0}),V=useCallback(g=>{W?.current?.updateSize(g);},[]),C=useCallback(g=>{W.current?.updateSize(g),z(A=>({width:g.width??A.width,height:g.height??A.height}));},[]),j=useMemo(()=>({position:B,setPosition:L,resizableRef:W,windowZIndex:c,isOpen:t,setIsMaximized:O,setIsSidebarExpanded:G,setIsToolbarAnimationDisabled:T,setIsResized:H,isMaximized:h,isToolbarAnimationDisabled:F,isSidebarExpanded:S,isResized:P,dimensions:U,setNewDimensions:z,viewerDefaultWidth:D,viewerDefaultHeight:s,onClose:n,fullWindowWidth:I,fullWindowHeight:y,viewportWidth:x,viewportHeight:m,updateRefSize:V,updateSize:C,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a}),[B,L,W,t,O,G,T,H,h,F,S,P,U,z,I,y,x,m,D,s,V,C,n,l,r,d,u,a,c]);return jsx(Q.Provider,{value:j,children:e})}var ee=35;var te=createContext(null);function rt({title:e,onClose:t,onMaximize:n,maximized:i=false,id:o,onRequestClick:p,isSidebarExpanded:l=false,isHovered:r=false,onMouseHover:d$2,onMouseLeave:u,showSectionsButton:a$1,rightActions:c$2,icon:m}){return jsx(c,{id:o,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:d$2,onMouseLeave:u,isMaximized:i,isHovered:r,title:e,icon:m||If,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t},"window-close"),jsx(c$1,{isMaximized:i,onClick:n},"window-maximize"),a$1&&jsx(d$1,{onClick:p,isExpanded:!l,isHovered:r,children:"Sidebar"},"window-sections")]}),rightActions:c$2})})}var ve=memo(rt);var re=ve;function lt({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:n,onClose:i,isSidebarExpanded:o,setIsSidebarExpanded:p,isToolbarAnimationDisabled:l,title:r,showSectionsButton:d,rightActions:u,icon:a}){let{isHovered:c,onMouseEnter:m,onMouseLeave:x}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(re,{title:r||"Users",showSectionsButton:d,onClose:i,onMaximize:()=>{n?.(h=>!h),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),p(!o);},isSidebarExpanded:o,isHovered:c,onMouseHover:m,onMouseLeave:x,rightActions:u,icon:a})})}var Te=memo(lt);var Ee=Te;var gt=forwardRef(function({children:t,titleBar:n,titleBarText:i,mainAppOrder:o,mainAppIsMinimized:p,showSectionsButton:l=true,rightActions:r,titleBarIcon:d,overflow:u="hidden"},a){let c=useRef(null),[m,x]=useState(null),h=Bc(useId(),"app-window"),O=useCallback(f=>{c.current=f,x(R=>R===f?R:f),typeof a=="function"?a(f):a&&(a.current=f);},[a]),k=useMemo(()=>({current:m}),[m]),{dimensions:I,position:y,resizableRef:D,isMaximized:s,isOpen:B,onClose:L,viewerDefaultWidth:P,viewerDefaultHeight:H,windowZIndex:F,setPosition:T,setNewDimensions:S,isToolbarAnimationDisabled:G,fullWindowWidth:W,fullWindowHeight:U,viewportWidth:z,viewportHeight:V,setIsMaximized:C,setIsResized:j,isResized:g,setIsToolbarAnimationDisabled:A,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,minWidth:Ge,maxWidth:Ue,minHeight:Ve,maxHeight:je,containerRef:ie}=useContext(Q),w=useMemo(()=>document.createElement("div"),[]),[Xe,qe]=useState(null);useLayoutEffect(()=>{qe(ie?.current??document.body);},[ie]);let b=s?document.body:Xe;useLayoutEffect(()=>{if(!b)return;let f=b===document.body;return w.style.position=f?"":"absolute",w.style.inset=f?"":"0",w.style.pointerEvents="none",w.style.overflow="visible",b.appendChild(w),()=>{w.parentNode===b&&b.removeChild(w);}},[b,w]);let pe=useRef({x:0,y:0}),le=za(),Ke=useCallback((f,R,q,Ze)=>{j(true),S({width:q.offsetWidth,height:q.offsetHeight});let ue=be(pe.current,R,Ze);ue&&T(ue);},[S,j,T]),X=I.width||P;if(!b)return null;let Ye=jsx(Wt,{nodeRef:c,disabled:s,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-X/2,y:U/2-H/2},position:{x:W-y.x,y:y.y},onStop:(f,R)=>{let q=ie?.current?.clientWidth||W;T({x:q-R.x,y:R.y});},...b===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:O,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(o||0)+F+(s?1:0),...p&&{display:"none"},...b===document.body?!s&&{transform:"translate(180px, 14px)"}:!s&&{position:"absolute"},...!s&&{width:le?X:"fit-content",height:le?H:"fit-content"},...s&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:u,width:g?"fit-content":X,height:g?"fit-content":"100%",...s&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{C(false),A(true),setTimeout(()=>{A(false);},.5*1e3);},open:B,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:w,fullScreen:s,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:I.width,height:I.height},maxHeight:je??V-40,maxWidth:Ue??z,minWidth:s?"100vw":Ge??P,minHeight:s?"100vh":Ve??H,ref:f=>{D.current=f;},onResizeStart:()=>{pe.current=y,A(true);},onResizeStop:()=>{A(false);},onResize:Ke,defaultSize:{width:X,height:H},style:{background:"transparent",height:I.height,overflow:u,...s&&{height:"100% !important",width:"100% !important",flex:1},...s&&{position:"relative"}},children:jsxs(wt,{sx:{height:"100%"},id:h,"data-testid":"AppWindow",children:[n??jsx(Ee,{setIsToolbarAnimationDisabled:A,onClose:L,setIsMaximized:C,isToolbarAnimationDisabled:G,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,title:i,isMaximized:s,showSectionsButton:l,rightActions:r,icon:d}),jsx(te.Provider,{value:k,children:t})]})})})});return createPortal(Ye,w)}),Me=memo(gt);var Ht=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Rt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),vt=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),yt=styled(Box)(()=>({position:"fixed",height:ee,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),Tt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var se=Me;var Pt=forwardRef(function({children:t,windowProps:n,inheritParentContainer:i=false,...o},p){let l=useContext(te),r=i?l??void 0:void 0,d=o.containerRef??r;return o.isOpen?jsx(ne,{...o,containerRef:d,children:jsx(se,{...n,ref:p,children:t})}):null}),Oe=Pt;function zt({title:e,maximized:t=false,id:n,isHovered:i=false,onMouseHover:o,onMouseLeave:p,leftActions:l,titleIconSrc:r,sx:d$1,...u}){return jsx(c,{className:"header-wrapper",id:n,maximized:t||false,sx:d$1,...u,children:jsx(d,{onMouseEnter:o,onMouseLeave:p,isMaximized:t,isHovered:i,title:e||"",icon:r,leftActions:l})})}var de=memo(zt);function _t({isMaximized:e,id:t,isToolbarAnimationDisabled:n,title:i,leftActions:o,onClose:p,onMaximize:l,sx:r}){let{isHovered:d,onMouseEnter:u,onMouseLeave:a$1}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...n&&{duration:0}},children:jsx(de,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:d,onMouseHover:u,onMouseLeave:a$1,leftActions:o||jsxs(Fragment,{children:[jsx(a,{onClick:p}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:r})})}var Be=memo(_t);var kt=Be;var li=Oe;export{Q as a,ne as b,ee as c,re as d,Ht as e,Rt as f,vt as g,yt as h,Tt as i,se as j,de as k,kt as l,li as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,j as j$1,V,U,n,R,d as d$1}from'./chunk-
|
|
1
|
+
import {b,j as j$1,V,U,n,R,d as d$1}from'./chunk-AXNWVU3K.js';import {nc}from'./chunk-RUFO5P34.js';import {Oj,m}from'./chunk-IQAHULGQ.js';import {memo,forwardRef,useState,useMemo,useCallback}from'react';import Fe from'@mui/material/ClickAwayListener';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import Pe from'@mui/material/SvgIcon';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';var c="os-shared-CurrenciesMenu",r={root:`${c}-root`,trigger:`${c}-trigger`,triggerInfo:`${c}-triggerInfo`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,static:`${c}-static`,flag:`${c}-flag`,category:`${c}-category`,categoryLabel:`${c}-categoryLabel`,option:`${c}-option`,optionLabel:`${c}-optionLabel`};function $e({currency:e,className:o,sx:t}){let i=u=>{u.currentTarget.src!==Oj&&(u.currentTarget.src=Oj);};return jsx(d$1,{src:e?m(e):Oj,alt:e||"flag",onError:i,className:nc(r.flag,o),sx:t??{width:14,height:14}})}var C=memo($e);var j=e=>jsx(Pe,{viewBox:"0 0 8 5",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"})});function Se({currency:e,selected:o,renderOption:t}){return t?jsx(Fragment,{children:t(e,{selected:o})}):jsxs(Fragment,{children:[jsx(C,{currency:e}),jsx(j$1,{sx:{fontSize:11},className:r.optionLabel,children:e})]})}var re=memo(Se);var y=styled(d)(()=>({display:"inline-block"})),S=styled(b,{shouldForwardProp:e=>e!=="$open"})(({theme:e,$open:o=false})=>{let{base:t,border:i,brand:u}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"space-between",height:32,border:`1px solid ${i.default}`,borderRadius:e.v2.radius(4),backgroundColor:t.white,minWidth:74,padding:e.v2.spacing(8),color:t.black,...Re(o,u[500]),"&.Mui-disabled":{opacity:.7,border:`1px solid ${i.default}`,backgroundColor:t.white,color:t.black}}});function Re(e,o){return e?{borderColor:o}:{}}var O=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0})),M=styled(j$1)(()=>({fontSize:"11px",fontWeight:500,lineHeight:1.1})),F=styled(d,{shouldForwardProp:e=>e!=="$open"})(({$open:e=false})=>({display:"flex",alignItems:"center",flexShrink:0,transition:"transform 200ms cubic-bezier(0.4, 0, 0.2, 1)",...e&&{transform:"rotate(180deg)"}})),te=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0,padding:e.v2.spacing(8)})),oe=styled(d)(({theme:e})=>({borderBottom:`1px solid ${e.v2.palette.border.default}`,paddingBottom:e.v2.spacing(8),"&:last-child":{borderBottom:"none",paddingBottom:0}})),ne=styled(j$1)(({theme:e})=>({color:e.v2.palette.grey[500],fontSize:"10px",fontWeight:500,lineHeight:"100%",padding:e.v2.spacing(8)})),se=styled(V)({gap:"4px",borderTop:"none !important",height:24,[`& .${U.indicator}`]:{fontSize:11},"&:hover":{boxShadow:"7px 0px 8px 0px #F2F2F2"}});function Ae({currency:e,selected:o,onSelect:t,renderOption:i}){return jsx(se,{isSelected:o,startAdornment:null,onClick:()=>t(e),className:nc(r.option),children:jsx(re,{currency:e,selected:o,renderOption:i})})}var ae=memo(Ae);function z(e){if(!e)return "";for(let o of e){if(typeof o=="string")return o;let t=o.items??[];if(t.length>0)return t[0]}return ""}function le(e){if(!e||e.length===0)return [];let o=[],t=[],i=0,u=()=>{t.length>0&&(o.push({key:`flat-${i++}`,items:t}),t=[]);};for(let m of e)if(typeof m=="string")t.push(m);else {u();let l=m.items??[];if(l.length===0)continue;o.push({key:`group-${i++}`,label:m.label,items:l});}return u(),o}function ce(e){if(!e)return 0;let o=0;for(let t of e)typeof t=="string"?o+=1:o+=t.items?.length??0;return o}var pe=forwardRef(({value:e,defaultValue:o,onChange:t,options:i,isLoading:u=false,disabled:m=false,id:l,className:b,sx:x,menuPlacement:me,menuProps:ge,placeholder:h="",triggerIcon:D,renderOption:fe,renderSelected:N,...I},L)=>{let[G,V]=useState(null),[Ce,de]=useState(()=>o??z(i)),B=e!==void 0,v=B?e:Ce,$=!!G,ye=useMemo(()=>le(i),[i]),Z=useMemo(()=>ce(i),[i]),Me=useCallback(a=>{m||V(a.currentTarget);},[m]),A=useCallback(()=>{V(null);},[]),be=useCallback(a=>{B||de(a),t?.(a),A();},[B,t,A]),w=D===void 0?jsx(j,{}):D,{placement:xe,sx:P,...he}=ge??{},Ne=xe??me,Ie=useMemo(()=>[{margin:"8px 0",minWidth:74},...Array.isArray(P)?P:[P]],[P]);if(u)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),jsx(n,{size:12})]})});if(Z===0)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),w?jsx(F,{$open:false,className:nc(r.triggerArrow),children:w}):null]})});if(Z===1){let a=z(i);return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsx(te,{className:nc(r.static),children:N?jsx(Fragment,{children:N(a)}):jsxs(Fragment,{children:[jsx(C,{currency:a}),jsx(M,{className:nc(r.triggerLabel),children:a||h})]})})})}return jsx(Fe,{onClickAway:A,children:jsxs(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:[jsxs(S,{variant:"secondary",$open:$,disabled:m,onClick:Me,"aria-haspopup":"listbox","aria-expanded":$,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:N?jsx(Fragment,{children:N(v)}):jsxs(Fragment,{children:[jsx(C,{currency:v}),jsx(M,{className:nc(r.triggerLabel),children:v||h})]})}),w?jsx(F,{$open:$,className:nc(r.triggerArrow),children:w}):null]}),jsx(R,{open:$,anchorEl:G,placement:Ne,sx:Ie,...he,children:ye.map(a=>jsxs(oe,{className:nc(r.category),children:[a.label?jsx(ne,{className:nc(r.categoryLabel),children:a.label}):null,a.items.map((T,Le)=>jsx(ae,{currency:T,selected:T===v,onSelect:be,renderOption:fe},`${a.key}:${T}-${Le}`))]},a.key))})]})})});pe.displayName="CurrenciesMenu";var ze=memo(pe);export{r as a,ze as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-GFOWTME6.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MF5ATA3Y.js';import {L,aa,B}from'./chunk-AXNWVU3K.js';import {Dc}from'./chunk-RUFO5P34.js';import {Eb,A}from'./chunk-IQAHULGQ.js';import ne,{memo,useState,useEffect}from'react';import P from'@mui/material/Box';import te from'@mui/material/InputAdornment';import oe from'@mui/material/Skeleton';import {styled,Popper,Box,ClickAwayListener}from'@mui/material';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var N=styled("button")(({theme:e,disabled:o})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"12px",borderRadius:"3px"},".arrow":{width:14,alignSelf:""},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px",borderRadius:"2px"},cursor:o?"default":"pointer",opacity:o?.5:1,paddingTop:0,backgroundColor:"transparent",border:"none",paddingInlineStart:0,minWidth:70,marginTop:1})),_=styled(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),H=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),q=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),z=styled(L)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(Box)(()=>({color:"red !important"}));function G({isLoading:e,countries:o,value:n,onCountryChange:l,required:b,disabled:f}){let[a,C]=useState(),[u,g]=useState(null),[y,i]=useState([]),[I,S]=useState(""),s=!!u&&!f,w=t=>{t.stopPropagation(),g(t.currentTarget);},m=()=>{g(null);},L=t=>{l?.(t),C(t),m(),i(o);},k=t=>{let p=t.target.value.toString()??"";if(S(p),!p){i(o);return}let Y=o.filter(F=>F.idd_prefix.toString().startsWith(p)||F.iso2.toLowerCase().startsWith(p.toLowerCase()));i(Y);};return useEffect(()=>{n&&C(n);},[n?.countryId]),useEffect(()=>{o.length&&i(o);},[o.length]),jsxs(P,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(N,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:w,disabled:e||f,children:e?jsx(oe,{variant:"rectangular",width:56.5,height:15,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[a&&jsxs(Fragment,{children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx(P,{component:"span",flex:1,children:`+${a?.idd_prefix}`})]}),b&&jsx(D,{component:"span",children:"*"}),jsx(P,{component:"img",src:Eb,alt:"d",className:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]})}),s&&jsx(B,{onClick:m,sx:{zIndex:9999}}),s&&jsx(ClickAwayListener,{onClickAway:m,children:jsxs(_,{id:"CountriesList_CountriesWrapper",open:s,anchorEl:u,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-8,6]}}],children:[jsx(z,{type:"number",endAdornment:jsx(te,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:k,hideArrows:true,disableFocusRing:true,"data-testid":"CountriesList_InputStyled",value:I}),jsx(H,{"data-testid":"CountriesList_CountriesListStyled",children:y.map(t=>{let p=a?.countryId===t.countryId;return jsxs(q,{onClick:()=>{L(t);},sx:{backgroundColor:p?"#F9F9F9":"transparent",color:p?"#000":"#8D8D94"},children:[jsx("img",{src:t.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`)})})]})})]})}G.displayName="CountriesList";var V=memo(G);var v=V;styled$1(P,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:o,hasFeedback:n})=>{let{borderColor:l}=aa(e,o);return {border:`1px solid ${o?l:e.palette.divider}`,display:"flex",position:"relative",alignItems:"center",borderRadius:n?"4px 4px 0 0":"4px",borderBottom:n?"none":void 0}});var K=styled$1(b)({flexGrow:1,maxWidth:"100%",paddingInlineEnd:0,img:{cursor:"pointer"}});styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));styled$1(P)(()=>({flex:1}));function U({phoneValue:e,error:o,hasError:n,countries:l,isCountriesLoading:b,countryValue:f,onCountryChange:a,onPhoneChange:C,helperText:u,required:g,disabled:y,feedback:i,id:I="PhoneInput",...S},s){let w=t=>{a?.(t);},m=i?.message??u,{isProvided:L}=Dc(i,{message:m});return jsx(K,{id:I,type:"number",value:e,"data-testid":"PhoneInput",ref:s,inputProps:{autoComplete:"off"},error:(o??n??false)&&!L,disabled:y,feedback:i,helperText:u,startAdornment:jsx(v,{isLoading:b,countries:l,value:f,onCountryChange:w,required:g,disabled:y}),...S,onChange:C,hideArrows:true})}U.displayName="PhoneInput";var X=ne.forwardRef(U);export{v as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {mc,nc}from'./chunk-RUFO5P34.js';import {forwardRef,useCallback,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var n="os-shared-FilterChip",r={root:`${n}-root`,label:`${n}-label`,dismissButton:`${n}-dismissButton`,dismissIcon:`${n}-dismissIcon`},h=",",u="Dismiss filter";function y({className:t}){return jsxs("svg",{className:t,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":"true",children:[jsx("path",{d:"M1.79488 1.73941L6.31572 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M6.31572 1.73941L1.79488 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"})]})}var S=styled("div",{shouldForwardProp:t=>!["$disabled"].includes(t)})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",gap:t.v2.spacing(8),height:"32px",paddingInline:t.v2.spacing(16),minWidth:"8.4rem",maxWidth:"16rem",boxSizing:"border-box",background:"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",color:o.white,borderRadius:t.v2.radius(48),...t.v2.typography.textVariants.body.small.regular,whiteSpace:"nowrap",overflow:"hidden",cursor:"default",opacity:e?.6:1}}),L=styled("span")({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto",textAlign:"center"}),I=styled("button",{shouldForwardProp:t=>t!=="$disabled"})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",flexShrink:0,width:"16px",height:"16px",padding:0,border:"none",borderRadius:"50%",backgroundColor:alpha(o.black,.1),color:o.white,cursor:e?"not-allowed":"pointer",opacity:e?.6:1,transition:"opacity 150ms ease, background-color 150ms ease","&:hover":e?void 0:{backgroundColor:alpha(o.black,.2)},"&:focus-visible":{outline:`2px solid ${o.white}`,outlineOffset:"1px"},"& svg":{display:"block"}}});var E=forwardRef(({label:t,value:e,separator:o=h,visible:_=true,dismissible:k=true,onDismiss:p,dismissLabel:P=u,disabled:s=false,children:x,id:F,sx:R,className:w,slotProps:A,"data-testid":T},D)=>{let{label:d,dismissButton:i}=A??{},v=useCallback(m=>{m.stopPropagation(),!s&&(i?.onClick?.(m),p?.(m));},[s,i,p]);if(!_)return null;let c=t??(typeof e=="string"?e:e&&e.length>0?e.join(o):void 0);if(!c&&!x)return null;let N=k&&p!=null;return jsxs(S,{ref:D,id:F,"data-testid":T??F??"FilterChip",className:nc(r.root,w),sx:mc({},R),$disabled:s,role:"status",children:[c?jsx(L,{...d,className:nc(r.label,d?.className),sx:mc({},d?.sx),children:c}):x,N&&jsx(I,{...i,type:"button","aria-label":i?.["aria-label"]??P,disabled:s,onClick:v,className:nc(r.dismissButton,i?.className),sx:mc({},i?.sx),$disabled:s,children:jsx(y,{className:r.dismissIcon})})]})});E.displayName="FilterChip";var U=memo(E);export{r as a,h as b,u as c,U as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {nc}from'./chunk-RUFO5P34.js';import {forwardRef,useRef,useState,useCallback,useLayoutEffect,memo}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s="os-shared-CardList",e={root:`${s}-root`,item:`${s}-item`,itemContent:`${s}-itemContent`,itemStartAdornment:`${s}-itemStartAdornment`,itemText:`${s}-itemText`,itemEndAdornment:`${s}-itemEndAdornment`};var b=styled(g,{shouldForwardProp:t=>t!=="$showShadow"})(({theme:t,$showShadow:a})=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,boxSizing:"border-box",[`& .${e.item}:last-of-type`]:{borderBottom:"none"},"&::after":{content:'""',position:"sticky",bottom:0,display:"block",height:"32px",marginTop:"-32px",background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(251, 251, 251, 0.8) 100%)",borderRadius:"0 0 8px 8px",pointerEvents:"none",zIndex:1,transition:t.transitions.create("opacity",{duration:250}),opacity:a?1:0}})),N=styled(g)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40,boxSizing:"border-box"})),E=styled("aside")({display:"flex",alignItems:"center",gap:"8px"}),T=styled("span")(({theme:t})=>({color:t.v2.palette.base.black,fontSize:"11px",fontWeight:500,lineHeight:"13.2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),$=styled("aside")({display:"flex",alignItems:"center"}),A=styled("aside")({display:"flex",alignItems:"center",gap:"4px"});var v=forwardRef(({hasShadow:t=true,children:a,onScroll:i,id:d,className:l,sx:p,"data-testid":c,...C},r)=>{let L=useRef(null),[P,H]=useState(true),f=useCallback(()=>{let o=L.current;if(!o)return;let{scrollTop:S,scrollHeight:u,clientHeight:I}=o,h=u>I+1&&(S===0||I<u-S-1);H(w=>w===h?w:h);},[]);useLayoutEffect(()=>{f();});let z=useCallback(o=>{L.current=o,typeof r=="function"?r(o):r&&(r.current=o);},[r]),B=useCallback(o=>{f(),i?.(o);},[i,f]);return jsx(b,{...C,component:"ul",ref:z,id:d,"data-testid":c??d??"CardList",onScroll:B,className:nc(e.root,l),sx:p,$showShadow:P&&t,children:a})});v.displayName="CardList";var G=memo(v);var k=forwardRef(({children:t,startAdornment:a,endAdornment:i,id:d,className:l,sx:p,"data-testid":c,...C},r)=>jsxs(N,{...C,component:"li",ref:r,id:d,"data-testid":c??d??"CardListItem",className:nc(e.item,l),sx:p,children:[jsxs(E,{className:e.itemContent,children:[a&&jsx($,{className:e.itemStartAdornment,children:a}),jsx(T,{className:e.itemText,children:t})]}),i&&jsx(A,{className:e.itemEndAdornment,children:i})]}));k.displayName="CardListItem";var J=memo(k);export{e as a,G as b,J as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-AXNWVU3K.js';import {nc}from'./chunk-RUFO5P34.js';import {forwardRef,memo}from'react';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var p="os-shared-Card",o={root:`${p}-root`,header:`${p}-header`,title:`${p}-title`},n=233,f=39;var c=styled(C)(({theme:r})=>{let{grey:e}=r.v2.palette;return {display:"flex",flexDirection:"column",height:n,border:`1px solid ${e[100]}`,borderRadius:r.v2.radius(8),backgroundColor:"#FBFBFB",fontSize:r.v2.typography.textVariants.body.small.regular.fontSize,transform:"scale(1)"}}),y=styled(C,{shouldForwardProp:r=>r!=="$hasStartAdornment"})(({theme:r,$hasStartAdornment:e})=>({display:"flex",alignItems:"center",...e&&{gap:r.v2.spacing(8)},height:f,flexShrink:0,overflow:"visible",padding:`${r.v2.spacing(8)} ${r.v2.spacing(12)}`,borderBottom:`1px solid ${r.v2.palette.grey[100]}`})),x=styled(j)(({theme:r})=>({flexGrow:1,minWidth:0,color:r.v2.palette.grey[900],textTransform:"capitalize"}));var H=forwardRef(({id:r,className:e,sx:d,children:s,...a},l)=>jsx(c,{ref:l,component:"article",id:r,"data-testid":r??"Card",...a,className:nc(o.root,e),sx:d,children:s}));H.displayName="Card";var v=memo(H);var g=forwardRef(({id:r,className:e,sx:d,children:s,startAdornment:a,endAdornment:l,...S},N)=>jsxs(y,{ref:N,component:"header",id:r,"data-testid":r??"CardHeader",...S,$hasStartAdornment:a!=null,className:nc(o.header,e),sx:d,children:[a,jsx(x,{component:"div",textVariant:"body.small.semibold",className:o.title,children:s}),l]}));g.displayName="CardHeader";var T=memo(g);export{o as a,v as b,T as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as alertClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as alertClassNames,b as default}from'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{uc as default}from'../../_chunks/chunk-L3NA7BJY.js';import'../../_chunks/chunk-TY7VGG46.js';import'../../_chunks/chunk-UPZR423T.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-LTIWXK7D.js';import'../../_chunks/chunk-BXVLLRHG.js';import'../../_chunks/chunk-IBHWDBBJ.js';import'../../_chunks/chunk-XRUOTYCI.js';import'../../_chunks/chunk-GFOWTME6.js';import'../../_chunks/chunk-LON6X4MJ.js';import'../../_chunks/chunk-2JYBMD4I.js';import'../../_chunks/chunk-UC5FMNUV.js';import'../../_chunks/chunk-WFQ2555H.js';import'../../_chunks/chunk-64ZDTAAW.js';import'../../_chunks/chunk-REZFP4CA.js';import'../../_chunks/chunk-DFEQ23C7.js';import'../../_chunks/chunk-GBGW63EG.js';import'../../_chunks/chunk-TX3XM6XL.js';import'../../_chunks/chunk-LDCBWAC4.js';import'../../_chunks/chunk-OOLWSYGD.js';import'../../_chunks/chunk-DOZLA7RE.js';import'../../_chunks/chunk-7NMMD6VJ.js';import'../../_chunks/chunk-RC2N67CM.js';import'../../_chunks/chunk-XXCH74F3.js';import'../../_chunks/chunk-MF5ATA3Y.js';import'../../_chunks/chunk-SMJCH23I.js';import'../../_chunks/chunk-UXR6RZN4.js';import'../../_chunks/chunk-ABVY4O2O.js';import'../../_chunks/chunk-BNM6FJCR.js';import'../../_chunks/chunk-AJS7K55Q.js';import'../../_chunks/chunk-H4FZYTL7.js';import'../../_chunks/chunk-PUJ762TG.js';import'../../_chunks/chunk-ONANHXZA.js';import'../../_chunks/chunk-WC2MF35C.js';import'../../_chunks/chunk-IPEPXEL5.js';import'../../_chunks/chunk-YIZKLFYJ.js';import'../../_chunks/chunk-FNUU2KSZ.js';import'../../_chunks/chunk-GHI2J2Y4.js';import'../../_chunks/chunk-DRRME7J2.js';import'../../_chunks/chunk-X5HRCMTE.js';import'../../_chunks/chunk-FMUJQ45L.js';import'../../_chunks/chunk-K6LOVRKX.js';import'../../_chunks/chunk-RNJI3YXH.js';import'../../_chunks/chunk-K5TV637V.js';import'../../_chunks/chunk-SRVQWLPZ.js';import'../../_chunks/chunk-LVQ2UFZT.js';import'../../_chunks/chunk-TN55SPRQ.js';import'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-TZOMS57X.js';import'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-HEMK2P3G.js';import'../../_chunks/chunk-UFNFYH2N.js';import'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{vc as default}from'../../_chunks/chunk-L3NA7BJY.js';import'../../_chunks/chunk-TY7VGG46.js';import'../../_chunks/chunk-UPZR423T.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-LTIWXK7D.js';import'../../_chunks/chunk-BXVLLRHG.js';import'../../_chunks/chunk-IBHWDBBJ.js';import'../../_chunks/chunk-XRUOTYCI.js';import'../../_chunks/chunk-GFOWTME6.js';import'../../_chunks/chunk-LON6X4MJ.js';import'../../_chunks/chunk-2JYBMD4I.js';import'../../_chunks/chunk-UC5FMNUV.js';import'../../_chunks/chunk-WFQ2555H.js';import'../../_chunks/chunk-64ZDTAAW.js';import'../../_chunks/chunk-REZFP4CA.js';import'../../_chunks/chunk-DFEQ23C7.js';import'../../_chunks/chunk-GBGW63EG.js';import'../../_chunks/chunk-TX3XM6XL.js';import'../../_chunks/chunk-LDCBWAC4.js';import'../../_chunks/chunk-OOLWSYGD.js';import'../../_chunks/chunk-DOZLA7RE.js';import'../../_chunks/chunk-7NMMD6VJ.js';import'../../_chunks/chunk-RC2N67CM.js';import'../../_chunks/chunk-XXCH74F3.js';import'../../_chunks/chunk-MF5ATA3Y.js';import'../../_chunks/chunk-SMJCH23I.js';import'../../_chunks/chunk-UXR6RZN4.js';import'../../_chunks/chunk-ABVY4O2O.js';import'../../_chunks/chunk-BNM6FJCR.js';import'../../_chunks/chunk-AJS7K55Q.js';import'../../_chunks/chunk-H4FZYTL7.js';import'../../_chunks/chunk-PUJ762TG.js';import'../../_chunks/chunk-ONANHXZA.js';import'../../_chunks/chunk-WC2MF35C.js';import'../../_chunks/chunk-IPEPXEL5.js';import'../../_chunks/chunk-YIZKLFYJ.js';import'../../_chunks/chunk-FNUU2KSZ.js';import'../../_chunks/chunk-GHI2J2Y4.js';import'../../_chunks/chunk-DRRME7J2.js';import'../../_chunks/chunk-X5HRCMTE.js';import'../../_chunks/chunk-FMUJQ45L.js';import'../../_chunks/chunk-K6LOVRKX.js';import'../../_chunks/chunk-RNJI3YXH.js';import'../../_chunks/chunk-K5TV637V.js';import'../../_chunks/chunk-SRVQWLPZ.js';import'../../_chunks/chunk-LVQ2UFZT.js';import'../../_chunks/chunk-TN55SPRQ.js';import'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-TZOMS57X.js';import'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-HEMK2P3G.js';import'../../_chunks/chunk-UFNFYH2N.js';import'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as AccountHeaderTitle,j as AppWindow,a as AppWindowContext,b as AppWindowContextProvider,l as AppWindowHeader,k as AppWindowHeaderBase,c as FOOTER_HEIGHT,h as StyledFooter,i as StyledHideButton,e as StyledMenuLink,f as StyledSubmitButton,g as SubmitButtonWrapper,m as default}from'../../_chunks/chunk-
|
|
1
|
+
export{d as AccountHeaderTitle,j as AppWindow,a as AppWindowContext,b as AppWindowContextProvider,l as AppWindowHeader,k as AppWindowHeaderBase,c as FOOTER_HEIGHT,h as StyledFooter,i as StyledHideButton,e as StyledMenuLink,f as StyledSubmitButton,g as SubmitButtonWrapper,m as default}from'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.js';import'../../_chunks/chunk-RUFO5P34.js';export{uo as LEFT_SIDEBAR_WIDTH,vo as RIGHT_SIDEBAR_WIDTH,xo as VIEWER_HEIGHT,wo as VIEWER_WIDTH,to as WINDOW_ANIMATION_DURATION}from'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
label?: TextFieldProps['label'];
|
|
7
|
-
textFieldProps?: TextFieldProps | ((params: AutocompleteRenderInputParams) => TextFieldProps);
|
|
8
|
-
} & MakeOptional<MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'renderInput'>;
|
|
9
|
-
declare const Autocomplete: <Value = string, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>) => React.JSX.Element;
|
|
10
|
-
export default Autocomplete;
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { AutocompleteProps } from './type';
|
|
3
|
+
type AutocompleteComponent = <Value = string, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = 'div'>(props: AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>) => ReactElement | null;
|
|
4
|
+
declare const _default: AutocompleteComponent;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const autocompleteClassNamePrefix: "os-shared-Autocomplete";
|
|
2
|
+
export declare const autocompleteClassNames: {
|
|
3
|
+
readonly root: "os-shared-Autocomplete-root";
|
|
4
|
+
readonly input: "os-shared-Autocomplete-input";
|
|
5
|
+
readonly popper: "os-shared-Autocomplete-popper";
|
|
6
|
+
readonly option: "os-shared-Autocomplete-option";
|
|
7
|
+
readonly clear: "os-shared-Autocomplete-clear";
|
|
8
|
+
readonly popupIndicator: "os-shared-Autocomplete-popupIndicator";
|
|
9
|
+
readonly feedback: "os-shared-Autocomplete-feedback";
|
|
10
|
+
};
|
|
11
|
+
export type AutocompleteClassNames = (typeof autocompleteClassNames)[keyof typeof autocompleteClassNames];
|
|
12
|
+
/** Where the menu opens relative to the field. Default `bottom` matches Select. */
|
|
13
|
+
export declare const autocompleteMenuDirection: {
|
|
14
|
+
readonly bottom: "bottom";
|
|
15
|
+
readonly top: "top";
|
|
16
|
+
};
|
|
17
|
+
export type AutocompleteMenuDirection = (typeof autocompleteMenuDirection)[keyof typeof autocompleteMenuDirection];
|
|
18
|
+
export declare const autocompleteDefaultMenuDirection: "bottom";
|
|
19
|
+
export declare const autocompleteDefaultNoOptionsText = "No results found";
|
|
20
|
+
export declare const autocompleteDefaultLoadingText = "Loading\u2026";
|
|
21
|
+
export declare const autocompleteMenuBorderRadiusPx = 8;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import { SelectClearIcon } from '../Select/icons';
|
|
3
|
+
/** Same glyph and component as Select’s field clear. */
|
|
4
|
+
export declare const AutocompleteClearIcon: typeof SelectClearIcon;
|
|
5
|
+
/** Field search glyph — same `searchIcon` asset as Select’s in-menu search. */
|
|
6
|
+
export declare function AutocompleteSearchIcon(): import("react").JSX.Element;
|
|
7
|
+
/** Trailing selected check — same glyph as Select. */
|
|
8
|
+
export declare function AutocompleteSelectedCheckmark(): import("react").JSX.Element;
|
|
9
|
+
/** Small circular stroke loader (loading popup adornment). */
|
|
10
|
+
export declare function LoadingIcon(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as Autocomplete } from './Autocomplete';
|
|
2
|
-
export type { AutocompleteProps } from './
|
|
2
|
+
export type { AutocompleteProps, AutocompleteOption } from './type';
|
|
3
|
+
export { autocompleteClassNames, autocompleteMenuDirection } from './constants';
|
|
4
|
+
export type { AutocompleteClassNames, AutocompleteMenuDirection } from './constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{c as Autocomplete,a as autocompleteClassNames,b as autocompleteMenuDirection}from'../../_chunks/chunk-HEMK2P3G.js';import'../../_chunks/chunk-UFNFYH2N.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { Theme } from '@mui/material/styles';
|
|
3
|
+
import type { FieldFeedbackType } from '../primitives';
|
|
4
|
+
/** Wrapper for `LoadingIcon` when `isLoading` replaces the autocomplete popup indicator. */
|
|
5
|
+
export declare const AutocompleteLoadingPopupIconRoot: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
6
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
}, keyof import("@mui/system").BoxOwnProps<
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
8
|
+
/** Filled input matching Select (grey fill, 40px, label motion). */
|
|
9
|
+
export declare const AutocompleteFilledTextField: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
variant?: import("@mui/material/TextField").TextFieldVariants | undefined;
|
|
11
|
+
} & Omit<import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
12
|
+
feedbackType?: FieldFeedbackType | undefined;
|
|
13
|
+
hasFeedback?: boolean | undefined;
|
|
14
|
+
hasLabel?: boolean | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
/** Field + helper/feedback stack — same focus ring as Select when FieldFeedback is attached. */
|
|
17
|
+
export declare const AutocompleteFieldWrapperStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
20
|
+
$hasFeedback?: boolean | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
/** List surface aligned with select menu; supports empty/loading suppress flags. */
|
|
23
|
+
export declare const AutocompleteSearchablePopper: import("@emotion/styled").StyledComponent<import("@mui/material/Popper").PopperProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
24
|
+
$menuHasLoadingText?: boolean | undefined;
|
|
25
|
+
$suppressAutocompleteNoOptions?: boolean | undefined;
|
|
26
|
+
$suppressEmptyMenuSurface?: boolean | undefined;
|
|
27
|
+
}, {}, {}>;
|
|
28
|
+
export declare const AutocompleteMutedLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
29
|
+
export declare const AutocompleteOptionRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
30
|
+
$selected?: boolean | undefined;
|
|
31
|
+
$optionDisabled?: boolean | undefined;
|
|
32
|
+
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
33
|
+
export declare const AutocompleteOptionLabelSpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
34
|
+
export declare const AutocompleteSelectedCheckIconImg: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
35
|
+
export declare const AutocompleteSearchPopupIconRoot: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
38
|
+
export declare const AutocompleteListboxRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
39
|
+
export declare const AutocompleteHelperText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { AutocompleteProps as MuiAutocompleteProps, AutocompleteRenderInputParams } from '@mui/material/Autocomplete';
|
|
3
|
+
import type { TextFieldProps } from '@mui/material/TextField';
|
|
4
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
5
|
+
import type { FieldFeedbackProps } from '../primitives';
|
|
6
|
+
import type { MakeOptional } from '../../types/index.js';
|
|
7
|
+
import type { AutocompleteClassNames, AutocompleteMenuDirection } from './constants';
|
|
8
|
+
/** Option shape matching Select — `label` may be a React node (icon + text). */
|
|
9
|
+
export interface AutocompleteOption {
|
|
10
|
+
/** Visible label (string or React node). */
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
/** Stable selection value. */
|
|
13
|
+
value: string | number;
|
|
14
|
+
/** When true, the option cannot be selected. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type AutocompleteProps<Value = string, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = 'div'> = {
|
|
18
|
+
/** Floating field label. `null` is treated as empty (`t()`). */
|
|
19
|
+
label?: TextFieldProps['label'];
|
|
20
|
+
/** Shown in the field when empty. `null` is treated as empty (`t()`). */
|
|
21
|
+
placeholder?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Extra TextField props, or a function of Autocomplete `renderInput` params.
|
|
24
|
+
* Merged into the default input when `renderInput` is omitted.
|
|
25
|
+
*/
|
|
26
|
+
textFieldProps?: TextFieldProps | ((params: AutocompleteRenderInputParams) => TextFieldProps);
|
|
27
|
+
/** Error visual state. */
|
|
28
|
+
error?: boolean;
|
|
29
|
+
/** Helper / error text under the field. `null` is treated as unset (`t()`). */
|
|
30
|
+
helperText?: ReactNode;
|
|
31
|
+
/** Structured field feedback (replaces plain helper when provided). */
|
|
32
|
+
feedback?: FieldFeedbackProps | null;
|
|
33
|
+
/** Clear control in the field when there is a value. Matches MUI Autocomplete. @default true */
|
|
34
|
+
hasClearIcon?: boolean;
|
|
35
|
+
/** Custom clear icon component. */
|
|
36
|
+
ClearIconComponent?: ElementType;
|
|
37
|
+
/** Called after clear; value still updates via `onChange`. */
|
|
38
|
+
onClear?: () => void;
|
|
39
|
+
/** Replaces the search popup icon with the spinning `LoadingIcon`. Field stays typeable. */
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
/** Trailing checkmark on selected options. @default false */
|
|
42
|
+
hasSelectedCheckmark?: boolean;
|
|
43
|
+
/** Preferred menu side. Default `bottom` flips to `top` when there is not enough space below. @default 'bottom' */
|
|
44
|
+
menuDirection?: AutocompleteMenuDirection;
|
|
45
|
+
/** Marks the field as required. */
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/** Root / field id. Defaults to `Autocomplete`. Pass a unique value when more than one instance is on the page. */
|
|
48
|
+
id?: string;
|
|
49
|
+
/** Class name on the Autocomplete root. */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** `sx` on the Autocomplete root. */
|
|
52
|
+
sx?: SxProps<Theme>;
|
|
53
|
+
/** Slot class name overrides. */
|
|
54
|
+
autocompleteClassNames?: Partial<{
|
|
55
|
+
root: AutocompleteClassNames | string;
|
|
56
|
+
input: string;
|
|
57
|
+
popper: string;
|
|
58
|
+
}>;
|
|
59
|
+
} & MakeOptional<MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'renderInput'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AutocompleteOption } from './type';
|
|
3
|
+
export declare function isSelectLikeOption(option: unknown): option is AutocompleteOption;
|
|
4
|
+
/** Default `getOptionLabel` — strings, `{ label, value }` (including ReactNode labels), and `{ label: string }`. */
|
|
5
|
+
export declare function defaultGetOptionLabel(option: unknown): string;
|
|
6
|
+
export declare function defaultIsOptionEqualToValue(a: unknown, b: unknown): boolean;
|
|
7
|
+
export declare function defaultGetOptionDisabled(option: unknown): boolean;
|
|
8
|
+
export declare function defaultGetOptionKey(option: unknown): string;
|
|
9
|
+
export declare function defaultRenderOptionContent(option: unknown): ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-
|
|
1
|
+
export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as CardListItem,a as cardListClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{c as CardListItem,a as cardListClassNames,b as default}from'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -24,7 +24,7 @@ export declare const ColorSchemeButton: import("@emotion/styled").StyledComponen
|
|
|
24
24
|
}, {}, {}>;
|
|
25
25
|
export declare const ColorSchemeList: import("@emotion/styled").StyledComponent<import("@mui/material/MenuList").MenuListOwnProps & import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
26
26
|
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
|
27
|
-
}, "autoFocus" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "dense" | "
|
|
27
|
+
}, "autoFocus" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "dense" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
28
28
|
export declare const StyledInput: import("@emotion/styled").StyledComponent<{
|
|
29
29
|
variant?: import("@mui/material/TextField").TextFieldVariants | undefined;
|
|
30
30
|
} & Omit<import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export { default as ColumnViewsPicker } from './ColumnViewsPicker';
|
|
2
|
-
export { default as ColumnViewsMenu } from './ColumnViewsMenu';
|
|
3
2
|
export { default as DefaultViews } from './DefaultViews';
|
|
4
3
|
export { default as CustomViews } from './CustomViews';
|
|
5
4
|
export { default as ViewsDropdown } from './ViewsDropdown';
|
|
6
5
|
export { default as CreateViewDialog } from './CreateViewDialog';
|
|
7
|
-
export type { ViewMenuItem, CreateCustomViewDialogProps, CreateOrEditViewPayload, ColumnChange, LayoutSection, ColumnItem, FieldItem, Template, CreateTemplatePayload, UpdateTemplatePayload, TableViewOption, ColumnViewsTemplatesConfig,
|
|
6
|
+
export type { ViewMenuItem, CreateCustomViewDialogProps, CreateOrEditViewPayload, ColumnChange, LayoutSection, ColumnItem, FieldItem, Template, CreateTemplatePayload, UpdateTemplatePayload, TableViewOption, ColumnViewsTemplatesConfig, ColumnViewsPickerProps, } from './types';
|
|
8
7
|
export * from './utils';
|
|
9
8
|
export { useSubmenuHover, useViewsManager, useViewsMenu, useCustomTableViews } from './hooks';
|
|
10
9
|
export type { UseTableViewsProps } from './hooks';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
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-L3NA7BJY.js';import'../../_chunks/chunk-TY7VGG46.js';import'../../_chunks/chunk-UPZR423T.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-LTIWXK7D.js';import'../../_chunks/chunk-BXVLLRHG.js';import'../../_chunks/chunk-IBHWDBBJ.js';import'../../_chunks/chunk-XRUOTYCI.js';import'../../_chunks/chunk-GFOWTME6.js';import'../../_chunks/chunk-LON6X4MJ.js';import'../../_chunks/chunk-2JYBMD4I.js';import'../../_chunks/chunk-UC5FMNUV.js';import'../../_chunks/chunk-WFQ2555H.js';import'../../_chunks/chunk-64ZDTAAW.js';import'../../_chunks/chunk-REZFP4CA.js';import'../../_chunks/chunk-DFEQ23C7.js';import'../../_chunks/chunk-GBGW63EG.js';import'../../_chunks/chunk-TX3XM6XL.js';import'../../_chunks/chunk-LDCBWAC4.js';import'../../_chunks/chunk-OOLWSYGD.js';import'../../_chunks/chunk-DOZLA7RE.js';import'../../_chunks/chunk-7NMMD6VJ.js';import'../../_chunks/chunk-RC2N67CM.js';import'../../_chunks/chunk-XXCH74F3.js';import'../../_chunks/chunk-MF5ATA3Y.js';import'../../_chunks/chunk-SMJCH23I.js';import'../../_chunks/chunk-UXR6RZN4.js';import'../../_chunks/chunk-ABVY4O2O.js';import'../../_chunks/chunk-BNM6FJCR.js';import'../../_chunks/chunk-AJS7K55Q.js';import'../../_chunks/chunk-H4FZYTL7.js';import'../../_chunks/chunk-PUJ762TG.js';import'../../_chunks/chunk-ONANHXZA.js';import'../../_chunks/chunk-WC2MF35C.js';import'../../_chunks/chunk-IPEPXEL5.js';import'../../_chunks/chunk-YIZKLFYJ.js';import'../../_chunks/chunk-FNUU2KSZ.js';import'../../_chunks/chunk-GHI2J2Y4.js';import'../../_chunks/chunk-DRRME7J2.js';import'../../_chunks/chunk-X5HRCMTE.js';import'../../_chunks/chunk-FMUJQ45L.js';import'../../_chunks/chunk-K6LOVRKX.js';import'../../_chunks/chunk-RNJI3YXH.js';import'../../_chunks/chunk-K5TV637V.js';import'../../_chunks/chunk-SRVQWLPZ.js';import'../../_chunks/chunk-LVQ2UFZT.js';import'../../_chunks/chunk-TN55SPRQ.js';import'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-TZOMS57X.js';import'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-HEMK2P3G.js';import'../../_chunks/chunk-UFNFYH2N.js';import'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.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-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -147,11 +147,6 @@ export interface ColumnCheckState {
|
|
|
147
147
|
checked: boolean;
|
|
148
148
|
indeterminate: boolean;
|
|
149
149
|
}
|
|
150
|
-
export interface ColumnViewsMenuProps extends ColumnViewsTemplatesConfig {
|
|
151
|
-
onViewChange?: (selectedView?: ViewMenuItem) => void;
|
|
152
|
-
tableMode?: TableMode;
|
|
153
|
-
lang?: string;
|
|
154
|
-
}
|
|
155
150
|
export interface ViewsDropdownProps {
|
|
156
151
|
open: boolean;
|
|
157
152
|
selectedViewInfo: TableViewOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ConfirmDialogProvider,a as useConfirm}from'../../_chunks/chunk-
|
|
1
|
+
export{b as ConfirmDialogProvider,a as useConfirm}from'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CountryFilter,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as CountryFilter,b as default}from'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|