@bbodek/internal-ui 0.0.75 → 0.0.77
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/dist/{FilterCalendarPanel-Dsq2_CmC.js → FilterCalendarPanel-D8I1_eYg.js} +2 -2
- package/dist/FilterCalendarPanel-D8I1_eYg.js.map +1 -0
- package/dist/{FilterMultiSelectPanel-Bo4X5oJQ.js → FilterMultiSelectPanel-By35Wjjs.js} +2 -2
- package/dist/FilterMultiSelectPanel-By35Wjjs.js.map +1 -0
- package/dist/{FilterSelectOptionPanel-CU3t-4pB.js → FilterSelectOptionPanel-D30gOu86.js} +2 -2
- package/dist/FilterSelectOptionPanel-D30gOu86.js.map +1 -0
- package/dist/{ImageErrorBoundary-YjrN_6Db.js → ImageErrorBoundary-QOKcn2h8.js} +2 -2
- package/dist/ImageErrorBoundary-QOKcn2h8.js.map +1 -0
- package/dist/{PreviewImage-6CC3zxv3.js → PreviewImage-RRdv_TZq.js} +2 -2
- package/dist/PreviewImage-RRdv_TZq.js.map +1 -0
- package/dist/{PreviewImageViewer-Ckks1L8Q.js → PreviewImageViewer-Cr5hwzIp.js} +2 -2
- package/dist/PreviewImageViewer-Cr5hwzIp.js.map +1 -0
- package/dist/{PreviewInlineViewer-DGY6tPvm.js → PreviewInlineViewer-YvBBFIBl.js} +2 -2
- package/dist/PreviewInlineViewer-YvBBFIBl.js.map +1 -0
- package/dist/{PreviewMultiController-DCDOhF4C.js → PreviewMultiController-DlAT5iQR.js} +2 -2
- package/dist/PreviewMultiController-DlAT5iQR.js.map +1 -0
- package/dist/{PreviewMultiDesktop-BDHfgEzk.js → PreviewMultiDesktop-BM5t_fl7.js} +2 -2
- package/dist/PreviewMultiDesktop-BM5t_fl7.js.map +1 -0
- package/dist/{PreviewMultiDesktopViewer-CbB9wh_K.js → PreviewMultiDesktopViewer-B6mcD7b6.js} +2 -2
- package/dist/PreviewMultiDesktopViewer-B6mcD7b6.js.map +1 -0
- package/dist/{PreviewMultiMobile-DnVgXtGc.js → PreviewMultiMobile-R20WuPFG.js} +2 -2
- package/dist/PreviewMultiMobile-R20WuPFG.js.map +1 -0
- package/dist/{PreviewMultiMobileViewer-CmFrIbml.js → PreviewMultiMobileViewer-Bt-B4hms.js} +2 -2
- package/dist/PreviewMultiMobileViewer-Bt-B4hms.js.map +1 -0
- package/dist/{PreviewOverlayWrapper-C7_WNPxh.js → PreviewOverlayWrapper-D9JH3zTz.js} +2 -2
- package/dist/PreviewOverlayWrapper-D9JH3zTz.js.map +1 -0
- package/dist/{PreviewPdfViewer-CXYiIMvc.js → PreviewPdfViewer-BVJMurvD.js} +2 -2
- package/dist/PreviewPdfViewer-BVJMurvD.js.map +1 -0
- package/dist/{PreviewPdfViewerImage-Cy174nO9.js → PreviewPdfViewerImage-DbtGPC6s.js} +2 -2
- package/dist/PreviewPdfViewerImage-DbtGPC6s.js.map +1 -0
- package/dist/{PreviewSingleDesktop-ClKMhODX.js → PreviewSingleDesktop-DPesiQM7.js} +2 -2
- package/dist/PreviewSingleDesktop-DPesiQM7.js.map +1 -0
- package/dist/{PreviewSingleMobile-CkYDNPmn.js → PreviewSingleMobile-BNulg8Qv.js} +2 -2
- package/dist/PreviewSingleMobile-BNulg8Qv.js.map +1 -0
- package/dist/{PreviewThumbnailNotSupport-DurToJRF.js → PreviewThumbnailNotSupport-CM0akJty.js} +2 -2
- package/dist/PreviewThumbnailNotSupport-CM0akJty.js.map +1 -0
- package/dist/{PreviewThumbnailViewer-Cap6CXuB.js → PreviewThumbnailViewer-CSzsppo1.js} +2 -2
- package/dist/PreviewThumbnailViewer-CSzsppo1.js.map +1 -0
- package/dist/{PreviewToolbar-ByzWjUhJ.js → PreviewToolbar-DxMXpxRf.js} +2 -2
- package/dist/PreviewToolbar-DxMXpxRf.js.map +1 -0
- package/dist/{SideSheetFullScreenDialog-CuKenNHA.js → SideSheetFullScreenDialog-BjQmJrm8.js} +2 -2
- package/dist/SideSheetFullScreenDialog-BjQmJrm8.js.map +1 -0
- package/dist/{StepDialogConfirmModal-C6yl7K7o.js → StepDialogConfirmModal-DbRMC-5B.js} +2 -2
- package/dist/StepDialogConfirmModal-DbRMC-5B.js.map +1 -0
- package/dist/{StepFullScreenDialogConfirmBottomSheet-Db4jVUyk.js → StepFullScreenDialogConfirmBottomSheet-B5GETSdU.js} +2 -2
- package/dist/StepFullScreenDialogConfirmBottomSheet-B5GETSdU.js.map +1 -0
- package/dist/{ThumbnailImage-Dr1NIFQG.js → ThumbnailImage-9HZQtvPe.js} +2 -2
- package/dist/ThumbnailImage-9HZQtvPe.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Button/shared/utils/generateButtonStyle.d.ts.map +1 -1
- package/dist/components/Preview/shared/components/Preview/constants/index.d.ts +1 -1
- package/dist/components/VirtualList/DynamicVirtualList/DynamicVirtualList.d.ts +9 -0
- package/dist/components/VirtualList/DynamicVirtualList/DynamicVirtualList.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/DynamicVirtualListItem.d.ts +5 -0
- package/dist/components/VirtualList/DynamicVirtualList/DynamicVirtualListItem.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/context/DynamicVirtualListContext.d.ts +5 -0
- package/dist/components/VirtualList/DynamicVirtualList/context/DynamicVirtualListContext.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/context/index.d.ts +2 -0
- package/dist/components/VirtualList/DynamicVirtualList/context/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/index.d.ts +4 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/types.d.ts +15 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/types.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualItemsMetricsInitEffect.d.ts +4 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualItemsMetricsInitEffect.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListItemResizeObserverEffect.d.ts +4 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListItemResizeObserverEffect.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListUpdateOffsetsCancelAnimationFrameEffect.d.ts +4 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListUpdateOffsetsCancelAnimationFrameEffect.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/index.d.ts +2 -0
- package/dist/components/VirtualList/DynamicVirtualList/hooks/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/index.d.ts +4 -0
- package/dist/components/VirtualList/DynamicVirtualList/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/types/index.d.ts +20 -0
- package/dist/components/VirtualList/DynamicVirtualList/types/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/findIndex.d.ts +9 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/findIndex.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/index.d.ts +3 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/index.d.ts.map +1 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/types.d.ts +12 -0
- package/dist/components/VirtualList/DynamicVirtualList/utils/types.d.ts.map +1 -0
- package/dist/components/VirtualList/StaticVirtualList/StaticVirtualList.d.ts +9 -0
- package/dist/components/VirtualList/StaticVirtualList/StaticVirtualList.d.ts.map +1 -0
- package/dist/components/VirtualList/StaticVirtualList/StaticVirtualListItem.d.ts +5 -0
- package/dist/components/VirtualList/StaticVirtualList/StaticVirtualListItem.d.ts.map +1 -0
- package/dist/components/VirtualList/StaticVirtualList/index.d.ts +4 -0
- package/dist/components/VirtualList/StaticVirtualList/index.d.ts.map +1 -0
- package/dist/components/VirtualList/StaticVirtualList/types/index.d.ts +15 -0
- package/dist/components/VirtualList/StaticVirtualList/types/index.d.ts.map +1 -0
- package/dist/components/VirtualList/index.d.ts +2 -3
- package/dist/components/VirtualList/index.d.ts.map +1 -1
- package/dist/components/VirtualList/shared/components/VirtualListItemBase.d.ts +5 -0
- package/dist/components/VirtualList/shared/components/VirtualListItemBase.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/components/VirtualListRootWrapper.d.ts +5 -0
- package/dist/components/VirtualList/shared/components/VirtualListRootWrapper.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/components/VirtualListWrapper.d.ts +5 -0
- package/dist/components/VirtualList/shared/components/VirtualListWrapper.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/components/index.d.ts +4 -0
- package/dist/components/VirtualList/shared/components/index.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/effects/index.d.ts +4 -0
- package/dist/components/VirtualList/shared/hooks/effects/index.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/effects/types.d.ts +9 -0
- package/dist/components/VirtualList/shared/hooks/effects/types.d.ts.map +1 -0
- package/dist/components/VirtualList/{hooks → shared/hooks}/effects/useCalculateContainerHeightEffect.d.ts +1 -1
- package/dist/components/VirtualList/shared/hooks/effects/useCalculateContainerHeightEffect.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/effects/useScrollRequestAnimationFrameCleanUpEffect.d.ts +4 -0
- package/dist/components/VirtualList/shared/hooks/effects/useScrollRequestAnimationFrameCleanUpEffect.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/index.d.ts +4 -0
- package/dist/components/VirtualList/shared/hooks/index.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/types.d.ts +12 -0
- package/dist/components/VirtualList/shared/hooks/types.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/hooks/useVirtualList.d.ts +4 -0
- package/dist/components/VirtualList/shared/hooks/useVirtualList.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/index.d.ts +4 -0
- package/dist/components/VirtualList/shared/index.d.ts.map +1 -0
- package/dist/components/VirtualList/shared/types/index.d.ts +27 -0
- package/dist/components/VirtualList/shared/types/index.d.ts.map +1 -0
- package/dist/index-BNN8xh8a.js +2 -0
- package/dist/{index-C5kUcLFc.js.map → index-BNN8xh8a.js.map} +1 -1
- package/dist/{index-TdgJ2Zxf.js → index-CcJVyiuT.js} +2 -2
- package/dist/{index-TdgJ2Zxf.js.map → index-CcJVyiuT.js.map} +1 -1
- package/dist/{index.es-CG3A1Z56.js → index.es-CQP7tWOr.js} +2 -2
- package/dist/{index.es-CG3A1Z56.js.map → index.es-CQP7tWOr.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{useFilterSelectOptionPanel-B6LLA8vY.js → useFilterSelectOptionPanel-BUtF6h3v.js} +2 -2
- package/dist/useFilterSelectOptionPanel-BUtF6h3v.js.map +1 -0
- package/package.json +7 -7
- package/src/styles/theme.css +6 -3
- package/dist/FilterCalendarPanel-Dsq2_CmC.js.map +0 -1
- package/dist/FilterMultiSelectPanel-Bo4X5oJQ.js.map +0 -1
- package/dist/FilterSelectOptionPanel-CU3t-4pB.js.map +0 -1
- package/dist/ImageErrorBoundary-YjrN_6Db.js.map +0 -1
- package/dist/PreviewImage-6CC3zxv3.js.map +0 -1
- package/dist/PreviewImageViewer-Ckks1L8Q.js.map +0 -1
- package/dist/PreviewInlineViewer-DGY6tPvm.js.map +0 -1
- package/dist/PreviewMultiController-DCDOhF4C.js.map +0 -1
- package/dist/PreviewMultiDesktop-BDHfgEzk.js.map +0 -1
- package/dist/PreviewMultiDesktopViewer-CbB9wh_K.js.map +0 -1
- package/dist/PreviewMultiMobile-DnVgXtGc.js.map +0 -1
- package/dist/PreviewMultiMobileViewer-CmFrIbml.js.map +0 -1
- package/dist/PreviewOverlayWrapper-C7_WNPxh.js.map +0 -1
- package/dist/PreviewPdfViewer-CXYiIMvc.js.map +0 -1
- package/dist/PreviewPdfViewerImage-Cy174nO9.js.map +0 -1
- package/dist/PreviewSingleDesktop-ClKMhODX.js.map +0 -1
- package/dist/PreviewSingleMobile-CkYDNPmn.js.map +0 -1
- package/dist/PreviewThumbnailNotSupport-DurToJRF.js.map +0 -1
- package/dist/PreviewThumbnailViewer-Cap6CXuB.js.map +0 -1
- package/dist/PreviewToolbar-ByzWjUhJ.js.map +0 -1
- package/dist/SideSheetFullScreenDialog-CuKenNHA.js.map +0 -1
- package/dist/StepDialogConfirmModal-C6yl7K7o.js.map +0 -1
- package/dist/StepFullScreenDialogConfirmBottomSheet-Db4jVUyk.js.map +0 -1
- package/dist/ThumbnailImage-Dr1NIFQG.js.map +0 -1
- package/dist/components/VirtualList/VirtualList.d.ts +0 -9
- package/dist/components/VirtualList/VirtualList.d.ts.map +0 -1
- package/dist/components/VirtualList/VirtualListItem.d.ts +0 -5
- package/dist/components/VirtualList/VirtualListItem.d.ts.map +0 -1
- package/dist/components/VirtualList/hooks/effects/useCalculateContainerHeightEffect.d.ts.map +0 -1
- package/dist/components/VirtualList/types/index.d.ts +0 -29
- package/dist/components/VirtualList/types/index.d.ts.map +0 -1
- package/dist/index-C5kUcLFc.js +0 -2
- package/dist/useFilterSelectOptionPanel-B6LLA8vY.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as t}from"react";import{K as n,L as r,N as l,O as o,x as s,Q as i}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterCalendarPanel-
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as t}from"react";import{K as n,L as r,N as l,O as o,x as s,Q as i}from"./index-BNN8xh8a.js";import"@bbodek/utils";import{F as m,u}from"./useFilterSelectOptionPanel-BUtF6h3v.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=()=>{const{variant:a,internalValue:t,handleChange:l}=n(),o=!r({value:t,variant:a});return e(m,{disabled:o,onClick:l})},c=({variant:n})=>{const r=t(),m=t(),{models:{calendarValue:c},operations:{onChange:h}}=(()=>{const{models:{value:e},operations:{handleChange:a}}=u(),{startDate:t,endDate:n}=null!==e?l({value:e}):{startDate:null,endDate:null};return{models:{calendarValue:null!==e?{startDate:t,endDate:n}:null},operations:{onChange:e=>{const t=e?[`${e.startDate}~${e.endDate}`]:null;a({value:t})}}}})();return e(o,{value:c,variant:n,onChange:h,children:a(s,{className:"in-tablet:min-w-[23.75rem] mx-auto w-[22.5rem] justify-between overflow-hidden",direction:"column",children:[e(i,{className:"in-tablet:min-h-[34svh-3.75rem] in-tablet:max-h-[46svh-3.75rem] mx-auto h-[100svh-4rem]",id:m,labelId:r}),e(d,{})]})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=FilterCalendarPanel-D8I1_eYg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCalendarPanel-D8I1_eYg.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as l}from"react";import{F as o,u as t}from"./useFilterSelectOptionPanel-
|
|
2
|
-
//# sourceMappingURL=FilterMultiSelectPanel-
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as l}from"react";import{F as o,u as t}from"./useFilterSelectOptionPanel-BUtF6h3v.js";import{E as n,M as s,x as i,G as r,H as m,J as u}from"./index-BNN8xh8a.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const c=()=>{const{onChange:a,onSearch:l,internalOptions:t}=n();return e(o,{disabled:0===t.length||void 0===t.find((({isSelected:e})=>e)),onClick:()=>{l({value:null}),a()}})},d=()=>{const o=l(),n=l(),d=l(),{models:{value:p,options:h},operations:{onChange:v}}=(()=>{const{models:{options:e,value:a},operations:{handleChange:l}}=t(),o=e.options.map((({value:e,displayValue:a})=>({value:e,label:a})));return{models:{value:(a??[]).map((e=>({value:e,label:o.find((a=>a.value===e))?.label??""}))),options:o},operations:{onChange:e=>{const a=e?e.map((({value:e})=>e)):null;l({value:a})}}}})();return e(s,{options:h,selectListResultId:n,selectedListResultId:d,value:p,onChange:v,children:a(i,{className:"in-tablet:min-w-[36.25rem] mx-auto w-[22.5rem] flex-1 justify-between overflow-hidden",direction:"column",children:[e(r,{className:"in-tablet:min-h-[calc(34svh-3.75rem)] in-tablet:max-h-[calc(46svh-3.75rem)] h-[100svh-4rem]",labelId:o,searchPanel:e(u,{}),selectedPanel:e(m,{})}),e(c,{})]})})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=FilterMultiSelectPanel-By35Wjjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMultiSelectPanel-By35Wjjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{q as t,r as e,e as o,s}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterSelectOptionPanel-
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{q as t,r as e,e as o,s}from"./index-BNN8xh8a.js";import"react";import"@bbodek/utils";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const i=o((()=>import("./FilterMultiSelectPanel-By35Wjjs.js")),{ssr:!1}),a=o((()=>import("./FilterCalendarPanel-D8I1_eYg.js")),{ssr:!1}),m=()=>{const{currentOptions:o}=t(),{type:m}=o;return{[e.MULTI_SELECT]:r(i,{}),[e.DATE_SINGLE]:r(a,{variant:s.SINGLE}),[e.DATE_RANGE]:r(a,{variant:s.RANGE})}[m]};export{m as default};
|
|
2
|
+
//# sourceMappingURL=FilterSelectOptionPanel-D30gOu86.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectOptionPanel-D30gOu86.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as r,Fragment as e,jsx as l}from"react/jsx-runtime";import{c as o}from"./index-
|
|
2
|
-
//# sourceMappingURL=ImageErrorBoundary-
|
|
1
|
+
import{jsxs as r,Fragment as e,jsx as l}from"react/jsx-runtime";import{c as o}from"./index-BNN8xh8a.js";const s=({className:s,isError:t,errorComponent:c,children:i})=>r(e,{children:[i&&i,t&&l("div",{className:o("in-flex-v-stack-center absolute top-0 left-0 z-10 h-full w-full",s),children:c})]});export{s as I};
|
|
2
|
+
//# sourceMappingURL=ImageErrorBoundary-QOKcn2h8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageErrorBoundary-QOKcn2h8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{z as r,I as t,c as i,D as e,m as a}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewImage-
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{z as r,I as t,c as i,D as e,m as a}from"./index-BNN8xh8a.js";import"react";import{I as s}from"./ImageErrorBoundary-QOKcn2h8.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const n=({src:n,size:h,viewerSize:d,downloadOptions:m,previewOptions:l,className:p,isError:c,onLoad:w,onError:f})=>{const{rotate:g,fitMode:u,scale:x}=l,{width:E,height:k}=u===r.WIDTH?{width:h.width&&h.width*x}:{height:h.height&&h.height*x};return o(s,{errorComponent:o(a,{downloadOptions:m}),isError:c,children:o(t,{className:i(p,"fill-center max-h-none max-w-none shrink-0 will-change-[rotate] transform-fill",e.ROTATE[g]),alt:"",height:0,sizes:`${E??d.width}px`,src:n,style:{width:E??"auto",height:k??"auto"},width:0,onError:f,onLoad:w})})};export{n as default};
|
|
2
|
+
//# sourceMappingURL=PreviewImage-RRdv_TZq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImage-RRdv_TZq.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{i as e,e as i,j as r}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewImageViewer-
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{i as e,e as i,j as r}from"./index-BNN8xh8a.js";import{u as t}from"./usePreviewImage-DqIO3PcZ.js";import{useEffect as s}from"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const n=i((()=>import("./PreviewImage-RRdv_TZq.js")),{ssr:!1}),a=({file:i,viewerSize:a,previewOptions:m})=>{const{status:{isLoading:d,isError:p},models:{imgSize:l},operations:{onLoadImage:h,onError:g,onReset:w}}=t(),{width:f,height:u}=a,{width:b,height:c}=l??{},v=!!c&&c<u&&null===m.fitMode;return(({file:o,onReset:e})=>{s((()=>{o&&e()}),[o])})({file:i,onReset:w}),o(e,{isLoading:d,loadingComponent:o(r,{}),children:o(n,{size:{width:v?b:f,height:v?c:u},downloadOptions:{url:i.blob,name:i.name},isError:p,previewOptions:m,src:i.blob,viewerSize:a,onError:g,onLoad:h})})};export{a as default};
|
|
2
|
+
//# sourceMappingURL=PreviewImageViewer-Cr5hwzIp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImageViewer-Cr5hwzIp.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewInlineViewer-
|
|
1
|
+
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-DxMXpxRf.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=({id:m,file:n,badge:d,isLoading:c,closeOption:b})=>{const{models:{viewerRef:f,viewerSize:v,titleId:w,previewOptions:O},operations:{setPreviewOptions:P}}=s();return e(i,{children:[o(a,{badge:d,className:r.DESKTOP.HEADER,closeOption:b,fileName:n.name,titleId:w}),o(l,{"aria-labelledby":w,className:r.DESKTOP.VIEWER_WRAPPER,id:m,ref:f,children:o(t,{file:n,isLoading:c,previewOptions:O,viewerSize:v})}),o(p,{file:n,previewOptions:O,setPreviewOptions:P})]})};export{m as default};
|
|
2
|
+
//# sourceMappingURL=PreviewInlineViewer-YvBBFIBl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewInlineViewer-YvBBFIBl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{c as i,f as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewMultiController-
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{c as i,f as t}from"./index-BNN8xh8a.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const r=({files:r,currentFile:o,previewId:l,className:n,children:c,disabled:s,onChange:d})=>{const m=o?r.findIndex((e=>e.id===o.id)):null,p=s||null===m;return e("div",{className:i(n,"in-flex-v-stack group relative w-[calc(100%-3.75rem)] overflow-hidden"),children:[c,0!==m&&a(t,{"aria-controls":l,"aria-label":"이전",className:"absolute top-1/2 left-[1.625rem] z-10 -translate-y-1/2 opacity-0 transition-opacity group-hover:opacity-100",disabled:p,iconKey:"caret-line-left",theme:"dark",onClick:()=>d({file:r[m-1]})}),m!==r.length-1&&a(t,{"aria-controls":l,"aria-label":"다음",className:"absolute top-1/2 right-[1.625rem] z-10 -translate-y-1/2 opacity-0 transition-opacity group-hover:opacity-100",disabled:p,iconKey:"caret-line-right",theme:"dark",onClick:()=>d({file:r[m+1]})})]})};export{r as default};
|
|
2
|
+
//# sourceMappingURL=PreviewMultiController-DlAT5iQR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiController-DlAT5iQR.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{u as r,P as s,b as o,c as t,d as a,e as l}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewMultiDesktop-
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{u as r,P as s,b as o,c as t,d as a,e as l}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import n from"./PreviewMultiController-DlAT5iQR.js";import{P as m}from"./PreviewOverlayWrapper-D9JH3zTz.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=l((()=>import("./PreviewMultiDesktopViewer-B6mcD7b6.js")),{ssr:!1}),c=({files:l,initialFile:c,isLoading:p,className:f,onClose:u})=>{const{models:{previewId:v,currentFile:b},operations:{onChange:h}}=r({files:l,initialFile:c}),P=p||!b;return e(m,{className:s.DESKTOP.WRAPPER,children:i(o,{className:t(f,s.DESKTOP.CONTAINER,"in-flex-h-stack items-stretch"),children:[e(a,{className:"in-flex-v-stack mx-[0.875rem] my-5 gap-y-2 overflow-y-auto",currentFile:b,disabled:P,files:l,previewId:v,onChange:h}),e(n,{currentFile:b,disabled:P,files:l,previewId:v,onChange:h,children:(()=>{if(!b)return null;const{badge:i,...r}=b;return e(d,{badge:i,closeOption:{onClose:u},file:r,id:v,isLoading:p})})()})]})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=PreviewMultiDesktop-BM5t_fl7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiDesktop-BM5t_fl7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{PreviewMultiDesktopViewer-CbB9wh_K.js → PreviewMultiDesktopViewer-B6mcD7b6.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewMultiDesktopViewer-
|
|
1
|
+
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-DxMXpxRf.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=({id:m,file:n,badge:d,closeOption:c,isLoading:b=!1})=>{const{models:{viewerRef:f,viewerSize:v,titleId:w,previewOptions:O},operations:{setPreviewOptions:P}}=s();return e(i,{children:[o(a,{badge:d,className:r.DESKTOP.HEADER,closeOption:c,fileName:n.name,titleId:w}),o(l,{"aria-labelledby":w,className:r.DESKTOP.VIEWER_WRAPPER,id:m,ref:f,children:o(t,{file:n,isLoading:b,previewOptions:O,viewerSize:v})}),o(p,{file:n,previewOptions:O,setPreviewOptions:P})]})};export{m as default};
|
|
2
|
+
//# sourceMappingURL=PreviewMultiDesktopViewer-B6mcD7b6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiDesktopViewer-B6mcD7b6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{u as r,b as o,c as s,d as a,P as t,e as l}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewMultiMobile-
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{u as r,b as o,c as s,d as a,P as t,e as l}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{P as n}from"./PreviewOverlayWrapper-D9JH3zTz.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=l((()=>import("./PreviewMultiMobileViewer-Bt-B4hms.js")),{ssr:!1}),d=({files:l,initialFile:d,isLoading:p,className:c,onClose:u})=>{const{models:{previewId:f,currentFile:b},operations:{onChange:g}}=r({files:l,initialFile:d});return e(n,{children:i(o,{className:s(c,t.MOBILE.CONTAINER),children:[(()=>{if(!b)return null;const{badge:i,...r}=b;return e(m,{badge:i,closeOption:{onClose:u},file:r,id:f,isLoading:p})})(),e(a,{className:"in-flex-h-stack mx-3 my-[0.875rem] gap-x-1.5 overflow-x-auto",currentFile:b,disabled:p,files:l,previewId:f,onChange:g})]})})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=PreviewMultiMobile-R20WuPFG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiMobile-R20WuPFG.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewMultiMobileViewer-
|
|
1
|
+
import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import{P as r,a as t}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-DxMXpxRf.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=({file:m,badge:n,closeOption:d,isLoading:c=!1})=>{const{models:{viewerRef:b,viewerSize:f,titleId:v,previewOptions:w},operations:{setPreviewOptions:O}}=s();return e(i,{children:[o(a,{badge:n,className:r.MOBILE.HEADER,closeOption:d,fileName:m.name,titleId:v}),o(l,{"aria-labelledby":v,className:r.MOBILE.VIEWER_WRAPPER,ref:b,children:o(t,{file:m,isLoading:c,previewOptions:w,viewerSize:f})}),o(p,{file:m,previewOptions:w,setPreviewOptions:O})]})};export{m as default};
|
|
2
|
+
//# sourceMappingURL=PreviewMultiMobileViewer-Bt-B4hms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiMobileViewer-Bt-B4hms.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{c as e}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewOverlayWrapper-
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{c as e}from"./index-BNN8xh8a.js";const l=({className:l,children:o})=>r("div",{className:e(l,"h-full w-full overflow-auto"),children:o});export{l as P};
|
|
2
|
+
//# sourceMappingURL=PreviewOverlayWrapper-D9JH3zTz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewOverlayWrapper-D9JH3zTz.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{k as e,l as o,m as r,i as s,e as a,j as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewPdfViewer-
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{k as e,l as o,m as r,i as s,e as a,j as t}from"./index-BNN8xh8a.js";import{useEffect as l,useRef as d,useState as m}from"react";import{getUUID as n}from"@bbodek/utils";import{u as p}from"./usePreviewImage-DqIO3PcZ.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const f=({file:i,width:r,listRef:s,setUrls:a,setIsLoading:t})=>{l((()=>{t(!0),s.current&&(s.current.scrollTop=0),(async()=>{try{const s=await e({file:i.original}),t=Array.from({length:s.numPages},((i,e)=>o({doc:s,pageNum:e+1,width:r}))),l=await Promise.all(t);a(l.map((i=>({id:n(),url:i,isLoaded:!1}))))}catch(i){}finally{t(!1)}})()}),[i,s,r])},u=a((()=>import("./PreviewPdfViewerImage-DbtGPC6s.js")),{ssr:!1}),c=({file:e,viewerSize:o,previewOptions:a})=>{const l=d(null),[n,c]=m(null),{models:{imgSize:w},status:{isLoading:g,isError:h},operations:{setIsLoading:L,onLoadImage:v,setIsError:I}}=p(),b=()=>{n&&(c((i=>i.map((i=>({...i,isLoaded:!0}))))),I(!0))};f({file:e,width:o.width,listRef:l,setUrls:c,setIsLoading:L});const j=g||(n??[]).some((i=>!i.isLoaded)),k={url:e.blob,name:e.name};return!g&&!n||h?i(r,{downloadOptions:k}):i("div",{className:"h-full max-h-full w-full max-w-full overflow-auto",ref:l,children:i(s,{isLoading:j,loadingComponent:i(t,{}),children:n&&n.map((({id:e,url:r})=>i(u,{downloadOptions:k,imgSize:w,isError:h,previewOptions:a,src:r,viewerSize:o,onLoadImage:i=>{v(i),(({id:i})=>{n&&c((e=>e.map((e=>e.id===i?{...e,isLoaded:!0}:e))))})({id:e})},onError:b},e)))})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=PreviewPdfViewer-BVJMurvD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewPdfViewer-BVJMurvD.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{z as i,w as r}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewPdfViewerImage-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{z as i,w as r}from"./index-BNN8xh8a.js";import e from"./PreviewImage-RRdv_TZq.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";import"./ImageErrorBoundary-QOKcn2h8.js";const o=({src:o,imgSize:s,viewerSize:a,downloadOptions:h,previewOptions:d,isError:n,onLoadImage:m,onError:w})=>{const{rotate:p,scale:l}=d,{width:c,height:g}=a,f=0!==Math.abs(p%r.ROTATE[-180]),u=d.fitMode??i.HEIGHT,v=(()=>{if(!s)return{width:a.width,height:a.height};if(u===i.WIDTH){const t=c*l;return{width:t,height:t/(s.width/s.height)}}{const t=g*l;return{height:t,width:t/(s.height/s.width)}}})();return t("div",{className:"relative mx-auto mt-2.5 w-fit first:mt-0",style:f?(({width:t,height:i})=>({height:t,width:i}))(v):v,children:t(e,{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",downloadOptions:h,isError:n,previewOptions:d,size:a,src:o,viewerSize:a,onError:w,onLoad:m})})};export{o as default};
|
|
2
|
+
//# sourceMappingURL=PreviewPdfViewerImage-DbtGPC6s.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewPdfViewerImage-DbtGPC6s.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{P as s,b as a,c as r,h as o,a as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewSingleDesktop-
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{P as s,b as a,c as r,h as o,a as t}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{u as l,P as m,a as p,b as n}from"./PreviewToolbar-DxMXpxRf.js";import{P as c}from"./PreviewOverlayWrapper-D9JH3zTz.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=({file:d,badge:P,isLoading:v,onClose:f,className:O})=>{const{models:{viewerRef:b,viewerSize:E,titleId:w,previewOptions:N},operations:{setPreviewOptions:R}}=l();return e(c,{className:s.DESKTOP.WRAPPER,children:i(a,{className:r(O,s.DESKTOP.CONTAINER,"in-flex-v-stack"),children:[e(m,{badge:P,className:s.DESKTOP.HEADER,closeOption:{onClose:f},fileName:d?.name??o,titleId:w}),e(p,{"aria-labelledby":w,className:s.DESKTOP.VIEWER_WRAPPER,ref:b,children:e(t,{file:d,isLoading:v,previewOptions:N,viewerSize:E})}),e(n,{file:d,previewOptions:N,setPreviewOptions:R})]})})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=PreviewSingleDesktop-DPesiQM7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewSingleDesktop-DPesiQM7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{b as r,c as s,h as o,P as a,a as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewSingleMobile-
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{b as r,c as s,h as o,P as a,a as t}from"./index-BNN8xh8a.js";import"@bbodek/utils";import"react";import{u as l,P as m,a as p,b as n}from"./PreviewToolbar-DxMXpxRf.js";import{P as d}from"./PreviewOverlayWrapper-D9JH3zTz.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const c=({file:c,badge:v,isLoading:b,onClose:f,className:O})=>{const{models:{viewerRef:w,viewerSize:E,titleId:P,previewOptions:I},operations:{setPreviewOptions:N}}=l();return e(d,{children:i(r,{className:s(O,a.MOBILE.CONTAINER),children:[e(m,{badge:v,className:a.MOBILE.HEADER,closeOption:{onClose:f},fileName:c?.name??o,titleId:P}),e(p,{"aria-labelledby":P,className:a.MOBILE.VIEWER_WRAPPER,ref:w,children:e(t,{file:c,isLoading:b,previewOptions:I,viewerSize:E})}),e(n,{file:c,previewOptions:I,setPreviewOptions:N})]})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=PreviewSingleMobile-BNulg8Qv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewSingleMobile-BNulg8Qv.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{PreviewThumbnailNotSupport-DurToJRF.js → PreviewThumbnailNotSupport-CM0akJty.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{p as o}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewThumbnailNotSupport-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{p as o}from"./index-BNN8xh8a.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const r=()=>t(o,{className:"text-in-gray-03 text-[1.875rem]",iconKey:"image"});export{r as default};
|
|
2
|
+
//# sourceMappingURL=PreviewThumbnailNotSupport-CM0akJty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewThumbnailNotSupport-CM0akJty.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{i as r,T as t,n as i,e,o as s}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewThumbnailViewer-
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{i as r,T as t,n as i,e,o as s}from"./index-BNN8xh8a.js";import{useState as n}from"react";import"@bbodek/utils";import a from"./PreviewThumbnailNotSupport-CM0akJty.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=e((()=>import("./ThumbnailImage-9HZQtvPe.js")),{ssr:!1}),p=e((()=>import("./index-BNN8xh8a.js").then((function(o){return o.dY}))),{ssr:!1}),l=({file:e})=>{const[l,d]=n(!0);return o(r,{className:"bg-in-gray-01",isLoading:l,loadingComponent:o(t,{}),children:(()=>{const{type:r,blob:t,original:n}=e,l={alt:"",size:60,setIsLoading:d,errorComponent:o(a,{})};return i({type:r})?o(m,{...l,src:t}):s({type:r})?o(p,{...l,file:n}):void 0})()})};export{l as default};
|
|
2
|
+
//# sourceMappingURL=PreviewThumbnailViewer-CSzsppo1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewThumbnailViewer-CSzsppo1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useEffect as e,useId as a,useRef as i,useState as t,cloneElement as r}from"react";import{v as l,c as s,w as n,x as o,y as c,f as d,z as m,A as h,B as b}from"./index-
|
|
2
|
-
//# sourceMappingURL=PreviewToolbar-
|
|
1
|
+
import{useEffect as e,useId as a,useRef as i,useState as t,cloneElement as r}from"react";import{v as l,c as s,w as n,x as o,y as c,f as d,z as m,A as h,B as b}from"./index-BNN8xh8a.js";import{jsx as w,jsxs as u}from"react/jsx-runtime";import{fileDownload as f}from"@bbodek/utils";const p=()=>{const r=a(),s=i(null),[n,o]=t(null),[c,d]=t(l);return(({viewerRef:a,setViewerSize:i})=>{e((()=>{if(!a.current)return;const e=()=>{if(a.current){const{width:e,height:t}=a.current.getBoundingClientRect();i({width:e,height:t})}},t=new ResizeObserver(e);return e(),t.observe(a.current),()=>t.disconnect()}),[a])})({viewerRef:s,setViewerSize:o}),{models:{viewerRef:s,viewerSize:n,titleId:r,previewOptions:c},operations:{setPreviewOptions:d}}},v=({id:e,ref:a,"aria-labelledby":i,className:t,children:r})=>w("div",{className:s(t,"in-flex-v-stack relative items-center-safe justify-center-safe overflow-auto"),"aria-labelledby":i,id:e,ref:a,children:r}),y="UP",N="DOWN",k={SCALE:.25,ROTATE:90},C=({type:e,value:a,direction:i=y})=>{const t=k[e],r="number"==typeof a?a:n[e].MAX;return i===y?r+t:r-t},A=({titleId:e,fileName:a,badge:i,closeOption:t,className:l})=>{const{iconKey:n="x","aria-label":m="닫기",onClose:h}=t;return u("header",{className:s(l,"in-flex-h-stack items-center"),children:[u(o,{align:{items:"center"},className:"max-w-[calc(100%-2rem)]",gap:{row:"6"},children:[i&&r(i,{className:"shrink-0"}),w(c,{as:"strong",className:"truncate break-all",color:"white",id:e,variant:"body-14-r",children:a})]}),w(d,{"aria-label":m,className:"shrink-0",iconKey:n,theme:"white",onClick:h})]})},g=({file:e,previewOptions:a,setPreviewOptions:i,className:t})=>{const r=!e||!h(e),{SCALE:l,ROTATE:o}=n;return u("footer",{className:s(t,"in-flex-h-stack-center gap-x-2 pt-2 pb-3"),children:[w(d,{"aria-label":"회전",disabled:r,iconKey:"arrow-counter-clockwise",theme:"white",onClick:()=>i((({rotate:e,...a})=>({...a,rotate:e===o.MAX?o.MIN:C({type:b.ROTATE,direction:N,value:e})})))}),w(d,{"aria-label":"축소",disabled:r||a.scale===l.MIN,iconKey:"minus",theme:"white",onClick:()=>i((({scale:e,...a})=>({...a,scale:e!==l.MIN?C({type:b.SCALE,direction:N,value:e}):e})))}),w(d,{"aria-label":"확대",disabled:r||a.scale===l.MAX,iconKey:"plus",theme:"white",onClick:()=>i((({scale:e,...a})=>({...a,scale:e!==l.MAX?C({type:b.SCALE,direction:y,value:e}):e})))}),w(d,{"aria-label":"높이에 맞춤",disabled:r,iconKey:"arrows-out-line-vertical",theme:"white",onClick:()=>i((e=>({...e,scale:l.FIT,rotate:o.MIN,fitMode:m.HEIGHT})))}),w(d,{"aria-label":"너비에 맞춤",disabled:r,iconKey:"arrows-out-line-horizontal",theme:"white",onClick:()=>i((e=>({...e,scale:l.FIT,rotate:o.MIN,fitMode:m.WIDTH})))}),w("div",{className:"bg-in-gray-08 h-4 w-px"}),w(d,{"aria-label":"다운로드",disabled:r,iconKey:"download",theme:"white",onClick:()=>{r||f({url:e.blob,name:e.name})}})]})};export{A as P,v as a,g as b,p as u};
|
|
2
|
+
//# sourceMappingURL=PreviewToolbar-DxMXpxRf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewToolbar-DxMXpxRf.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{SideSheetFullScreenDialog-CuKenNHA.js → SideSheetFullScreenDialog-BjQmJrm8.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{F as i}from"./index-
|
|
2
|
-
//# sourceMappingURL=SideSheetFullScreenDialog-
|
|
1
|
+
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{F as i}from"./index-BNN8xh8a.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const t=({isOpen:t,title:r,isLoading:s,className:a,children:n,onClose:m})=>e(i,{className:a,isOpen:t,children:[o(i.Header,{title:r,onClose:m}),o(i.ContentWrapper,{isLoading:s,children:n})]});export{t as default};
|
|
2
|
+
//# sourceMappingURL=SideSheetFullScreenDialog-BjQmJrm8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideSheetFullScreenDialog-BjQmJrm8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o,jsxs as i,Fragment as t}from"react/jsx-runtime";import{C as e}from"./index-
|
|
2
|
-
//# sourceMappingURL=StepDialogConfirmModal-
|
|
1
|
+
import{jsx as o,jsxs as i,Fragment as t}from"react/jsx-runtime";import{C as e}from"./index-BNN8xh8a.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const r=({isOpen:r,close:m})=>o(e,{confirmOption:{label:"닫기",onConfirm:()=>m(!0),tooltipOption:{useTooltip:!1}},title:i(t,{children:["작성을 종료하고 닫으시겠습니까? ",o("br",{}),"입력한 내용은 저장되지 않습니다"]}),cancelOption:{onCancel:()=>m(!1)},className:"w-[21.875rem]",isOpen:r,possibleConfirm:!0});export{r as default};
|
|
2
|
+
//# sourceMappingURL=StepDialogConfirmModal-DbRMC-5B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepDialogConfirmModal-DbRMC-5B.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o,jsxs as i,Fragment as t}from"react/jsx-runtime";import{t as e}from"./index-
|
|
2
|
-
//# sourceMappingURL=StepFullScreenDialogConfirmBottomSheet-
|
|
1
|
+
import{jsx as o,jsxs as i,Fragment as t}from"react/jsx-runtime";import{t as e}from"./index-BNN8xh8a.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const r=({isOpen:r,close:n})=>o(e,{confirmOption:{label:"닫기",onConfirm:()=>n(!0),tooltipOption:{useTooltip:!1}},title:i(t,{children:["작성을 종료하고 닫으시겠습니까?",o("br",{}),"입력한 내용은 저장되지 않습니다"]}),cancelOption:{onCancel:()=>n(!1)},className:"min-w-in-mobile w-svw",isOpen:r,possibleConfirm:!0});export{r as default};
|
|
2
|
+
//# sourceMappingURL=StepFullScreenDialogConfirmBottomSheet-B5GETSdU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepFullScreenDialogConfirmBottomSheet-B5GETSdU.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{I as o}from"./index-
|
|
2
|
-
//# sourceMappingURL=ThumbnailImage-
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{I as o}from"./index-BNN8xh8a.js";import{useState as t}from"react";import{I as e}from"./ImageErrorBoundary-QOKcn2h8.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const s=({src:s,size:i,setIsLoading:a,errorComponent:m,alt:n})=>{const[c,l]=t(!1);return r(e,{className:"bg-in-gray-01",errorComponent:m,isError:c,children:r(o,{alt:n,className:"h-full w-full object-cover",height:i,sizes:`${i}px`,src:s,width:i,onError:()=>{l(!0),a(!1)},onLoad:()=>a(!1)})})};export{s as default};
|
|
2
|
+
//# sourceMappingURL=ThumbnailImage-9HZQtvPe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbnailImage-9HZQtvPe.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateButtonStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/shared/utils/generateButtonStyle.ts"],"names":[],"mappings":"AAWA,OAAO,EAIL,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAG1C,eAAO,MAAM,mBAAmB,GAAI,2EAQjC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"generateButtonStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/shared/utils/generateButtonStyle.ts"],"names":[],"mappings":"AAWA,OAAO,EAIL,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAG1C,eAAO,MAAM,mBAAmB,GAAI,2EAQjC,wBAAwB,WAoC1B,CAAC"}
|
|
@@ -76,7 +76,7 @@ export declare const PREVIEW_RESPONSE_STYLES: {
|
|
|
76
76
|
readonly VIEWER_WRAPPER: "flex-1";
|
|
77
77
|
};
|
|
78
78
|
readonly DESKTOP: {
|
|
79
|
-
readonly WRAPPER: "in-flex-v-stack-center px-[6.25rem] py-[4.375rem] max-w-in-desktop";
|
|
79
|
+
readonly WRAPPER: "in-flex-v-stack-center px-[6.25rem] py-[4.375rem] max-w-in-max-desktop";
|
|
80
80
|
readonly CONTAINER: "rounded-in-12";
|
|
81
81
|
readonly HEADER: "justify-between py-2.5 pl-5 pr-3";
|
|
82
82
|
readonly VIEWER_WRAPPER: "flex-1";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { DynamicVirtualListProps } from '../../../components/VirtualList/DynamicVirtualList/types';
|
|
3
|
+
declare const DynamicVirtualList: {
|
|
4
|
+
<T extends ElementType, P extends ElementType>({ ref, as, itemsTotalCount, initialItemHeight, gap, listOptions, overScanCount, className, children, }: DynamicVirtualListProps<T, P>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
Item: import("react").MemoExoticComponent<(<T extends ElementType = "div">({ as, index, className, children, }: import("react").PropsWithChildren<import("../../../components/VirtualList/DynamicVirtualList/types").DynamicVirtualListItemProps<T>>) => import("react/jsx-runtime").JSX.Element)>;
|
|
7
|
+
};
|
|
8
|
+
export default DynamicVirtualList;
|
|
9
|
+
//# sourceMappingURL=DynamicVirtualList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicVirtualList.d.ts","sourceRoot":"","sources":["../../../../src/components/VirtualList/DynamicVirtualList/DynamicVirtualList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiC,MAAM,OAAO,CAAC;AAMnE,OAAO,EACL,uBAAuB,EAExB,MAAM,mDAAmD,CAAC;AAQ3D,QAAA,MAAM,kBAAkB;KAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,WAAW,0GAUrE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC;;;CA6E/B,CAAC;AAKF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ElementType, PropsWithChildren } from 'react';
|
|
2
|
+
import { DynamicVirtualListItemProps } from '../../../components/VirtualList/DynamicVirtualList/types';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(<T extends ElementType = "div">({ as, index, className, children, }: PropsWithChildren<DynamicVirtualListItemProps<T>>) => import("react/jsx-runtime").JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=DynamicVirtualListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicVirtualListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/VirtualList/DynamicVirtualList/DynamicVirtualListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAQ,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;8DAGhE,CAAC,SAAS,WAAW,+CAKlD,iBAAiB,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC;AAyBpD,wBAA4C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { DynamicVirtualListContextProps, DynamicVirtualListProviderProps } from '../../../../components/VirtualList/DynamicVirtualList/types';
|
|
3
|
+
export declare const DynamicVirtualListContextProvider: ({ heightsRef, offsets, startIndex, gap, initialItemHeight, itemsTotalCount, updateOffsets, children, }: PropsWithChildren<DynamicVirtualListProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const useDynamicVirtualListContext: () => DynamicVirtualListContextProps;
|
|
5
|
+
//# sourceMappingURL=DynamicVirtualListContext.d.ts.map
|
package/dist/components/VirtualList/DynamicVirtualList/context/DynamicVirtualListContext.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicVirtualListContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/context/DynamicVirtualListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAErE,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,mDAAmD,CAAC;AAM3D,eAAO,MAAM,iCAAiC,GAAI,wGAS/C,iBAAiB,CAAC,+BAA+B,CAAC,4CAgBpD,CAAC;AAEF,eAAO,MAAM,4BAA4B,sCAUxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { default as useVirtualItemsMetricsInitEffect } from './useVirtualItemsMetricsInitEffect';
|
|
3
|
+
export { default as useVirtualListItemResizeObserverEffect } from './useVirtualListItemResizeObserverEffect';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/VirtualList/DynamicVirtualList/hooks/effects/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,sCAAsC,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { DynamicVirtualListContextProps } from '../../../../../components/VirtualList/DynamicVirtualList/types';
|
|
3
|
+
export interface UseVirtualListItemResizeObserverEffectParams {
|
|
4
|
+
ref: RefObject<HTMLElement | null>;
|
|
5
|
+
dataIndex: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UseVirtualItemsMetricsInitEffectParams extends Pick<DynamicVirtualListContextProps, 'gap' | 'initialItemHeight' | 'itemsTotalCount' | 'heightsRef' | 'updateOffsets'> {
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateHeightParams {
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export interface UseVirtualListUpdateOffsetsCancelAnimationFrameEffectParams {
|
|
13
|
+
rafIdRef: RefObject<number>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/VirtualList/DynamicVirtualList/hooks/effects/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAEnG,MAAM,WAAW,4CAA4C;IAC3D,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sCACf,SAAQ,IAAI,CACV,8BAA8B,EAC5B,KAAK,GACL,mBAAmB,GACnB,iBAAiB,GACjB,YAAY,GACZ,eAAe,CAClB;CAAG;AAEN,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2DAA2D;IAC1E,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseVirtualItemsMetricsInitEffectParams } from '../../../../../components/VirtualList/DynamicVirtualList/hooks/effects/types';
|
|
2
|
+
declare const useVirtualItemsMetricsInitEffect: ({ itemsTotalCount, initialItemHeight, gap, heightsRef, updateOffsets, }: UseVirtualItemsMetricsInitEffectParams) => void;
|
|
3
|
+
export default useVirtualItemsMetricsInitEffect;
|
|
4
|
+
//# sourceMappingURL=useVirtualItemsMetricsInitEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVirtualItemsMetricsInitEffect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualItemsMetricsInitEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,iEAAiE,CAAC;AAEzH,QAAA,MAAM,gCAAgC,GAAI,yEAMvC,sCAAsC,SAOxC,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseVirtualListItemResizeObserverEffectParams } from '../../../../../components/VirtualList/DynamicVirtualList/hooks/effects/types';
|
|
2
|
+
declare const useVirtualListItemResizeObserverEffect: ({ ref, dataIndex, }: UseVirtualListItemResizeObserverEffectParams) => void;
|
|
3
|
+
export default useVirtualListItemResizeObserverEffect;
|
|
4
|
+
//# sourceMappingURL=useVirtualListItemResizeObserverEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVirtualListItemResizeObserverEffect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListItemResizeObserverEffect.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,4CAA4C,EAC7C,MAAM,iEAAiE,CAAC;AAEzE,QAAA,MAAM,sCAAsC,GAAI,qBAG7C,4CAA4C,SA6B9C,CAAC;AAEF,eAAe,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseVirtualListUpdateOffsetsCancelAnimationFrameEffectParams } from '../../../../../components/VirtualList/DynamicVirtualList/hooks/effects/types';
|
|
2
|
+
declare const useVirtualListUpdateOffsetsCancelAnimationFrameEffect: ({ rafIdRef, }: UseVirtualListUpdateOffsetsCancelAnimationFrameEffectParams) => void;
|
|
3
|
+
export default useVirtualListUpdateOffsetsCancelAnimationFrameEffect;
|
|
4
|
+
//# sourceMappingURL=useVirtualListUpdateOffsetsCancelAnimationFrameEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVirtualListUpdateOffsetsCancelAnimationFrameEffect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/VirtualList/DynamicVirtualList/hooks/effects/useVirtualListUpdateOffsetsCancelAnimationFrameEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2DAA2D,EAAE,MAAM,iEAAiE,CAAC;AAE9I,QAAA,MAAM,qDAAqD,GAAI,eAE5D,2DAA2D,SAM7D,CAAC;AAEF,eAAe,qDAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/VirtualList/DynamicVirtualList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementType, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { VirtualListChildrenPrimitiveProps, VirtualListItemBaseProps, VirtualListPrimitiveProps } from '../../../../components/VirtualList/shared';
|
|
3
|
+
export interface DynamicVirtualListProps<T extends ElementType = 'div', P extends ElementType = 'div'> extends Omit<VirtualListPrimitiveProps<T, P>, 'itemHeight'> {
|
|
4
|
+
initialItemHeight: number;
|
|
5
|
+
overScanCount?: number;
|
|
6
|
+
children: (params: VirtualListChildrenPrimitiveProps) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export type VirtualListItemHeights = number[];
|
|
9
|
+
export type VirtualListItemOffsets = number[];
|
|
10
|
+
export interface DynamicVirtualListContextProps extends Required<Pick<DynamicVirtualListProps, 'gap' | 'initialItemHeight' | 'itemsTotalCount'>>, Pick<VirtualListChildrenPrimitiveProps, 'startIndex'> {
|
|
11
|
+
heightsRef: RefObject<VirtualListItemHeights>;
|
|
12
|
+
offsets: VirtualListItemOffsets;
|
|
13
|
+
updateOffsets: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface DynamicVirtualListProviderProps extends DynamicVirtualListContextProps {
|
|
16
|
+
}
|
|
17
|
+
export interface DynamicVirtualListItemProps<T extends ElementType = 'div'> extends Omit<VirtualListItemBaseProps<T>, 'topPosition'> {
|
|
18
|
+
index: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,WAAW,GAAG,KAAK,EAC7B,CAAC,SAAS,WAAW,GAAG,KAAK,CAC7B,SAAQ,IAAI,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC;IAC3D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,MAAM,EAAE,iCAAiC,KAAK,SAAS,CAAC;CACpE;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,EAAE,CAAC;AAE9C,MAAM,MAAM,sBAAsB,GAAG,MAAM,EAAE,CAAC;AAE9C,MAAM,WAAW,8BACf,SAAQ,QAAQ,CACZ,IAAI,CACF,uBAAuB,EACvB,KAAK,GAAG,mBAAmB,GAAG,iBAAiB,CAChD,CACF,EACD,IAAI,CAAC,iCAAiC,EAAE,YAAY,CAAC;IACvD,UAAU,EAAE,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAC9C,OAAO,EAAE,sBAAsB,CAAC;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,+BACf,SAAQ,8BAA8B;CAAG;AAE3C,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,CACxE,SAAQ,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FindEndIndexParams, FindIndexParams, FindStartIndexParams } from '../../../../components/VirtualList/DynamicVirtualList/utils/types';
|
|
2
|
+
export declare const findIndex: ({ offset, itemsTotalCount, offsets, }: FindIndexParams) => number | null;
|
|
3
|
+
export declare const findStartIndex: ({ scrollTop, overScanCount, ...rest }: FindStartIndexParams) => number;
|
|
4
|
+
export declare const findEndIndex: ({ scrollTop, itemsTotalCount, offsets, containerHeight, overScanCount, }: FindEndIndexParams) => number;
|
|
5
|
+
export declare const findDynamicVirtualListIndexes: ({ containerHeight, ...defaultParams }: FindStartIndexParams & Pick<FindEndIndexParams, "containerHeight">) => {
|
|
6
|
+
startIndex: number;
|
|
7
|
+
endIndex: number;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=findIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/utils/findIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACrB,MAAM,yDAAyD,CAAC;AAEjE,eAAO,MAAM,SAAS,GAAI,uCAIvB,eAAe,kBAwBjB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,uCAI5B,oBAAoB,WAItB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,0EAM1B,kBAAkB,WAWpB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,uCAG3C,oBAAoB,GAAG,IAAI,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;;;CAKpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DynamicVirtualListContextProps, DynamicVirtualListProps, VirtualListItemOffsets } from '../../../../components/VirtualList/DynamicVirtualList/types';
|
|
2
|
+
import { UseVirtualListReturnType } from '../../../../components/VirtualList/shared';
|
|
3
|
+
export interface FindIndexParams extends Pick<DynamicVirtualListProps, 'itemsTotalCount'>, Pick<DynamicVirtualListContextProps, 'offsets'> {
|
|
4
|
+
offset: VirtualListItemOffsets[0];
|
|
5
|
+
}
|
|
6
|
+
export interface FindIndexDefaultParams extends Omit<FindIndexParams, 'offset'>, Required<Pick<DynamicVirtualListProps, 'overScanCount'>>, Pick<UseVirtualListReturnType['models'], 'scrollTop'> {
|
|
7
|
+
}
|
|
8
|
+
export interface FindStartIndexParams extends FindIndexDefaultParams {
|
|
9
|
+
}
|
|
10
|
+
export interface FindEndIndexParams extends FindIndexDefaultParams, Pick<UseVirtualListReturnType['models'], 'containerHeight'> {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualList/DynamicVirtualList/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,EACtD,IAAI,CAAC,8BAA8B,EAAE,SAAS,CAAC;IACjD,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,EACrC,QAAQ,CAAC,IAAI,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAC,EACxD,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CAAG;AAE5D,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;CAAG;AAEvE,MAAM,WAAW,kBACf,SAAQ,sBAAsB,EAC5B,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAAG"}
|