@mertcankocak/core-project 1.2.0 → 1.3.0

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.
@@ -1 +1,30 @@
1
- (function(u,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("yup"),require("file-type")):typeof define=="function"&&define.amd?define(["exports","yup","file-type"],h):(u=typeof globalThis<"u"?globalThis:u||self,h(u.CoreProject={},u.Yup,u.FileType))})(this,function(u,h,S){"use strict";function I(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const a in i)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>i[a]})}}return t.default=i,Object.freeze(t)}const m=I(h),z=/^[0-9]{11}$/;function q(i){if(!z.test(i))return!1;const t=i.split("").map(Number);return!(t[0]===0||t.slice(0,9).reduce((s,e)=>s+e,0)%10!==t[9]||t.slice(0,10).reduce((s,e)=>s+e,0)%10!==t[10])}function j(i){const{required:t=!1,message:a="Geçerli bir T.C. kimlik numarası giriniz",requiredMessage:n="T.C. kimlik numarası zorunludur",name:s="tcKimlikNo"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.matches(z,"T.C. kimlik numarası 11 haneli olmalıdır"),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:q(r)}}),e}const M=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;function T(i){return M.test(i)}function K(i){const{required:t=!1,message:a="Geçerli bir email adresi giriniz",requiredMessage:n="Email zorunludur",name:s="email"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.email(a).test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:T(r)}}),e}const N=/^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;function $(i){const t=i.replace(/\s+/g,"").replace(/[-\+()]/g,"");return t.length!==10&&t.length!==11||!t.match(/^(0?5\d{9})$/)?!1:N.test(i)||/^0?5\d{9}$/.test(t)}function L(i){const{required:t=!1,message:a="Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",requiredMessage:n="Telefon numarası zorunludur",name:s="phone"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:$(r)}}),e}function O(i,t){const{minLength:a=8,requireUppercase:n=!0,requireLowercase:s=!0,requireNumber:e=!0,requireSpecialChar:r=!0}=t||{},l=[];return i.length<a&&l.push(`Şifre en az ${a} karakter olmalıdır`),n&&!/[A-Z]/.test(i)&&l.push("Şifre en az bir büyük harf içermelidir"),s&&!/[a-z]/.test(i)&&l.push("Şifre en az bir küçük harf içermelidir"),e&&!/\d/.test(i)&&l.push("Şifre en az bir rakam içermelidir"),r&&!/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(i)&&l.push("Şifre en az bir özel karakter içermelidir"),{isValid:l.length===0,errors:l}}function F(i){const{required:t=!1,requiredMessage:a="Şifre zorunludur",minLength:n=8,requireUppercase:s=!0,requireLowercase:e=!0,requireNumber:r=!0,requireSpecialChar:l=!0,minLengthMessage:o=`Şifre en az ${n} karakter olmalıdır`,uppercaseMessage:d="Şifre en az bir büyük harf içermelidir",lowercaseMessage:D="Şifre en az bir küçük harf içermelidir",numberMessage:g="Şifre en az bir rakam içermelidir",specialCharMessage:c="Şifre en az bir özel karakter içermelidir"}=i||{};let f=m.string();return t&&(f=f.required(a)),f=f.min(n,o),s&&(f=f.matches(/[A-Z]/,d)),e&&(f=f.matches(/[a-z]/,D)),r&&(f=f.matches(/\d/,g)),l&&(f=f.matches(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,c)),f}function P(i,t){const{required:a=!1,message:n="Şifreler eşleşmiyor",requiredMessage:s="Şifre tekrarı zorunludur"}=t||{};let e=m.string();return a&&(e=e.required(s)),e=e.oneOf([m.ref(i)],n),e}const b=/^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;function A(i){return!i||i.trim().length===0||i.trim().length<2?!1:b.test(i)}function V(i){const{required:t=!1,message:a="İsim sadece harf içermelidir",requiredMessage:n="İsim zorunludur",name:s="name"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.min(2,"İsim en az 2 karakter olmalıdır").matches(b,a).test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:A(r)}}),e}const C=/^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;function _(i){const t=i.replace(/\s+/g,"").toUpperCase();if(!C.test(t))return!1;const n=(t.slice(4)+t.slice(0,4)).split("").map(e=>{const r=e.charCodeAt(0);return r>=65&&r<=90?r-55:e}).join("");return BigInt(n)%BigInt(97)===BigInt(1)}function Z(i){const{required:t=!1,message:a="Geçerli bir IBAN numarası giriniz",requiredMessage:n="IBAN zorunludur",name:s="iban"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:_(r)}}),e}const w=/^\d{13,19}$/;function G(i){const t=i.replace(/\s+/g,"").replace(/-/g,"");if(!w.test(t))return!1;let a=0,n=!1;for(let s=t.length-1;s>=0;s--){let e=parseInt(t[s],10);n&&(e*=2,e>9&&(e-=9)),a+=e,n=!n}return a%10===0}function U(i){const{required:t=!1,message:a="Geçerli bir kredi kartı numarası giriniz",requiredMessage:n="Kredi kartı numarası zorunludur",name:s="creditCard"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:G(r)}}),e}const B=/^\d{10}$/;function R(i){if(!B.test(i))return!1;const t=i.split("").map(Number);return t.slice(0,9).reduce((s,e,r)=>{const l=(r+1)%9||9;return s+e*l},0)%11%10===t[9]}function H(i){const{required:t=!1,message:a="Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",requiredMessage:n="VKN zorunludur",name:s="vkn"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:R(r)}}),e}const k=/^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;function X(i){const t=i.replace(/\s+/g," ").trim().toUpperCase();if(!k.test(t))return!1;const a=t.match(k);if(!a)return!1;const[,n,s,e]=a,r=parseInt(n,10);return!(r<1||r>81||s.length<1||s.length>3||e.length<2||e.length>4)}function Y(i){const{required:t=!1,message:a="Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",requiredMessage:n="Araç plakası zorunludur",name:s="plate"}=i||{};let e=m.string();return t&&(e=e.required(n)),e=e.test({name:s,message:a,test(r){return!t&&(!r||r.trim()==="")?!0:t&&!r||!r||typeof r!="string"?!1:X(r)}}),e}function y(i){const t=i.split(".");return t.length>1?t[t.length-1].toLowerCase():""}async function J(i,t){const{maxSize:a,minSize:n,allowedExtensions:s=[],allowedMimeTypes:e=[]}=t||{},r=[];if(a&&i.size>a){const l=(a/1048576).toFixed(2);r.push(`Dosya boyutu en fazla ${l} MB olmalıdır`)}if(n&&i.size<n){const l=(n/1048576).toFixed(2);r.push(`Dosya boyutu en az ${l} MB olmalıdır`)}if(s.length>0&&e.length===0&&console.warn("⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."),s.length>0&&i instanceof File){const l=y(i.name);s.includes(l)||r.push(`İzin verilen dosya uzantıları: ${s.join(", ")}`)}if(e.length>0)try{const l=await i.arrayBuffer(),o=new Uint8Array(l),d=await S.fileTypeFromBuffer(o);d?e.includes(d.mime)||r.push(`Dosya tipi uyumsuz. Beklenen: ${e.join(", ")}, Tespit edilen: ${d.mime}. (Dosya uzantısı: ${i instanceof File?y(i.name):"bilinmiyor"})`):r.push("Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir.")}catch{r.push("Dosya tipi kontrol edilemedi. Dosya okunamadı.")}return{isValid:r.length===0,errors:r}}function Q(i){const{required:t=!1,message:a="Geçerli bir dosya seçiniz",requiredMessage:n="Dosya zorunludur",name:s="file",maxSize:e,minSize:r,allowedExtensions:l=[],allowedMimeTypes:o=[],sizeMessage:d,extensionMessage:D}=i||{};let g=m.mixed();return t&&(g=g.required(n)),g=g.test({name:s,message:a||"Geçerli bir dosya seçiniz",async test(c){if(!t&&!c)return!0;if(t&&!c||!(c instanceof File))return!1;if(e&&c.size>e){const f=(e/1048576).toFixed(2);return this.createError({message:d||`Dosya boyutu en fazla ${f} MB olmalıdır`})}if(r&&c.size<r){const f=(r/1048576).toFixed(2);return this.createError({message:d||`Dosya boyutu en az ${f} MB olmalıdır`})}if(l.length>0){const f=y(c.name);if(!l.includes(f))return this.createError({message:D||`İzin verilen dosya uzantıları: ${l.join(", ")}`})}if(o.length>0)try{const f=await c.arrayBuffer(),ee=new Uint8Array(f),E=await S.fileTypeFromBuffer(ee);if(!E)return this.createError({message:"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."});if(!o.includes(E.mime)){const re=y(c.name);return this.createError({message:`Dosya tipi uyumsuz. Beklenen: ${o.join(", ")}, Tespit edilen: ${E.mime}. (Dosya uzantısı: ${re})`})}}catch{return this.createError({message:"Dosya tipi kontrol edilemedi. Dosya okunamadı."})}return!0}}),g}function W(i,t){const{minDate:a,maxDate:n}=t||{},s=typeof i=="string"?new Date(i):i;if(isNaN(s.getTime()))return{isValid:!1,error:"Geçersiz tarih formatı"};if(a){const e=typeof a=="string"?new Date(a):a;if(s<e)return{isValid:!1,error:`Tarih ${e.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`}}if(n){const e=typeof n=="string"?new Date(n):n;if(s>e)return{isValid:!1,error:`Tarih ${e.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`}}return{isValid:!0}}function p(i){const{required:t=!1,requiredMessage:a="Tarih zorunludur",minDate:n,maxDate:s,minDateMessage:e,maxDateMessage:r}=i||{};let l=m.date();if(t&&(l=l.required(a)),n){const o=typeof n=="string"?new Date(n):n;l=l.min(o,e||`Tarih ${o.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`)}if(s){const o=typeof s=="string"?new Date(s):s;l=l.max(o,r||`Tarih ${o.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`)}return l}function x(i){return p({...i,maxDate:new Date,maxDateMessage:(i==null?void 0:i.message)||"Tarih geçmiş bir tarih olmalıdır"})}function v(i){return p({...i,minDate:new Date,minDateMessage:(i==null?void 0:i.message)||"Tarih gelecek bir tarih olmalıdır"})}u.CREDIT_CARD_REGEX=w,u.EMAIL_REGEX=M,u.IBAN_REGEX=C,u.NAME_REGEX=b,u.PHONE_REGEX=N,u.PLATE_REGEX=k,u.TC_KIMLIK_NO_REGEX=z,u.VKN_REGEX=B,u.creditCardSchema=U,u.dateSchema=p,u.emailSchema=K,u.fileSchema=Q,u.futureDateSchema=v,u.getFileExtension=y,u.ibanSchema=Z,u.nameSchema=V,u.passwordMatchSchema=P,u.passwordSchema=F,u.pastDateSchema=x,u.phoneSchema=L,u.plateSchema=Y,u.tcKimlikNoSchema=j,u.validateCreditCard=G,u.validateDate=W,u.validateEmail=T,u.validateFile=J,u.validateIBAN=_,u.validateName=A,u.validatePassword=O,u.validatePhone=$,u.validatePlate=X,u.validateTCKimlikNo=q,u.validateVKN=R,u.vknSchema=H,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
1
+ (function(f,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("yup"),require("file-type"),require("react"),require("formik"),require("@mui/material"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","yup","file-type","react","formik","@mui/material","lodash"],Q):(f=typeof globalThis<"u"?globalThis:f||self,Q(f.CoreProject={},f.Yup,f.FileType,f.React,f.Formik,f.MaterialUI,f._))})(this,function(f,Q,ze,z,fr,$,cr){"use strict";function dr(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(i,o,u.get?u:{enumerable:!0,get:()=>t[o]})}}return i.default=t,Object.freeze(i)}const A=dr(Q),_e=/^[0-9]{11}$/;function Ae(t){if(!_e.test(t))return!1;const i=t.split("").map(Number);return!(i[0]===0||i.slice(0,9).reduce((l,r)=>l+r,0)%10!==i[9]||i.slice(0,10).reduce((l,r)=>l+r,0)%10!==i[10])}function mr(t){const{required:i=!1,message:o="Geçerli bir T.C. kimlik numarası giriniz",requiredMessage:u="T.C. kimlik numarası zorunludur",name:l="tcKimlikNo"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.matches(_e,"T.C. kimlik numarası 11 haneli olmalıdır"),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Ae(a)}}),r}const Ie=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;function Me(t){return Ie.test(t)}function gr(t){const{required:i=!1,message:o="Geçerli bir email adresi giriniz",requiredMessage:u="Email zorunludur",name:l="email"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.email(o).test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Me(a)}}),r}const Fe=/^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;function Ne(t){const i=t.replace(/\s+/g,"").replace(/[-\+()]/g,"");return i.length!==10&&i.length!==11||!i.match(/^(0?5\d{9})$/)?!1:Fe.test(t)||/^0?5\d{9}$/.test(i)}function hr(t){const{required:i=!1,message:o="Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",requiredMessage:u="Telefon numarası zorunludur",name:l="phone"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Ne(a)}}),r}function pr(t,i){const{minLength:o=8,requireUppercase:u=!0,requireLowercase:l=!0,requireNumber:r=!0,requireSpecialChar:a=!0}=i||{},d=[];return t.length<o&&d.push(`Şifre en az ${o} karakter olmalıdır`),u&&!/[A-Z]/.test(t)&&d.push("Şifre en az bir büyük harf içermelidir"),l&&!/[a-z]/.test(t)&&d.push("Şifre en az bir küçük harf içermelidir"),r&&!/\d/.test(t)&&d.push("Şifre en az bir rakam içermelidir"),a&&!/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(t)&&d.push("Şifre en az bir özel karakter içermelidir"),{isValid:d.length===0,errors:d}}function vr(t){const{required:i=!1,requiredMessage:o="Şifre zorunludur",minLength:u=8,requireUppercase:l=!0,requireLowercase:r=!0,requireNumber:a=!0,requireSpecialChar:d=!0,minLengthMessage:h=`Şifre en az ${u} karakter olmalıdır`,uppercaseMessage:S="Şifre en az bir büyük harf içermelidir",lowercaseMessage:R="Şifre en az bir küçük harf içermelidir",numberMessage:b="Şifre en az bir rakam içermelidir",specialCharMessage:E="Şifre en az bir özel karakter içermelidir"}=t||{};let p=A.string();return i&&(p=p.required(o)),p=p.min(u,h),l&&(p=p.matches(/[A-Z]/,S)),r&&(p=p.matches(/[a-z]/,R)),a&&(p=p.matches(/\d/,b)),d&&(p=p.matches(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,E)),p}function yr(t,i){const{required:o=!1,message:u="Şifreler eşleşmiyor",requiredMessage:l="Şifre tekrarı zorunludur"}=i||{};let r=A.string();return o&&(r=r.required(l)),r=r.oneOf([A.ref(t)],u),r}const Re=/^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;function xe(t){return!t||t.trim().length===0||t.trim().length<2?!1:Re.test(t)}function Er(t){const{required:i=!1,message:o="İsim sadece harf içermelidir",requiredMessage:u="İsim zorunludur",name:l="name"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.min(2,"İsim en az 2 karakter olmalıdır").matches(Re,o).test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:xe(a)}}),r}const qe=/^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;function Be(t){const i=t.replace(/\s+/g,"").toUpperCase();if(!qe.test(i))return!1;const u=(i.slice(4)+i.slice(0,4)).split("").map(r=>{const a=r.charCodeAt(0);return a>=65&&a<=90?a-55:r}).join("");return BigInt(u)%BigInt(97)===BigInt(1)}function br(t){const{required:i=!1,message:o="Geçerli bir IBAN numarası giriniz",requiredMessage:u="IBAN zorunludur",name:l="iban"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Be(a)}}),r}const Le=/^\d{13,19}$/;function Ve(t){const i=t.replace(/\s+/g,"").replace(/-/g,"");if(!Le.test(i))return!1;let o=0,u=!1;for(let l=i.length-1;l>=0;l--){let r=parseInt(i[l],10);u&&(r*=2,r>9&&(r-=9)),o+=r,u=!u}return o%10===0}function _r(t){const{required:i=!1,message:o="Geçerli bir kredi kartı numarası giriniz",requiredMessage:u="Kredi kartı numarası zorunludur",name:l="creditCard"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Ve(a)}}),r}const Ge=/^\d{10}$/;function $e(t){if(!Ge.test(t))return!1;const i=t.split("").map(Number);return i.slice(0,9).reduce((l,r,a)=>{const d=(a+1)%9||9;return l+r*d},0)%11%10===i[9]}function Rr(t){const{required:i=!1,message:o="Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",requiredMessage:u="VKN zorunludur",name:l="vkn"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:$e(a)}}),r}const Te=/^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;function Ue(t){const i=t.replace(/\s+/g," ").trim().toUpperCase();if(!Te.test(i))return!1;const o=i.match(Te);if(!o)return!1;const[,u,l,r]=o,a=parseInt(u,10);return!(a<1||a>81||l.length<1||l.length>3||r.length<2||r.length>4)}function Tr(t){const{required:i=!1,message:o="Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",requiredMessage:u="Araç plakası zorunludur",name:l="plate"}=t||{};let r=A.string();return i&&(r=r.required(u)),r=r.test({name:l,message:o,test(a){return!i&&(!a||a.trim()==="")?!0:i&&!a||!a||typeof a!="string"?!1:Ue(a)}}),r}function ee(t){const i=t.split(".");return i.length>1?i[i.length-1].toLowerCase():""}async function kr(t,i){const{maxSize:o,minSize:u,allowedExtensions:l=[],allowedMimeTypes:r=[]}=i||{},a=[];if(o&&t.size>o){const d=(o/1048576).toFixed(2);a.push(`Dosya boyutu en fazla ${d} MB olmalıdır`)}if(u&&t.size<u){const d=(u/1048576).toFixed(2);a.push(`Dosya boyutu en az ${d} MB olmalıdır`)}if(l.length>0&&r.length===0&&console.warn("⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."),l.length>0&&t instanceof File){const d=ee(t.name);l.includes(d)||a.push(`İzin verilen dosya uzantıları: ${l.join(", ")}`)}if(r.length>0)try{const d=await t.arrayBuffer(),h=new Uint8Array(d),S=await ze.fileTypeFromBuffer(h);S?r.includes(S.mime)||a.push(`Dosya tipi uyumsuz. Beklenen: ${r.join(", ")}, Tespit edilen: ${S.mime}. (Dosya uzantısı: ${t instanceof File?ee(t.name):"bilinmiyor"})`):a.push("Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir.")}catch{a.push("Dosya tipi kontrol edilemedi. Dosya okunamadı.")}return{isValid:a.length===0,errors:a}}function Sr(t){const{required:i=!1,message:o="Geçerli bir dosya seçiniz",requiredMessage:u="Dosya zorunludur",name:l="file",maxSize:r,minSize:a,allowedExtensions:d=[],allowedMimeTypes:h=[],sizeMessage:S,extensionMessage:R}=t||{};let b=A.mixed();return i&&(b=b.required(u)),b=b.test({name:l,message:o||"Geçerli bir dosya seçiniz",async test(E){if(!i&&!E)return!0;if(i&&!E||!(E instanceof File))return!1;if(r&&E.size>r){const p=(r/1048576).toFixed(2);return this.createError({message:S||`Dosya boyutu en fazla ${p} MB olmalıdır`})}if(a&&E.size<a){const p=(a/1048576).toFixed(2);return this.createError({message:S||`Dosya boyutu en az ${p} MB olmalıdır`})}if(d.length>0){const p=ee(E.name);if(!d.includes(p))return this.createError({message:R||`İzin verilen dosya uzantıları: ${d.join(", ")}`})}if(h.length>0)try{const p=await E.arrayBuffer(),L=new Uint8Array(p),F=await ze.fileTypeFromBuffer(L);if(!F)return this.createError({message:"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."});if(!h.includes(F.mime)){const ne=ee(E.name);return this.createError({message:`Dosya tipi uyumsuz. Beklenen: ${h.join(", ")}, Tespit edilen: ${F.mime}. (Dosya uzantısı: ${ne})`})}}catch{return this.createError({message:"Dosya tipi kontrol edilemedi. Dosya okunamadı."})}return!0}}),b}function Cr(t,i){const{minDate:o,maxDate:u}=i||{},l=typeof t=="string"?new Date(t):t;if(isNaN(l.getTime()))return{isValid:!1,error:"Geçersiz tarih formatı"};if(o){const r=typeof o=="string"?new Date(o):o;if(l<r)return{isValid:!1,error:`Tarih ${r.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`}}if(u){const r=typeof u=="string"?new Date(u):u;if(l>r)return{isValid:!1,error:`Tarih ${r.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`}}return{isValid:!0}}function ke(t){const{required:i=!1,requiredMessage:o="Tarih zorunludur",minDate:u,maxDate:l,minDateMessage:r,maxDateMessage:a}=t||{};let d=A.date();if(i&&(d=d.required(o)),u){const h=typeof u=="string"?new Date(u):u;d=d.min(h,r||`Tarih ${h.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`)}if(l){const h=typeof l=="string"?new Date(l):l;d=d.max(h,a||`Tarih ${h.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`)}return d}function Dr(t){return ke({...t,maxDate:new Date,maxDateMessage:(t==null?void 0:t.message)||"Tarih geçmiş bir tarih olmalıdır"})}function wr(t){return ke({...t,minDate:new Date,minDateMessage:(t==null?void 0:t.message)||"Tarih gelecek bir tarih olmalıdır"})}var Se={exports:{}},re={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Xe;function Or(){if(Xe)return re;Xe=1;var t=z,i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function a(d,h,S){var R,b={},E=null,p=null;S!==void 0&&(E=""+S),h.key!==void 0&&(E=""+h.key),h.ref!==void 0&&(p=h.ref);for(R in h)u.call(h,R)&&!r.hasOwnProperty(R)&&(b[R]=h[R]);if(d&&d.defaultProps)for(R in h=d.defaultProps,h)b[R]===void 0&&(b[R]=h[R]);return{$$typeof:i,type:d,key:E,ref:p,props:b,_owner:l.current}}return re.Fragment=o,re.jsx=a,re.jsxs=a,re}var te={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ye;function Pr(){return Ye||(Ye=1,process.env.NODE_ENV!=="production"&&function(){var t=z,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),L=Symbol.iterator,F="@@iterator";function ne(e){if(e===null||typeof e!="object")return null;var n=L&&e[L]||e[F];return typeof n=="function"?n:null}var q=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];de("error",e,s)}}function de(e,n,s){{var c=q.ReactDebugCurrentFrame,v=c.getStackAddendum();v!==""&&(n+="%s",s=s.concat([v]));var y=s.map(function(g){return String(g)});y.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,y)}}var me=!1,ge=!1,he=!1,ae=!1,pe=!1,ie;ie=Symbol.for("react.module.reference");function se(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===r||pe||e===l||e===S||e===R||ae||e===p||me||ge||he||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===b||e.$$typeof===a||e.$$typeof===d||e.$$typeof===h||e.$$typeof===ie||e.getModuleId!==void 0))}function oe(e,n,s){var c=e.displayName;if(c)return c;var v=n.displayName||n.name||"";return v!==""?s+"("+v+")":s}function U(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case o:return"Portal";case r:return"Profiler";case l:return"StrictMode";case S:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var n=e;return U(n)+".Consumer";case a:var s=e;return U(s._context)+".Provider";case h:return oe(e,e.render,"ForwardRef");case b:var c=e.displayName||null;return c!==null?c:I(e.type)||"Memo";case E:{var v=e,y=v._payload,g=v._init;try{return I(g(y))}catch{return null}}}return null}var P=Object.assign,w=0,V,ve,X,ue,le,ye,fe;function N(){}N.__reactDisabledLog=!0;function Y(){{if(w===0){V=console.log,ve=console.info,X=console.warn,ue=console.error,le=console.group,ye=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:N,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}}function K(){{if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:V}),info:P({},e,{value:ve}),warn:P({},e,{value:X}),error:P({},e,{value:ue}),group:P({},e,{value:le}),groupCollapsed:P({},e,{value:ye}),groupEnd:P({},e,{value:fe})})}w<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=q.ReactCurrentDispatcher,B;function Z(e,n,s){{if(B===void 0)try{throw Error()}catch(v){var c=v.stack.trim().match(/\n( *(at )?)/);B=c&&c[1]||""}return`
18
+ `+B+e}}var k=!1,D;{var Ce=typeof WeakMap=="function"?WeakMap:Map;D=new Ce}function We(e,n){if(!e||k)return"";{var s=D.get(e);if(s!==void 0)return s}var c;k=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=W.current,W.current=null,Y();try{if(n){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(j){c=j}Reflect.construct(e,[],g)}else{try{g.call()}catch(j){c=j}e.call(g.prototype)}}else{try{throw Error()}catch(j){c=j}e()}}catch(j){if(j&&c&&typeof j.stack=="string"){for(var m=j.stack.split(`
19
+ `),O=c.stack.split(`
20
+ `),_=m.length-1,T=O.length-1;_>=1&&T>=0&&m[_]!==O[T];)T--;for(;_>=1&&T>=0;_--,T--)if(m[_]!==O[T]){if(_!==1||T!==1)do if(_--,T--,T<0||m[_]!==O[T]){var M=`
21
+ `+m[_].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&D.set(e,M),M}while(_>=1&&T>=0);break}}}finally{k=!1,W.current=y,K(),Error.prepareStackTrace=v}var H=e?e.displayName||e.name:"",G=H?Z(H):"";return typeof e=="function"&&D.set(e,G),G}function xr(e,n,s){return We(e,!1)}function qr(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Ee(e,n,s){if(e==null)return"";if(typeof e=="function")return We(e,qr(e));if(typeof e=="string")return Z(e);switch(e){case S:return Z("Suspense");case R:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return xr(e.render);case b:return Ee(e.type,n,s);case E:{var c=e,v=c._payload,y=c._init;try{return Ee(y(v),n,s)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,Ze={},Je=q.ReactDebugCurrentFrame;function be(e){if(e){var n=e._owner,s=Ee(e.type,e._source,n?n.type:null);Je.setExtraStackFrame(s)}else Je.setExtraStackFrame(null)}function Br(e,n,s,c,v){{var y=Function.call.bind(ce);for(var g in e)if(y(e,g)){var m=void 0;try{if(typeof e[g]!="function"){var O=Error((c||"React class")+": "+s+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}m=e[g](n,g,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){m=_}m&&!(m instanceof Error)&&(be(v),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,g,typeof m),be(null)),m instanceof Error&&!(m.message in Ze)&&(Ze[m.message]=!0,be(v),C("Failed %s type: %s",s,m.message),be(null))}}}var Lr=Array.isArray;function De(e){return Lr(e)}function Vr(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Gr(e){try{return He(e),!1}catch{return!0}}function He(e){return""+e}function Qe(e){if(Gr(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vr(e)),He(e)}var er=q.ReactCurrentOwner,$r={key:!0,ref:!0,__self:!0,__source:!0},rr,tr;function Ur(e){if(ce.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function Xr(e){if(ce.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Yr(e,n){typeof e.ref=="string"&&er.current}function Kr(e,n){{var s=function(){rr||(rr=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Wr(e,n){{var s=function(){tr||(tr=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var Zr=function(e,n,s,c,v,y,g){var m={$$typeof:i,type:e,key:n,ref:s,props:g,_owner:y};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Jr(e,n,s,c,v){{var y,g={},m=null,O=null;s!==void 0&&(Qe(s),m=""+s),Xr(n)&&(Qe(n.key),m=""+n.key),Ur(n)&&(O=n.ref,Yr(n,v));for(y in n)ce.call(n,y)&&!$r.hasOwnProperty(y)&&(g[y]=n[y]);if(e&&e.defaultProps){var _=e.defaultProps;for(y in _)g[y]===void 0&&(g[y]=_[y])}if(m||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&Kr(g,T),O&&Wr(g,T)}return Zr(e,m,O,v,c,er.current,g)}}var we=q.ReactCurrentOwner,nr=q.ReactDebugCurrentFrame;function J(e){if(e){var n=e._owner,s=Ee(e.type,e._source,n?n.type:null);nr.setExtraStackFrame(s)}else nr.setExtraStackFrame(null)}var Oe;Oe=!1;function Pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function ar(){{if(we.current){var e=I(we.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function Hr(e){return""}var ir={};function Qr(e){{var n=ar();if(!n){var s=typeof e=="string"?e:e.displayName||e.name;s&&(n=`
24
+
25
+ Check the top-level render call using <`+s+">.")}return n}}function sr(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Qr(n);if(ir[s])return;ir[s]=!0;var c="";e&&e._owner&&e._owner!==we.current&&(c=" It was passed a child from "+I(e._owner.type)+"."),J(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,c),J(null)}}function or(e,n){{if(typeof e!="object")return;if(De(e))for(var s=0;s<e.length;s++){var c=e[s];Pe(c)&&sr(c,n)}else if(Pe(e))e._store&&(e._store.validated=!0);else if(e){var v=ne(e);if(typeof v=="function"&&v!==e.entries)for(var y=v.call(e),g;!(g=y.next()).done;)Pe(g.value)&&sr(g.value,n)}}}function et(e){{var n=e.type;if(n==null||typeof n=="string")return;var s;if(typeof n=="function")s=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===h||n.$$typeof===b))s=n.propTypes;else return;if(s){var c=I(n);Br(s,e.props,"prop",c,e)}else if(n.PropTypes!==void 0&&!Oe){Oe=!0;var v=I(n);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rt(e){{for(var n=Object.keys(e.props),s=0;s<n.length;s++){var c=n[s];if(c!=="children"&&c!=="key"){J(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c),J(null);break}}e.ref!==null&&(J(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var ur={};function lr(e,n,s,c,v,y){{var g=se(e);if(!g){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=Hr();O?m+=O:m+=ar();var _;e===null?_="null":De(e)?_="array":e!==void 0&&e.$$typeof===i?(_="<"+(I(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,m)}var T=Jr(e,n,s,v,y);if(T==null)return T;if(g){var M=n.children;if(M!==void 0)if(c)if(De(M)){for(var H=0;H<M.length;H++)or(M[H],e);Object.freeze&&Object.freeze(M)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else or(M,e)}if(ce.call(n,"key")){var G=I(e),j=Object.keys(n).filter(function(ot){return ot!=="key"}),je=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!ur[G+je]){var st=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,je,G,st,G),ur[G+je]=!0}}return e===u?rt(T):et(T),T}}function tt(e,n,s){return lr(e,n,s,!0)}function nt(e,n,s){return lr(e,n,s,!1)}var at=nt,it=tt;te.Fragment=u,te.jsx=at,te.jsxs=it}()),te}process.env.NODE_ENV==="production"?Se.exports=Or():Se.exports=Pr();var x=Se.exports;function Ke(t){return t.replace(/ı/g,"I").replace(/i/g,"İ").replace(/ğ/g,"Ğ").replace(/ü/g,"Ü").replace(/ş/g,"Ş").replace(/ö/g,"Ö").replace(/ç/g,"Ç").toUpperCase().replace(/I/g,"ı").replace(/İ/g,"İ").replace(/Ğ/g,"ğ").replace(/Ü/g,"ü").replace(/Ş/g,"ş").replace(/Ö/g,"ö").replace(/Ç/g,"ç")}const jr=300,zr=1,Ar=["password","email","number","tel","url"],Ir=["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Escape"];function Mr(t,i,o){return o||Ar.includes(i)||!t?t:Ke(t)}function Fr(t){return/[0-9.]/.test(t)||Ir.includes(t)}const Nr=({name:t,label:i,type:o="text",placeholder:u,className:l,fieldToSearch:r,onSuggestionSearch:a,disabled:d=!1,step:h,min:S,max:R,startAdornment:b,endAdornment:E,disableUppercase:p=!1,required:L=!1,fullWidth:F,debounceDelay:ne=jr,minSearchLength:q=zr,helperText:C,autoFocus:de,multiline:me,rows:ge,maxLength:he,errorMessageFormatter:ae,"aria-label":pe,"aria-describedby":ie,sx:se,inputSx:oe,inputElementSx:U,...I})=>{const[P,w,V]=fr.useField(t),[ve,X]=z.useState([]),[ue,le]=z.useState(!1),[ye,fe]=z.useState(!1),N=z.useRef(r&&a?cr.debounce(async k=>{if(k.length>=q){le(!0);try{const D=await a(r,k);X(D)}catch(D){console.error("Search error:",D),X([])}le(!1)}else X([])},ne):null).current;z.useEffect(()=>{N&&P.value&&N(P.value)},[P.value,N]),z.useEffect(()=>()=>{N&&N.cancel()},[N]);const Y=z.useCallback(k=>Mr(k,o,p),[o,p]),K=z.useMemo(()=>{if(!(!w.touched||!w.error))return ae?ae(w.error):w.error},[w.touched,w.error,ae]),W=z.useMemo(()=>K||C,[K,C]),B=z.useMemo(()=>({name:t,label:i,type:o,placeholder:u,required:L,disabled:d,error:w.touched&&!!w.error,helperText:W,className:l,fullWidth:F!==void 0?F:!!i,autoFocus:de,multiline:me,rows:ge,sx:U?[se,{"& .MuiInputBase-input":U}].filter(Boolean):se,inputProps:{maxLength:he,step:h,min:S,max:R,...o==="number"&&{onKeyDown:k=>{Fr(k.key)||k.preventDefault()}},...I.inputProps},InputProps:{startAdornment:b?x.jsx($.InputAdornment,{position:"start",children:b}):void 0,endAdornment:E?x.jsx($.InputAdornment,{position:"end",children:E}):void 0,...oe&&{sx:oe},...I.InputProps},"aria-label":pe,"aria-describedby":ie||(K?`${t}-error`:void 0),...I}),[t,i,o,u,L,d,w.touched,w.error,W,l,F,de,me,ge,he,h,S,R,b,E,pe,ie,se,oe,U,I]);if(r&&a)return x.jsx($.Autocomplete,{freeSolo:!0,open:ye,onOpen:()=>fe(!0),onClose:()=>fe(!1),options:ve,loading:ue,disabled:d,value:P.value||"",onChange:(k,D)=>{const Ce=D||"";V.setValue(Y(Ce))},onInputChange:(k,D)=>{V.setValue(Y(D))},renderInput:k=>{var D;return x.jsx($.TextField,{...k,...B,InputProps:{...k.InputProps,...B.InputProps,endAdornment:x.jsxs(x.Fragment,{children:[ue?x.jsx($.CircularProgress,{color:"inherit",size:20}):null,(D=B.InputProps)==null?void 0:D.endAdornment,k.InputProps.endAdornment]})}})}});const Z=z.useCallback(k=>{const D=k.target.value;V.setValue(Y(D))},[V,Y]);return x.jsx($.TextField,{...B,value:P.value||"",onChange:Z,onBlur:P.onBlur})};f.CREDIT_CARD_REGEX=Le,f.EMAIL_REGEX=Ie,f.FormikTextField=Nr,f.IBAN_REGEX=qe,f.NAME_REGEX=Re,f.PHONE_REGEX=Fe,f.PLATE_REGEX=Te,f.TC_KIMLIK_NO_REGEX=_e,f.VKN_REGEX=Ge,f.creditCardSchema=_r,f.dateSchema=ke,f.emailSchema=gr,f.fileSchema=Sr,f.futureDateSchema=wr,f.getFileExtension=ee,f.ibanSchema=br,f.nameSchema=Er,f.passwordMatchSchema=yr,f.passwordSchema=vr,f.pastDateSchema=Dr,f.phoneSchema=hr,f.plateSchema=Tr,f.tcKimlikNoSchema=mr,f.toTurkishUpperCase=Ke,f.validateCreditCard=Ve,f.validateDate=Cr,f.validateEmail=Me,f.validateFile=kr,f.validateIBAN=Be,f.validateName=xe,f.validatePassword=pr,f.validatePhone=Ne,f.validatePlate=Ue,f.validateTCKimlikNo=Ae,f.validateVKN=$e,f.vknSchema=Rr,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from './validators';
2
+ export * from './components';
3
+ export * from './utils';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAG5B,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { toTurkishUpperCase } from './stringUtils';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Türkçe karakterleri koruyarak büyük harfe çevirir
3
+ */
4
+ export declare function toTurkishUpperCase(str: string): string;
5
+ //# sourceMappingURL=stringUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBtD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mertcankocak/core-project",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "React TypeScript component library built with Vite",
5
5
  "type": "module",
6
6
  "main": "./dist/core-project.umd.js",
@@ -43,7 +43,12 @@
43
43
  "react": "^18.0.0",
44
44
  "react-dom": "^18.0.0",
45
45
  "yup": "^1.0.0",
46
- "file-type": "^19.0.0"
46
+ "file-type": "^19.0.0",
47
+ "formik": "^2.0.0",
48
+ "@mui/material": "^5.0.0",
49
+ "@emotion/react": "^11.0.0",
50
+ "@emotion/styled": "^11.0.0",
51
+ "lodash": "^4.17.21"
47
52
  },
48
53
  "devDependencies": {
49
54
  "@types/react": "^18.2.43",
@@ -55,6 +60,12 @@
55
60
  "vite": "^5.0.8",
56
61
  "vite-plugin-dts": "^3.6.4",
57
62
  "yup": "^1.4.0",
58
- "file-type": "^19.0.0"
63
+ "file-type": "^19.0.0",
64
+ "formik": "^2.4.5",
65
+ "@mui/material": "^5.15.0",
66
+ "@emotion/react": "^11.11.3",
67
+ "@emotion/styled": "^11.11.0",
68
+ "lodash": "^4.17.21",
69
+ "@types/lodash": "^4.14.202"
59
70
  }
60
71
  }