@bbodek/internal-ui 0.0.110 → 0.0.111
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-CLVgAf-S.js → FilterCalendarPanel-DVwzQk3y.js} +2 -2
- package/dist/FilterCalendarPanel-DVwzQk3y.js.map +1 -0
- package/dist/{FilterInputPanel-BkC3907J.js → FilterInputPanel-In3Fh3-X.js} +2 -2
- package/dist/FilterInputPanel-In3Fh3-X.js.map +1 -0
- package/dist/{FilterMultiSelectPanel-AUryZEFZ.js → FilterMultiSelectPanel-C5NlRlZD.js} +2 -2
- package/dist/FilterMultiSelectPanel-C5NlRlZD.js.map +1 -0
- package/dist/{FilterSelectButton-D27mtSQC.js → FilterSelectButton-BI5FZRTw.js} +2 -2
- package/dist/FilterSelectButton-BI5FZRTw.js.map +1 -0
- package/dist/{FilterSelectOptionPanel-CzE_fmJu.js → FilterSelectOptionPanel-CMNuAYow.js} +2 -2
- package/dist/FilterSelectOptionPanel-CMNuAYow.js.map +1 -0
- package/dist/{FilterSingleSelectPanel-BW_jRWkd.js → FilterSingleSelectPanel-DuNmWYhJ.js} +2 -2
- package/dist/FilterSingleSelectPanel-DuNmWYhJ.js.map +1 -0
- package/dist/{ImageErrorBoundary-BTDxeDpZ.js → ImageErrorBoundary-DU-8vnH8.js} +2 -2
- package/dist/ImageErrorBoundary-DU-8vnH8.js.map +1 -0
- package/dist/{PreviewImage-D0lS7tED.js → PreviewImage-DGqEDB-Q.js} +2 -2
- package/dist/PreviewImage-DGqEDB-Q.js.map +1 -0
- package/dist/{PreviewImageViewer-BRat4lMb.js → PreviewImageViewer-CDv_O0t6.js} +2 -2
- package/dist/PreviewImageViewer-CDv_O0t6.js.map +1 -0
- package/dist/{PreviewInlineViewer-BGhMWaPk.js → PreviewInlineViewer-Dn-9-egQ.js} +2 -2
- package/dist/PreviewInlineViewer-Dn-9-egQ.js.map +1 -0
- package/dist/{PreviewMultiController-CJvXEOvq.js → PreviewMultiController-BHsLTy5K.js} +2 -2
- package/dist/PreviewMultiController-BHsLTy5K.js.map +1 -0
- package/dist/{PreviewMultiDesktop-D66Hc2v5.js → PreviewMultiDesktop-DPzvemRL.js} +2 -2
- package/dist/PreviewMultiDesktop-DPzvemRL.js.map +1 -0
- package/dist/{PreviewMultiDesktopViewer--xcgiGRL.js → PreviewMultiDesktopViewer-ASbdkVHR.js} +2 -2
- package/dist/PreviewMultiDesktopViewer-ASbdkVHR.js.map +1 -0
- package/dist/{PreviewMultiMobile-rZ7Lnvl5.js → PreviewMultiMobile-CRO8A32l.js} +2 -2
- package/dist/PreviewMultiMobile-CRO8A32l.js.map +1 -0
- package/dist/{PreviewMultiMobileViewer-CqplVRm1.js → PreviewMultiMobileViewer-C5CNBENb.js} +2 -2
- package/dist/PreviewMultiMobileViewer-C5CNBENb.js.map +1 -0
- package/dist/{PreviewOverlayWrapper-v8jwG4F0.js → PreviewOverlayWrapper-D0IcFv0X.js} +2 -2
- package/dist/PreviewOverlayWrapper-D0IcFv0X.js.map +1 -0
- package/dist/{PreviewPdfViewer-BueyTNqW.js → PreviewPdfViewer-CgacdjUu.js} +2 -2
- package/dist/PreviewPdfViewer-CgacdjUu.js.map +1 -0
- package/dist/{PreviewPdfViewerImage-D66TBc2X.js → PreviewPdfViewerImage-BOP7SoS-.js} +2 -2
- package/dist/PreviewPdfViewerImage-BOP7SoS-.js.map +1 -0
- package/dist/{PreviewSingleDesktop-Bm4MaRzE.js → PreviewSingleDesktop-DYywZ1-U.js} +2 -2
- package/dist/PreviewSingleDesktop-DYywZ1-U.js.map +1 -0
- package/dist/{PreviewSingleMobile-Hn2l0ej5.js → PreviewSingleMobile-dfL1OV2-.js} +2 -2
- package/dist/PreviewSingleMobile-dfL1OV2-.js.map +1 -0
- package/dist/{PreviewThumbnailNotSupport-DnA_Byap.js → PreviewThumbnailNotSupport-DDyQLXX5.js} +2 -2
- package/dist/PreviewThumbnailNotSupport-DDyQLXX5.js.map +1 -0
- package/dist/{PreviewThumbnailViewer-BayTP3az.js → PreviewThumbnailViewer-CgFSLlj6.js} +2 -2
- package/dist/PreviewThumbnailViewer-CgFSLlj6.js.map +1 -0
- package/dist/{PreviewToolbar-BzR1_g-7.js → PreviewToolbar-ctaqJzLU.js} +2 -2
- package/dist/PreviewToolbar-ctaqJzLU.js.map +1 -0
- package/dist/{SideSheetFullScreenDialog-CHsUUB2Q.js → SideSheetFullScreenDialog-CmZASCd_.js} +2 -2
- package/dist/SideSheetFullScreenDialog-CmZASCd_.js.map +1 -0
- package/dist/{StepDialogConfirmModal-CQk3Fn8e.js → StepDialogConfirmModal-DgHne1hy.js} +2 -2
- package/dist/StepDialogConfirmModal-DgHne1hy.js.map +1 -0
- package/dist/{StepFullScreenDialogConfirmBottomSheet-DmiGb8aA.js → StepFullScreenDialogConfirmBottomSheet-D40J5BcU.js} +2 -2
- package/dist/StepFullScreenDialogConfirmBottomSheet-D40J5BcU.js.map +1 -0
- package/dist/{ThumbnailImage-Bl8LDLsc.js → ThumbnailImage-CEPxEg2L.js} +2 -2
- package/dist/ThumbnailImage-CEPxEg2L.js.map +1 -0
- package/dist/components/Table/constants/index.d.ts +1 -1
- package/dist/{index-CpOqQBJR.js → index-CCtP4sAC.js} +2 -2
- package/dist/{index-CpOqQBJR.js.map → index-CCtP4sAC.js.map} +1 -1
- package/dist/{index-B4Y4yrcT.js → index-CRKVLqkH.js} +2 -2
- package/dist/{index-B4Y4yrcT.js.map → index-CRKVLqkH.js.map} +1 -1
- package/dist/{index.es-jcI96QPG.js → index.es-C27VhV7Q.js} +2 -2
- package/dist/{index.es-jcI96QPG.js.map → index.es-C27VhV7Q.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{useFilterSelectOptionPanel-DVJIjlPy.js → useFilterSelectOptionPanel-9yufRqFR.js} +2 -2
- package/dist/useFilterSelectOptionPanel-9yufRqFR.js.map +1 -0
- package/package.json +6 -6
- package/dist/FilterCalendarPanel-CLVgAf-S.js.map +0 -1
- package/dist/FilterInputPanel-BkC3907J.js.map +0 -1
- package/dist/FilterMultiSelectPanel-AUryZEFZ.js.map +0 -1
- package/dist/FilterSelectButton-D27mtSQC.js.map +0 -1
- package/dist/FilterSelectOptionPanel-CzE_fmJu.js.map +0 -1
- package/dist/FilterSingleSelectPanel-BW_jRWkd.js.map +0 -1
- package/dist/ImageErrorBoundary-BTDxeDpZ.js.map +0 -1
- package/dist/PreviewImage-D0lS7tED.js.map +0 -1
- package/dist/PreviewImageViewer-BRat4lMb.js.map +0 -1
- package/dist/PreviewInlineViewer-BGhMWaPk.js.map +0 -1
- package/dist/PreviewMultiController-CJvXEOvq.js.map +0 -1
- package/dist/PreviewMultiDesktop-D66Hc2v5.js.map +0 -1
- package/dist/PreviewMultiDesktopViewer--xcgiGRL.js.map +0 -1
- package/dist/PreviewMultiMobile-rZ7Lnvl5.js.map +0 -1
- package/dist/PreviewMultiMobileViewer-CqplVRm1.js.map +0 -1
- package/dist/PreviewOverlayWrapper-v8jwG4F0.js.map +0 -1
- package/dist/PreviewPdfViewer-BueyTNqW.js.map +0 -1
- package/dist/PreviewPdfViewerImage-D66TBc2X.js.map +0 -1
- package/dist/PreviewSingleDesktop-Bm4MaRzE.js.map +0 -1
- package/dist/PreviewSingleMobile-Hn2l0ej5.js.map +0 -1
- package/dist/PreviewThumbnailNotSupport-DnA_Byap.js.map +0 -1
- package/dist/PreviewThumbnailViewer-BayTP3az.js.map +0 -1
- package/dist/PreviewToolbar-BzR1_g-7.js.map +0 -1
- package/dist/SideSheetFullScreenDialog-CHsUUB2Q.js.map +0 -1
- package/dist/StepDialogConfirmModal-CQk3Fn8e.js.map +0 -1
- package/dist/StepFullScreenDialogConfirmBottomSheet-DmiGb8aA.js.map +0 -1
- package/dist/ThumbnailImage-Bl8LDLsc.js.map +0 -1
- package/dist/useFilterSelectOptionPanel-DVJIjlPy.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{Y as n,Z as r,_ as l,$ as o,x as s,a0 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{Y as n,Z as r,_ as l,$ as o,x as s,a0 as i}from"./index-CRKVLqkH.js";import"@bbodek/utils";import{F as m}from"./FilterSelectButton-BI5FZRTw.js";import{u}from"./useFilterSelectOptionPanel-9yufRqFR.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-DVwzQk3y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCalendarPanel-DVwzQk3y.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{F as l}from"./FilterSelectButton-
|
|
2
|
-
//# sourceMappingURL=FilterInputPanel-
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{F as l}from"./FilterSelectButton-BI5FZRTw.js";import{useState as i}from"react";import{q as r,r as o,x as t,a1 as n}from"./index-CRKVLqkH.js";import{u as s}from"./useFilterSelectOptionPanel-9yufRqFR.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const m=()=>{const{models:{value:e},operations:{handleChange:a}}=s(),{currentOptions:l}=r(),{type:t,label:n,numericOption:m,placeholder:c}=l,{min:u,max:d,isDecimal:p=!1}=m??{},b=t===o.NUMERIC_INPUT,h=e?.[0]??"",[v,g]=i(h),x=b?e=>(({value:e,isDecimal:a=!1,min:l,max:i})=>{const r=a?(e=>{const a=e.replace(/[^\d.]/g,""),l=a.indexOf(".");return-1===l?a:`${a.slice(0,l)}.${a.slice(l+1).replace(/\./g,"")}`})(e):e.replace(/[^\d]/g,"");if(""===r||"."===r)return r;const o=Number(r);return Number.isNaN(o)?r:void 0!==i&&o>i?`${i}`:void 0!==l&&o<l?`${l}`:r})({value:e,isDecimal:p,min:u,max:d}):void 0;return{models:{label:n,inputValue:v,placeholder:c??(b?p?"숫자만 입력 가능합니다 (소수점 입력 가능)":"숫자만 입력 가능합니다":"검색어를 입력해주세요"),regCallback:x},operations:{onChange:e=>{g(e.target.value)},onSubmit:()=>{a({value:v?[v]:null})}},status:{isDisabled:""===v||v===h}}},c=()=>{const{models:{label:i,inputValue:r,placeholder:o,regCallback:s},operations:{onChange:c,onSubmit:u},status:{isDisabled:d}}=m();return e(t,{className:"in-tablet:min-w-[23.75rem] mx-auto w-[22.5rem]",direction:"column",children:[a("div",{className:"p-4",children:a(n,{label:i,placeholder:o,regCallback:s,value:r,hiddenLabel:!0,onChange:c})}),a(l,{disabled:d,onClick:u})]})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=FilterInputPanel-In3Fh3-X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterInputPanel-In3Fh3-X.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 t}from"./FilterSelectButton-
|
|
2
|
-
//# sourceMappingURL=FilterMultiSelectPanel-
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as l}from"react";import{F as t}from"./FilterSelectButton-BI5FZRTw.js";import{E as o,M as n,x as s,G as i,H as r,J as m}from"./index-CRKVLqkH.js";import{u}from"./useFilterSelectOptionPanel-9yufRqFR.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const c=()=>{const{onChange:a,onSearch:l,internalOptions:n}=o();return e(t,{disabled:0===n.length||void 0===n.find((({isSelected:e})=>e)),onClick:()=>{l({value:null}),a()}})},d=()=>{const t=l(),o=l(),d=l(),{models:{value:p,options:h},operations:{onChange:v}}=(()=>{const{models:{options:e,value:a},operations:{handleChange:l}}=u(),t=e.options.map((({value:e,displayValue:a})=>({value:e,label:a})));return{models:{value:(a??[]).map((e=>({value:e,label:t.find((a=>a.value===e))?.label??""}))),options:t},operations:{onChange:e=>{const a=e?e.map((({value:e})=>e)):null;l({value:a})}}}})();return e(n,{options:h,selectListResultId:o,selectedListResultId:d,value:p,onChange:v,children:a(s,{className:"in-tablet:min-w-[36.25rem] mx-auto w-[22.5rem] flex-1 justify-between overflow-hidden",direction:"column",children:[e(i,{className:"in-tablet:min-h-[calc(34svh-3.75rem)] in-tablet:max-h-[calc(46svh-3.75rem)] h-[100svh-4rem]",labelId:t,searchPanel:e(m,{}),selectedPanel:e(r,{})}),e(c,{})]})})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=FilterMultiSelectPanel-C5NlRlZD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMultiSelectPanel-C5NlRlZD.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{K as r,L as a,N as s}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterSelectButton-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{K as r,L as a,N as s}from"./index-CRKVLqkH.js";import"react";const i=({onClick:i,disabled:l})=>e("div",{className:"border-t-in-gray-02 border-t p-4",children:e(r,{className:"w-full",disabled:l,label:"선택 완료",size:s.SM,theme:a.PRIMARY,onClick:i})});export{i as F};
|
|
2
|
+
//# sourceMappingURL=FilterSelectButton-BI5FZRTw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectButton-BI5FZRTw.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 s,s as i}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterSelectOptionPanel-
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{q as t,r as e,e as s,s as i}from"./index-CRKVLqkH.js";import"react";import"@bbodek/utils";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const o=s((()=>import("./FilterMultiSelectPanel-C5NlRlZD.js")),{ssr:!1}),a=s((()=>import("./FilterSingleSelectPanel-DuNmWYhJ.js")),{ssr:!1}),l=s((()=>import("./FilterCalendarPanel-DVwzQk3y.js")),{ssr:!1}),n=s((()=>import("./FilterInputPanel-In3Fh3-X.js")),{ssr:!1}),m=()=>{const{currentOptions:s}=t(),{type:m}=s;return{[e.MULTI_SELECT]:r(o,{}),[e.SINGLE_SELECT]:r(a,{}),[e.DATE_SINGLE]:r(l,{variant:i.SINGLE}),[e.DATE_RANGE]:r(l,{variant:i.RANGE}),[e.NUMERIC_INPUT]:r(n,{}),[e.TEXT_INPUT]:r(n,{})}[m]};export{m as default};
|
|
2
|
+
//# sourceMappingURL=FilterSelectOptionPanel-CMNuAYow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectOptionPanel-CMNuAYow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{useId as a,useState as o}from"react";import{u as t}from"./useFilterSelectOptionPanel-
|
|
2
|
-
//# sourceMappingURL=FilterSingleSelectPanel-
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{useId as a,useState as o}from"react";import{u as t}from"./useFilterSelectOptionPanel-9yufRqFR.js";import{S as r,R as n,x as i,U as s,V as m,W as u,X as p}from"./index-CRKVLqkH.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const d=e=>e.replaceAll(" ","").toLowerCase(),c=()=>{const c=a(),v=a(),[h,b]=o(""),{models:{value:f,options:g},operations:{onSelect:x}}=(()=>{const{models:{options:e,value:l},operations:{handleChange:a}}=t(),o=(e.options??[]).map((({value:e,displayValue:l})=>({value:e,label:l})));return{models:{value:l?.[0]??null,options:o},operations:{onSelect:({value:e})=>{a({value:null===e?null:[String(e)]})}}}})(),S=g.filter((({label:e})=>d(e).includes(d(h)))),w=S.length>0;return e(r,{close:n,id:c,labelId:v,value:f,onSelect:x,children:l(i,{className:"in-tablet:min-w-[23.75rem] mx-auto max-h-[19rem] w-[22.5rem] gap-y-[0.875rem] overflow-hidden p-[0.875rem]",direction:"column",children:[e(s,{label:"검색",placeholder:"검색어를 입력해주세요",value:h,hiddenLabel:!0,onChange:e=>{b(e.target.value)}}),e(m,{children:w?S.map((({value:l,label:a})=>e(u,{label:a,value:l,children:a},l))):e(p,{})})]})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=FilterSingleSelectPanel-DuNmWYhJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSingleSelectPanel-DuNmWYhJ.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-CRKVLqkH.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-DU-8vnH8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageErrorBoundary-DU-8vnH8.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-CRKVLqkH.js";import"react";import{I as s}from"./ImageErrorBoundary-DU-8vnH8.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-DGqEDB-Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImage-DGqEDB-Q.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-CRKVLqkH.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-DGqEDB-Q.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-CDv_O0t6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImageViewer-CDv_O0t6.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-ctaqJzLU.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-Dn-9-egQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewInlineViewer-Dn-9-egQ.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-CRKVLqkH.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-BHsLTy5K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiController-BHsLTy5K.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import n from"./PreviewMultiController-BHsLTy5K.js";import{P as m}from"./PreviewOverlayWrapper-D0IcFv0X.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=l((()=>import("./PreviewMultiDesktopViewer-ASbdkVHR.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-DPzvemRL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiDesktop-DPzvemRL.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{PreviewMultiDesktopViewer--xcgiGRL.js → PreviewMultiDesktopViewer-ASbdkVHR.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-ctaqJzLU.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-ASbdkVHR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiDesktopViewer-ASbdkVHR.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{P as n}from"./PreviewOverlayWrapper-D0IcFv0X.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=l((()=>import("./PreviewMultiMobileViewer-C5CNBENb.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-CRO8A32l.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiMobile-CRO8A32l.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{u as s,P as a,a as l,b as p}from"./PreviewToolbar-ctaqJzLU.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-C5CNBENb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMultiMobileViewer-C5CNBENb.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-CRKVLqkH.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-D0IcFv0X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewOverlayWrapper-D0IcFv0X.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-CRKVLqkH.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-BOP7SoS-.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-CgacdjUu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewPdfViewer-CgacdjUu.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-CRKVLqkH.js";import e from"./PreviewImage-DGqEDB-Q.js";import"react";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";import"./ImageErrorBoundary-DU-8vnH8.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-BOP7SoS-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewPdfViewerImage-BOP7SoS-.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{u as l,P as m,a as p,b as n}from"./PreviewToolbar-ctaqJzLU.js";import{P as c}from"./PreviewOverlayWrapper-D0IcFv0X.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-DYywZ1-U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewSingleDesktop-DYywZ1-U.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-CRKVLqkH.js";import"@bbodek/utils";import"react";import{u as l,P as m,a as p,b as n}from"./PreviewToolbar-ctaqJzLU.js";import{P as d}from"./PreviewOverlayWrapper-D0IcFv0X.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-dfL1OV2-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewSingleMobile-dfL1OV2-.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{PreviewThumbnailNotSupport-DnA_Byap.js → PreviewThumbnailNotSupport-DDyQLXX5.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-CRKVLqkH.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-DDyQLXX5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewThumbnailNotSupport-DDyQLXX5.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 e,e as i,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 e,e as i,o as s}from"./index-CRKVLqkH.js";import{useState as n}from"react";import"@bbodek/utils";import a from"./PreviewThumbnailNotSupport-DDyQLXX5.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=i((()=>import("./ThumbnailImage-CEPxEg2L.js")),{ssr:!1}),p=i((()=>import("./index-CRKVLqkH.js").then((function(o){return o.eB}))),{ssr:!1}),l=({file:i})=>{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}=i,l={alt:"",size:60,setIsLoading:d,errorComponent:o(a,{})};return e({type:r})?o(m,{...l,src:t}):s({type:r})?o(p,{...l,file:n}):void 0})()})};export{l as default};
|
|
2
|
+
//# sourceMappingURL=PreviewThumbnailViewer-CgFSLlj6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewThumbnailViewer-CgFSLlj6.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-CRKVLqkH.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-ctaqJzLU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewToolbar-ctaqJzLU.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/{SideSheetFullScreenDialog-CHsUUB2Q.js → SideSheetFullScreenDialog-CmZASCd_.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-CRKVLqkH.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-CmZASCd_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideSheetFullScreenDialog-CmZASCd_.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-CRKVLqkH.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-DgHne1hy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepDialogConfirmModal-DgHne1hy.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-CRKVLqkH.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-D40J5BcU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepFullScreenDialogConfirmBottomSheet-D40J5BcU.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-CRKVLqkH.js";import{useState as t}from"react";import{I as e}from"./ImageErrorBoundary-DU-8vnH8.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-CEPxEg2L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbnailImage-CEPxEg2L.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -61,7 +61,7 @@ export declare const TABLE_CELL_INPUT_STYLES: {
|
|
|
61
61
|
readonly DEFAULT: "border border-transparent text-in-black placeholder-in-gray-04";
|
|
62
62
|
readonly FOCUS: "focus:outline-none focus:border-in-primary-05";
|
|
63
63
|
readonly ERROR: "group-[.error]:text-in-red-04 group-[.error]:border-in-red-04 group-[.error]:focus:border-in-red-04";
|
|
64
|
-
readonly DISABLED: "disabled:text-in-gray-05 disabled:border-in-gray-01 disabled:bg-in-gray-
|
|
64
|
+
readonly DISABLED: "disabled:text-in-gray-05 disabled:border-in-gray-01 disabled:bg-in-gray-02 disabled:cursor-not-allowed disabled:placeholder-in-gray-05";
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* TableInputCell 의 편집 input 을 식별하는 마커 속성.
|