@inntechcorp/it-design 2.2.37 → 2.2.39
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/global.css +22 -0
- package/dist/index.cjs.js +39 -47
- package/dist/index.esm.js +2 -10
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1928,7 +1928,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
1930
|
|
|
1931
|
-
`;function EA({className:M="",children:b,style:z}){const o=A(null);return n((()=>{if(o.current){const M=wA(o.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]}
|
|
1931
|
+
`;function EA({className:M="",children:b,style:z}){const o=A(null);return n((()=>{if(o.current){const M=wA(o.current,{paddingAbsolute:!0,showNativeOverlaidScrollbars:!1,overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"leave",autoHideDelay:1300,dragScroll:!0,clickScroll:!0,pointers:["mouse","touch","pen"]}});return()=>{M.destroy()}}}),[]),p(SA,{style:z,children:p("div",{ref:o,className:`os-viewport ${M}`,style:{width:"100%",overflow:"auto"},children:b})})}const CA=k.div`
|
|
1932
1932
|
|
|
1933
1933
|
min-width: 100%;
|
|
1934
1934
|
min-height: 40px;
|
|
@@ -1938,14 +1938,6 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
1938
1938
|
transform-box: fill-box;
|
|
1939
1939
|
transform-origin: 50% 1%;
|
|
1940
1940
|
|
|
1941
|
-
/* iOS Safari için layout shift önleme */
|
|
1942
|
-
-webkit-transform: translate3d(0, 0, 0);
|
|
1943
|
-
transform: translate3d(0, 0, 0);
|
|
1944
|
-
-webkit-backface-visibility: hidden;
|
|
1945
|
-
backface-visibility: hidden;
|
|
1946
|
-
-webkit-perspective: 1000;
|
|
1947
|
-
perspective: 1000;
|
|
1948
|
-
|
|
1949
1941
|
ul {
|
|
1950
1942
|
min-width: max-content;
|
|
1951
1943
|
}
|
|
@@ -2394,7 +2386,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
2394
2386
|
}
|
|
2395
2387
|
`}
|
|
2396
2388
|
|
|
2397
|
-
`,VA=W((({id:M="itd-select-"+IM(),position:z="bottom",direction:o="right",size:c="default",variant:e="default",placeholder:a="Please Select",className:i="",multi:r=!1,disabled:d=!1,showSearch:q=!1,locked:s=!1,floating:l=!1,options:W=[],value:f,defaultValue:h,label:R,prefix:L,suffix:g,icon:N,image:B,style:v,onChange:X,onUpdate:y},x)=>{const{t:w}=b("itd"),T=A(null),[_,k]=t(!1),[S,E]=t(""),[C,D]=t(void 0),[P,F]=t("");n((()=>{_||setTimeout((()=>{E("")}),300)}),[_]),n((()=>{
|
|
2389
|
+
`,VA=W((({id:M="itd-select-"+IM(),position:z="bottom",direction:o="right",size:c="default",variant:e="default",placeholder:a="Please Select",className:i="",multi:r=!1,disabled:d=!1,showSearch:q=!1,locked:s=!1,floating:l=!1,options:W=[],value:f,defaultValue:h,label:R,prefix:L,suffix:g,icon:N,image:B,style:v,onChange:X,onUpdate:y},x)=>{const{t:w}=b("itd"),T=A(null),[_,k]=t(!1),[S,E]=t(""),[C,D]=t(void 0),[P,F]=t("");n((()=>{_||setTimeout((()=>{E("")}),300)}),[_]),n((()=>{void 0!==h&&D(h)}),[h]),n((()=>{void 0!==f&&D(f)}),[f]),tM(T,(()=>{_&&k(!1)})),nM((()=>{_&&k(!1)}));const I=(M,b=!0,z=!0)=>{y&&y(M,b,z)};u(x,(()=>({reset(M=!0,b=!0){const z=h||(r?[]:void 0);D(z),F(""),I(z,M,b)},setValue(M,b=!0,z=!0){D(M),I(M,b,z)},getValue:()=>C||(r?[]:""),setError(M){F(M||"")},clear(){}})));const $=()=>"x-small"===c?"xs":"small"===c?"sm":"medium"===c?"md":"default"===c?"df":"large"===c?"lg":"x-large"===c?"xlg":"df";return n((()=>{if(_&&r&&C&&Array.isArray(C)&&C.length>0){const M=W.find((M=>C.includes(M.value.toString())));if(M){const b=document.querySelector(`[data-value="${M.value}"]`);b&&setTimeout((()=>{b.scrollIntoView({behavior:"instant",block:"nearest",inline:"start"})}),50)}}}),[_]),O(jA,{ref:T,className:(()=>{let M="itd-select";return M+=" itd-select-"+e,M+=" itd-select-"+(r?"multi":"single"),M+=" itd-select-"+o,M+=" itd-select-"+$(),_&&(M+=" itd-select-open"),P&&(M+=" itd-select-status-error"),d&&(M+=" itd-select-disabled"),q&&(M+=" itd-select-search"),N&&(M+=" itd-icon"),B&&(M+=" itd-image"),""!==i&&(M+=" "+i),M})(),...(()=>{let M={style:void 0,disabled:!1,$hasImage:null!=B,$hasIcon:null!=N,$size:$(),$filled:void 0!==C};return d&&(M.disabled=!0),v&&(M.style=v),M})(),children:[p(pe,{id:M,labelType:l?"floating":"single",value:C,placeholder:W.length>0?a:"",onChange:M=>{k(M)},onFocus:()=>{k(!0)},onBlur:()=>{k(!1)},onShow:M=>{k(M)},onFilter:M=>{_&&E(M)},errorMessage:P,size:c,icon:N,prefix:L,suffix:g,image:B,label:(()=>{if(R)return R;if(void 0===C)return;let M="";if(r){const b=W.filter((M=>M.value===C[0]))[0];Array.isArray(C)&&(1===C.length?b&&(M=b.label):C.length>1&&(M=w("placeholders.multipleSelection",{count:C.length})))}else{const b=W.filter((M=>M.value===C))[0];b&&(M=b.label)}return M})(),disabled:d,isOpen:_,multi:r,locked:s,showSearch:q}),p(PA,{onClose:()=>{k(!1)},onChange:M=>{F(""),I(M),D(M),r||k(!1),X&&X(M)},defaultValue:C,position:z,direction:o,isOpen:_,multi:r,children:(()=>{let M=[];return W.map((b=>{if(""!==S&&"string"==typeof b.value&&("searchText"in b&&"string"==typeof b.searchText?!b.searchText.toLocaleLowerCase().includes(S.toLocaleLowerCase()):!b.value.toLocaleLowerCase().includes(S.toLocaleLowerCase())&&!(M=>{if("string"==typeof M)return M.toLocaleLowerCase();if(Array.isArray(M)){let b="";return M.forEach((M=>{"string"==typeof M&&(b+=M.toLocaleLowerCase())})),b}return""})(b.label).includes(S.toLocaleLowerCase())))return;let z={value:b.value,label:b.label};b.icon&&(z={...z,icon:b.icon}),b.image&&(z={...z,image:b.image}),b.key&&(z={...z,customKey:b.key}),r&&C&&Array.isArray(C)&&(z={...z,multi:!0,checked:C.includes(b.value.toString())}),M.push(m(kc,{...z,key:b.key?b.key:b.value.toString()}))})),0===M.length&&M.push(p("div",{className:"itd-select-not-found",style:{padding:"20px",textAlign:"center"},children:"Not Found"},"not-found")),M})()})]})}));VA.displayName="Select";const YA=k.div`
|
|
2398
2390
|
|
|
2399
2391
|
display : flex;
|
|
2400
2392
|
flex-direction : ${M=>M.$horizontal?"row":"column"};
|