@inntechcorp/it-design 2.2.3 → 2.2.5
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 +8 -8
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/locales/calendar.json +22 -22
- package/dist/locales/itd.json +223 -224
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -86,7 +86,8 @@ textarea {
|
|
|
86
86
|
.modal-enter-active {
|
|
87
87
|
opacity: 1 !important;
|
|
88
88
|
transform: translate(-50%, -50%) !important;
|
|
89
|
-
transition: opacity
|
|
89
|
+
transition: opacity 300ms, transform 300ms !important;
|
|
90
|
+
transition-delay: .3s !important;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.modal-exit {
|
|
@@ -97,30 +98,29 @@ textarea {
|
|
|
97
98
|
.modal-exit-active {
|
|
98
99
|
opacity: 0 !important;
|
|
99
100
|
transform: translate(-50%, -40%) !important;
|
|
100
|
-
transition: opacity
|
|
101
|
+
transition: opacity 300ms, transform 300ms !important;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/* Select Menu Transitions */
|
|
104
105
|
.select-menu-enter {
|
|
105
106
|
opacity: 0 !important;
|
|
106
|
-
transform: translateY(-10px)
|
|
107
|
+
transform: translateY(-10px) !important;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
.select-menu-enter-active {
|
|
110
111
|
opacity: 1 !important;
|
|
111
|
-
transform: translateY(0)
|
|
112
|
-
transition: opacity 250ms
|
|
112
|
+
transform: translateY(0) !important;
|
|
113
|
+
transition: opacity 250ms, transform 250ms !important;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
.select-menu-exit {
|
|
116
117
|
opacity: 1 !important;
|
|
117
|
-
transform: translateY(0) scale(1) !important;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.select-menu-exit-active {
|
|
121
121
|
opacity: 0 !important;
|
|
122
|
-
transform: translateY(-10px)
|
|
123
|
-
transition: opacity
|
|
122
|
+
transform: translateY(-10px) !important;
|
|
123
|
+
transition: opacity 250ms, transform 250ms !important;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/* DatePicker Modal Transitions */
|
package/dist/index.cjs.js
CHANGED
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
height: 100%;
|
|
1249
1249
|
background: rgba(0, 0, 0, 0.5);
|
|
1250
1250
|
}
|
|
1251
|
-
`;const hM=M=>{const b=p.useRef(null),o=p.useRef(null),O=p.useRef(null),[t,n]=p.useState(!0),[A,a]=p.useState(!1),[r,i]=p.useState(!1),[d,q]=p.useState(!1),[s,l]=p.useState(!1);p.useEffect((()=>(M.onModalEvent(exports.ModalState.BEGIN,M.id?M.id:""),()=>{M.onModalEvent(exports.ModalState.REMOVED,M.id?M.id:"")})),[]),p.useEffect((()=>{a(t),t||M.onHideModal&&M.onHideModal(String(M.id))}),[t]),T(o,(()=>{!M.closeOnClickOutside||r||s||M.isActive&&(M.onModalEvent(exports.ModalState.OUTSIDE_CLICK,M.id?M.id:""),v(),a(!1))})),_((()=>{M.preventESC||r||s||M.isActive&&(M.onModalEvent(exports.ModalState.ESC_CLICK,M.id?M.id:""),v(),a(!1))}));const W=()=>{M.isActive&&a(!1)},u=()=>{M.onRemoveModal&&M.onRemoveModal(String(M.id))},f=b=>{M.isActive&&(M.removeOthers,M.onShowModal(b))},h=M=>{q(!M)},R=M=>{i(M)},L=M=>{l(M)},m=()=>{M.onModalEvent(exports.ModalState.CLOSE_CLICK,M.id?M.id:""),v(),M.hideModalFromProvider(M.id?M.id:""),a(!1)},g=()=>{M.isActive&&(M.onModalEvent(exports.ModalState.OK_CLICK,M.id?M.id:""),B()&&(M.hideModalFromProvider(M.id?M.id:""),a(!1)))},N=()=>{M.isActive&&(M.onModalEvent(exports.ModalState.CANCEL_CLICK,M.id?M.id:""),v()&&(M.hideModalFromProvider(M.id?M.id:""),a(!1)))},B=()=>{if(!b.current)return!M.onOk||M.onOk();b.current.onClickOK&&b.current.onClickOK()},v=()=>{if(!b.current)return!M.onCancel||M.onCancel();b.current.onClickCancel&&b.current.onClickCancel()},x=()=>{M.onModalEvent(exports.ModalState.ENTERING,M.id?M.id:"")},X=()=>{M.onModalEvent(exports.ModalState.ENTERED,M.id?M.id:"")},y=()=>{M.onModalEvent(exports.ModalState.EXITING,M.id?M.id:"")},w=()=>{M.onModalEvent(exports.ModalState.EXITED,M.id?M.id:""),n(!1)},S=M=>{if(M.content&&Object(M.content).props&&Object.keys(Object(M.content).props).length>0)return{};let z={hideCurrentModal:W,removeCurrentModal:u,showAnotherModal:f,changeButtonsState:h,changeLoadingState:R,changeInnerLoadingState:L,modalProps:{...M.customProps},context:{...M.context}};return M.checkAutoRef&&M.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",M.content.type.$$typeof),"Symbol(react.forward_ref)"===M.content.type.$$typeof.toString()&&(z.ref=b)),M.useRef&&(z.ref=b),z},k=()=>{if(M.content)return z.jsx("div",{className:"itd-modal-middle-content-body",children:p.cloneElement(M.content,S(M))})},E=()=>{if(M.addContentBefore)return z.jsx(qM,{className:"itd-modal-middle-content-before",$padding:M.beforeContentPadding,children:M.addContentBefore})},C=()=>{if(M.addContentAfter)return z.jsx(sM,{className:"itd-modal-middle-content-after",$padding:M.afterContentPadding,children:M.addContentAfter})},D=()=>{let b=M.width;return"number"==typeof b&&(b=M.width+"px"),b};return p.useEffect((()=>{if(A){const M=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${M}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}),[A]),p.useEffect((()=>{M.modalEvent.event===exports.ModalState.EXITING&&M.modalEvent.id===M.id&&a(!1)}),[M.modalEvent,M.id]),p.useEffect((()=>{!M.isVisible&&A&&a(!1)}),[M.isVisible,A,M.id]),t?z.jsx("div",{className:"itd-modal-container".concat(" "+M.className),children:z.jsx(c.CSSTransition,{in:A,timeout:
|
|
1251
|
+
`;const hM=M=>{const b=p.useRef(null),o=p.useRef(null),O=p.useRef(null),[t,n]=p.useState(!0),[A,a]=p.useState(!1),[r,i]=p.useState(!1),[d,q]=p.useState(!1),[s,l]=p.useState(!1);p.useEffect((()=>(M.onModalEvent(exports.ModalState.BEGIN,M.id?M.id:""),()=>{M.onModalEvent(exports.ModalState.REMOVED,M.id?M.id:"")})),[]),p.useEffect((()=>{a(t),t||M.onHideModal&&M.onHideModal(String(M.id))}),[t]),T(o,(()=>{!M.closeOnClickOutside||r||s||M.isActive&&(M.onModalEvent(exports.ModalState.OUTSIDE_CLICK,M.id?M.id:""),v(),a(!1))})),_((()=>{M.preventESC||r||s||M.isActive&&(M.onModalEvent(exports.ModalState.ESC_CLICK,M.id?M.id:""),v(),a(!1))}));const W=()=>{M.isActive&&a(!1)},u=()=>{M.onRemoveModal&&M.onRemoveModal(String(M.id))},f=b=>{M.isActive&&(M.removeOthers,M.onShowModal(b))},h=M=>{q(!M)},R=M=>{i(M)},L=M=>{l(M)},m=()=>{M.onModalEvent(exports.ModalState.CLOSE_CLICK,M.id?M.id:""),v(),M.hideModalFromProvider(M.id?M.id:""),a(!1)},g=()=>{M.isActive&&(M.onModalEvent(exports.ModalState.OK_CLICK,M.id?M.id:""),B()&&(M.hideModalFromProvider(M.id?M.id:""),a(!1)))},N=()=>{M.isActive&&(M.onModalEvent(exports.ModalState.CANCEL_CLICK,M.id?M.id:""),v()&&(M.hideModalFromProvider(M.id?M.id:""),a(!1)))},B=()=>{if(!b.current)return!M.onOk||M.onOk();b.current.onClickOK&&b.current.onClickOK()},v=()=>{if(!b.current)return!M.onCancel||M.onCancel();b.current.onClickCancel&&b.current.onClickCancel()},x=()=>{M.onModalEvent(exports.ModalState.ENTERING,M.id?M.id:"")},X=()=>{M.onModalEvent(exports.ModalState.ENTERED,M.id?M.id:"")},y=()=>{M.onModalEvent(exports.ModalState.EXITING,M.id?M.id:"")},w=()=>{M.onModalEvent(exports.ModalState.EXITED,M.id?M.id:""),n(!1)},S=M=>{if(M.content&&Object(M.content).props&&Object.keys(Object(M.content).props).length>0)return{};let z={hideCurrentModal:W,removeCurrentModal:u,showAnotherModal:f,changeButtonsState:h,changeLoadingState:R,changeInnerLoadingState:L,modalProps:{...M.customProps},context:{...M.context}};return M.checkAutoRef&&M.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",M.content.type.$$typeof),"Symbol(react.forward_ref)"===M.content.type.$$typeof.toString()&&(z.ref=b)),M.useRef&&(z.ref=b),z},k=()=>{if(M.content)return z.jsx("div",{className:"itd-modal-middle-content-body",children:p.cloneElement(M.content,S(M))})},E=()=>{if(M.addContentBefore)return z.jsx(qM,{className:"itd-modal-middle-content-before",$padding:M.beforeContentPadding,children:M.addContentBefore})},C=()=>{if(M.addContentAfter)return z.jsx(sM,{className:"itd-modal-middle-content-after",$padding:M.afterContentPadding,children:M.addContentAfter})},D=()=>{let b=M.width;return"number"==typeof b&&(b=M.width+"px"),b};return p.useEffect((()=>{if(A){const M=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${M}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}),[A]),p.useEffect((()=>{M.modalEvent.event===exports.ModalState.EXITING&&M.modalEvent.id===M.id&&a(!1)}),[M.modalEvent,M.id]),p.useEffect((()=>{!M.isVisible&&A&&a(!1)}),[M.isVisible,A,M.id]),t?z.jsx("div",{className:"itd-modal-container".concat(" "+M.className),children:z.jsx(c.CSSTransition,{in:A,timeout:600,classNames:"modal",nodeRef:O,onEntering:x,onEntered:X,onExiting:y,onExited:w,unmountOnExit:!0,children:z.jsx(aM,{className:"itd-modal-content-wrapper",ref:O,children:z.jsx(rM,{className:"itd-modal-inner-wrapper",$padding:M.outerPadding,children:z.jsx(iM,{className:"itd-modal-body",$width:D(),children:z.jsx(dM,{className:"itd-modal-content",ref:o,children:z.jsxs(I,{updating:s,children:[!1!==M.showCloseButton&&z.jsx(fM,{className:"itd-modal-close-button",children:z.jsx(AM,{size:"x-small",variant:"ghost",onClick:m,icon:z.jsx(e.ReactSVG,{src:"data:image/svg+xml,%3csvg width = '10px' height = '10px' viewBox = '0 0 329.26933 329' xmlns = 'http://www.w3.org/2000/svg'%3e %3cpath d='m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0'%3e%3c/path%3e%3c/svg%3e"}),disabled:r||s||!M.isActive})}),M.title?z.jsx(WM,{className:"itd-modal-header",children:"string"==typeof M.title?z.jsx(pc,{children:M.title}):M.title}):null,E(),z.jsx(lM,{className:"itd-modal-middle-content",$padding:M.contentPadding,children:k()}),C(),M.showOkButton||M.showCancelButton?z.jsxs(uM,{className:"itd-modal-footer",children:[M.showCancelButton&&z.jsx(AM,{variant:"solid",size:"small",type:"button",onClick:N,disabled:r||s||!M.isActive||d,...M.cancelButtonProps,children:M.cancelButtonText}),M.showOkButton&&z.jsx(AM,{variant:"default",size:"small",type:"button",onClick:g,loading:r,disabled:s||!M.isActive||d,...M.okButtonProps,children:M.okButtonText})]}):null]})})})})})})}):null},RM=n.div`
|
|
1252
1252
|
|
|
1253
1253
|
width: 100vw;
|
|
1254
1254
|
height: 100vh;
|
|
@@ -1950,7 +1950,7 @@ function(b,z){M.exports?M.exports=z(Fo()):z(b.moment)}(Vo,(function(M){void 0===
|
|
|
1950
1950
|
|
|
1951
1951
|
`,_n=n(wn)`
|
|
1952
1952
|
|
|
1953
|
-
`;function Sn({position:M="bottom",direction:b="right",multi:o=!1,isOpen:e=!1,defaultValue:O,children:t,onChange:n,onClose:A}){const a=p.useRef(null),[r,i]=p.useState("bottom"),[d,q]=p.useState("right"),[s,l]=p.useState(null);p.useEffect((()=>{null!=O&&l(Array.isArray(O)?O:[O])}),[O]),p.useEffect((()=>{i("top"===M?"top":"bottom"),q("right"===b?"right":"left")}),[M,b]);const W=(M,b,z)=>{if(o){let p=null!==s&&"object"==typeof s&&Object.assign(s),o=[];b?o=[...p,M]:(p.indexOf(M)>-1&&p.splice(p.indexOf(M),1),o=[...p]),l(o),n(o,z)}else b?(l([M]),n&&n(M,z)):A&&A()},u=()=>{let M="itd-select-dropdown";return o||(M+=" single"),o&&(M+=" multi"),M},f=M=>!!s&&("string"==typeof s||"number"==typeof s?s===M.props.value:!!Array.isArray(s)&&s.includes(M.props.value));return z.jsx("div",{children:z.jsx(c.CSSTransition,{in:e,timeout:
|
|
1953
|
+
`;function Sn({position:M="bottom",direction:b="right",multi:o=!1,isOpen:e=!1,defaultValue:O,children:t,onChange:n,onClose:A}){const a=p.useRef(null),[r,i]=p.useState("bottom"),[d,q]=p.useState("right"),[s,l]=p.useState(null);p.useEffect((()=>{null!=O&&l(Array.isArray(O)?O:[O])}),[O]),p.useEffect((()=>{i("top"===M?"top":"bottom"),q("right"===b?"right":"left")}),[M,b]);const W=(M,b,z)=>{if(o){let p=null!==s&&"object"==typeof s&&Object.assign(s),o=[];b?o=[...p,M]:(p.indexOf(M)>-1&&p.splice(p.indexOf(M),1),o=[...p]),l(o),n(o,z)}else b?(l([M]),n&&n(M,z)):A&&A()},u=()=>{let M="itd-select-dropdown";return o||(M+=" single"),o&&(M+=" multi"),M},f=M=>!!s&&("string"==typeof s||"number"==typeof s?s===M.props.value:!!Array.isArray(s)&&s.includes(M.props.value));return z.jsx("div",{children:z.jsx(c.CSSTransition,{in:e,timeout:250,classNames:"select-menu",nodeRef:a,unmountOnExit:!0,children:z.jsx(Tn,{className:u(),ref:a,"data-position":r,"data-direction":d,children:z.jsx(_n,{className:"itd-select-dropdown-body",children:z.jsx("ul",{children:p.Children.map(t,(M=>p.cloneElement(M,{onChange:W,checked:f(M),multi:o,key:M.props.value})))})})})})})}const kn=M=>"xs"===M?{width:14,height:14}:"sm"===M?{width:16,height:16}:"md"===M?{width:18,height:18}:"df"===M||"lg"===M?{width:20,height:20}:"xlg"===M?{width:22,height:22}:{width:20,height:20},En=M=>"xs"===M?{padding:{top:"0px",right:"10px",bottom:"0px",left:"10px"},height:28}:"sm"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:34}:"md"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:38}:"df"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40}:"lg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:44}:"xlg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:46}:{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40},Cn=M=>"xs"===M?{fontSize:12,lineHeight:12,fontWeight:400}:"sm"===M||"md"===M?{fontSize:13,lineHeight:13,fontWeight:500}:"df"===M||"lg"===M?{fontSize:14,lineHeight:14,fontWeight:500}:"xlg"===M?{fontSize:15,lineHeight:15,fontWeight:500}:{fontSize:14,lineHeight:14,fontWeight:500},Dn="5px",Pn=M=>{const b=En(M),z=kn(M),p=(M=>"xs"===M?{padding:{top:"0px",right:"10px",bottom:"0px",left:"10px"},height:28}:"sm"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:34}:"md"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:38}:"df"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40}:"lg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:44}:"xlg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:46}:{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40})(M),o=Cn(M);return n.css`
|
|
1954
1954
|
.itd-select-dropdown {
|
|
1955
1955
|
|
|
1956
1956
|
&.multi .itd-checkbox {
|
package/dist/index.esm.js
CHANGED
|
@@ -1248,7 +1248,7 @@ import M from"i18next";import{useTranslation as b,initReactI18next as z}from"rea
|
|
|
1248
1248
|
height: 100%;
|
|
1249
1249
|
background: rgba(0, 0, 0, 0.5);
|
|
1250
1250
|
}
|
|
1251
|
-
`;const zb=M=>{const b=A(null),z=A(null),o=A(null),[c,e]=t(!0),[a,i]=t(!1),[r,q]=t(!1),[s,l]=t(!1),[W,u]=t(!1);n((()=>(M.onModalEvent(D.BEGIN,M.id?M.id:""),()=>{M.onModalEvent(D.REMOVED,M.id?M.id:"")})),[]),n((()=>{i(c),c||M.onHideModal&&M.onHideModal(String(M.id))}),[c]),tM(z,(()=>{!M.closeOnClickOutside||r||W||M.isActive&&(M.onModalEvent(D.OUTSIDE_CLICK,M.id?M.id:""),w(),i(!1))})),nM((()=>{M.preventESC||r||W||M.isActive&&(M.onModalEvent(D.ESC_CLICK,M.id?M.id:""),w(),i(!1))}));const f=()=>{M.isActive&&i(!1)},h=()=>{M.onRemoveModal&&M.onRemoveModal(String(M.id))},R=b=>{M.isActive&&(M.removeOthers,M.onShowModal(b))},L=M=>{l(!M)},m=M=>{q(M)},g=M=>{u(M)},N=()=>{M.onModalEvent(D.CLOSE_CLICK,M.id?M.id:""),w(),M.hideModalFromProvider(M.id?M.id:""),i(!1)},X=()=>{M.isActive&&(M.onModalEvent(D.OK_CLICK,M.id?M.id:""),x()&&(M.hideModalFromProvider(M.id?M.id:""),i(!1)))},y=()=>{M.isActive&&(M.onModalEvent(D.CANCEL_CLICK,M.id?M.id:""),w()&&(M.hideModalFromProvider(M.id?M.id:""),i(!1)))},x=()=>{if(!b.current)return!M.onOk||M.onOk();b.current.onClickOK&&b.current.onClickOK()},w=()=>{if(!b.current)return!M.onCancel||M.onCancel();b.current.onClickCancel&&b.current.onClickCancel()},T=()=>{M.onModalEvent(D.ENTERING,M.id?M.id:"")},_=()=>{M.onModalEvent(D.ENTERED,M.id?M.id:"")},k=()=>{M.onModalEvent(D.EXITING,M.id?M.id:"")},S=()=>{M.onModalEvent(D.EXITED,M.id?M.id:""),e(!1)},E=M=>{if(M.content&&Object(M.content).props&&Object.keys(Object(M.content).props).length>0)return{};let z={hideCurrentModal:f,removeCurrentModal:h,showAnotherModal:R,changeButtonsState:L,changeLoadingState:m,changeInnerLoadingState:g,modalProps:{...M.customProps},context:{...M.context}};return M.checkAutoRef&&M.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",M.content.type.$$typeof),"Symbol(react.forward_ref)"===M.content.type.$$typeof.toString()&&(z.ref=b)),M.useRef&&(z.ref=b),z},C=()=>{if(M.content)return p("div",{className:"itd-modal-middle-content-body",children:d(M.content,E(M))})},P=()=>{if(M.addContentBefore)return p(KM,{className:"itd-modal-middle-content-before",$padding:M.beforeContentPadding,children:M.addContentBefore})},F=()=>{if(M.addContentAfter)return p(QM,{className:"itd-modal-middle-content-after",$padding:M.afterContentPadding,children:M.addContentAfter})},I=()=>{let b=M.width;return"number"==typeof b&&(b=M.width+"px"),b};return n((()=>{if(a){const M=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${M}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}),[a]),n((()=>{M.modalEvent.event===D.EXITING&&M.modalEvent.id===M.id&&i(!1)}),[M.modalEvent,M.id]),n((()=>{!M.isVisible&&a&&i(!1)}),[M.isVisible,a,M.id]),c?p("div",{className:"itd-modal-container".concat(" "+M.className),children:p(B,{in:a,timeout:
|
|
1251
|
+
`;const zb=M=>{const b=A(null),z=A(null),o=A(null),[c,e]=t(!0),[a,i]=t(!1),[r,q]=t(!1),[s,l]=t(!1),[W,u]=t(!1);n((()=>(M.onModalEvent(D.BEGIN,M.id?M.id:""),()=>{M.onModalEvent(D.REMOVED,M.id?M.id:"")})),[]),n((()=>{i(c),c||M.onHideModal&&M.onHideModal(String(M.id))}),[c]),tM(z,(()=>{!M.closeOnClickOutside||r||W||M.isActive&&(M.onModalEvent(D.OUTSIDE_CLICK,M.id?M.id:""),w(),i(!1))})),nM((()=>{M.preventESC||r||W||M.isActive&&(M.onModalEvent(D.ESC_CLICK,M.id?M.id:""),w(),i(!1))}));const f=()=>{M.isActive&&i(!1)},h=()=>{M.onRemoveModal&&M.onRemoveModal(String(M.id))},R=b=>{M.isActive&&(M.removeOthers,M.onShowModal(b))},L=M=>{l(!M)},m=M=>{q(M)},g=M=>{u(M)},N=()=>{M.onModalEvent(D.CLOSE_CLICK,M.id?M.id:""),w(),M.hideModalFromProvider(M.id?M.id:""),i(!1)},X=()=>{M.isActive&&(M.onModalEvent(D.OK_CLICK,M.id?M.id:""),x()&&(M.hideModalFromProvider(M.id?M.id:""),i(!1)))},y=()=>{M.isActive&&(M.onModalEvent(D.CANCEL_CLICK,M.id?M.id:""),w()&&(M.hideModalFromProvider(M.id?M.id:""),i(!1)))},x=()=>{if(!b.current)return!M.onOk||M.onOk();b.current.onClickOK&&b.current.onClickOK()},w=()=>{if(!b.current)return!M.onCancel||M.onCancel();b.current.onClickCancel&&b.current.onClickCancel()},T=()=>{M.onModalEvent(D.ENTERING,M.id?M.id:"")},_=()=>{M.onModalEvent(D.ENTERED,M.id?M.id:"")},k=()=>{M.onModalEvent(D.EXITING,M.id?M.id:"")},S=()=>{M.onModalEvent(D.EXITED,M.id?M.id:""),e(!1)},E=M=>{if(M.content&&Object(M.content).props&&Object.keys(Object(M.content).props).length>0)return{};let z={hideCurrentModal:f,removeCurrentModal:h,showAnotherModal:R,changeButtonsState:L,changeLoadingState:m,changeInnerLoadingState:g,modalProps:{...M.customProps},context:{...M.context}};return M.checkAutoRef&&M.content.type.hasOwnProperty("$$typeof")&&(console.log("(props.content as React.ReactElement).type['$$typeof']",M.content.type.$$typeof),"Symbol(react.forward_ref)"===M.content.type.$$typeof.toString()&&(z.ref=b)),M.useRef&&(z.ref=b),z},C=()=>{if(M.content)return p("div",{className:"itd-modal-middle-content-body",children:d(M.content,E(M))})},P=()=>{if(M.addContentBefore)return p(KM,{className:"itd-modal-middle-content-before",$padding:M.beforeContentPadding,children:M.addContentBefore})},F=()=>{if(M.addContentAfter)return p(QM,{className:"itd-modal-middle-content-after",$padding:M.afterContentPadding,children:M.addContentAfter})},I=()=>{let b=M.width;return"number"==typeof b&&(b=M.width+"px"),b};return n((()=>{if(a){const M=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${M}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}),[a]),n((()=>{M.modalEvent.event===D.EXITING&&M.modalEvent.id===M.id&&i(!1)}),[M.modalEvent,M.id]),n((()=>{!M.isVisible&&a&&i(!1)}),[M.isVisible,a,M.id]),c?p("div",{className:"itd-modal-container".concat(" "+M.className),children:p(B,{in:a,timeout:600,classNames:"modal",nodeRef:o,onEntering:T,onEntered:_,onExiting:k,onExited:S,unmountOnExit:!0,children:p(jM,{className:"itd-modal-content-wrapper",ref:o,children:p(VM,{className:"itd-modal-inner-wrapper",$padding:M.outerPadding,children:p(YM,{className:"itd-modal-body",$width:I(),children:p(GM,{className:"itd-modal-content",ref:z,children:O(mM,{updating:W,children:[!1!==M.showCloseButton&&p(bb,{className:"itd-modal-close-button",children:p(UM,{size:"x-small",variant:"ghost",onClick:N,icon:p(v,{src:"data:image/svg+xml,%3csvg width = '10px' height = '10px' viewBox = '0 0 329.26933 329' xmlns = 'http://www.w3.org/2000/svg'%3e %3cpath d='m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0'%3e%3c/path%3e%3c/svg%3e"}),disabled:r||W||!M.isActive})}),M.title?p(ZM,{className:"itd-modal-header",children:"string"==typeof M.title?p(ic,{children:M.title}):M.title}):null,P(),p(JM,{className:"itd-modal-middle-content",$padding:M.contentPadding,children:C()}),F(),M.showOkButton||M.showCancelButton?O(Mb,{className:"itd-modal-footer",children:[M.showCancelButton&&p(UM,{variant:"solid",size:"small",type:"button",onClick:y,disabled:r||W||!M.isActive||s,...M.cancelButtonProps,children:M.cancelButtonText}),M.showOkButton&&p(UM,{variant:"default",size:"small",type:"button",onClick:X,loading:r,disabled:W||!M.isActive||s,...M.okButtonProps,children:M.okButtonText})]}):null]})})})})})})}):null},pb=k.div`
|
|
1252
1252
|
|
|
1253
1253
|
width: 100vw;
|
|
1254
1254
|
height: 100vh;
|
|
@@ -1950,7 +1950,7 @@ function(b,z){M.exports?M.exports=z(FO()):z(b.moment)}(jO,(function(M){void 0===
|
|
|
1950
1950
|
|
|
1951
1951
|
`,HA=k(IA)`
|
|
1952
1952
|
|
|
1953
|
-
`;function UA({position:M="bottom",direction:b="right",multi:z=!1,isOpen:o=!1,defaultValue:O,children:c,onChange:e,onClose:a}){const i=A(null),[r,q]=t("bottom"),[s,l]=t("right"),[W,u]=t(null);n((()=>{null!=O&&u(Array.isArray(O)?O:[O])}),[O]),n((()=>{q("top"===M?"top":"bottom"),l("right"===b?"right":"left")}),[M,b]);const h=(M,b,p)=>{if(z){let z=null!==W&&"object"==typeof W&&Object.assign(W),o=[];b?o=[...z,M]:(z.indexOf(M)>-1&&z.splice(z.indexOf(M),1),o=[...z]),u(o),e(o,p)}else b?(u([M]),e&&e(M,p)):a&&a()},R=M=>!!W&&("string"==typeof W||"number"==typeof W?W===M.props.value:!!Array.isArray(W)&&W.includes(M.props.value));return p("div",{children:p(B,{in:o,timeout:
|
|
1953
|
+
`;function UA({position:M="bottom",direction:b="right",multi:z=!1,isOpen:o=!1,defaultValue:O,children:c,onChange:e,onClose:a}){const i=A(null),[r,q]=t("bottom"),[s,l]=t("right"),[W,u]=t(null);n((()=>{null!=O&&u(Array.isArray(O)?O:[O])}),[O]),n((()=>{q("top"===M?"top":"bottom"),l("right"===b?"right":"left")}),[M,b]);const h=(M,b,p)=>{if(z){let z=null!==W&&"object"==typeof W&&Object.assign(W),o=[];b?o=[...z,M]:(z.indexOf(M)>-1&&z.splice(z.indexOf(M),1),o=[...z]),u(o),e(o,p)}else b?(u([M]),e&&e(M,p)):a&&a()},R=M=>!!W&&("string"==typeof W||"number"==typeof W?W===M.props.value:!!Array.isArray(W)&&W.includes(M.props.value));return p("div",{children:p(B,{in:o,timeout:250,classNames:"select-menu",nodeRef:i,unmountOnExit:!0,children:p($A,{className:(()=>{let M="itd-select-dropdown";return z||(M+=" single"),z&&(M+=" multi"),M})(),ref:i,"data-position":r,"data-direction":s,children:p(HA,{className:"itd-select-dropdown-body",children:p("ul",{children:f.map(c,(M=>d(M,{onChange:h,checked:R(M),multi:z,key:M.props.value})))})})})})})}const jA=M=>"xs"===M?{width:14,height:14}:"sm"===M?{width:16,height:16}:"md"===M?{width:18,height:18}:"df"===M||"lg"===M?{width:20,height:20}:"xlg"===M?{width:22,height:22}:{width:20,height:20},VA=M=>"xs"===M?{padding:{top:"0px",right:"10px",bottom:"0px",left:"10px"},height:28}:"sm"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:34}:"md"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:38}:"df"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40}:"lg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:44}:"xlg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:46}:{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40},YA=M=>"xs"===M?{fontSize:12,lineHeight:12,fontWeight:400}:"sm"===M||"md"===M?{fontSize:13,lineHeight:13,fontWeight:500}:"df"===M||"lg"===M?{fontSize:14,lineHeight:14,fontWeight:500}:"xlg"===M?{fontSize:15,lineHeight:15,fontWeight:500}:{fontSize:14,lineHeight:14,fontWeight:500},GA="5px",KA=M=>{const b=VA(M),z=jA(M),p=(M=>"xs"===M?{padding:{top:"0px",right:"10px",bottom:"0px",left:"10px"},height:28}:"sm"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:34}:"md"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:38}:"df"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40}:"lg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:44}:"xlg"===M?{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:46}:{padding:{top:"0px",right:"15px",bottom:"0px",left:"15px"},height:40})(M),o=YA(M);return E`
|
|
1954
1954
|
.itd-select-dropdown {
|
|
1955
1955
|
|
|
1956
1956
|
&.multi .itd-checkbox {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"weekdaysLong":[
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
3
|
+
"Sunday",
|
|
4
|
+
"Monday",
|
|
5
|
+
"Tuesday",
|
|
6
|
+
"Wednesday",
|
|
7
|
+
"Thursday",
|
|
8
|
+
"Friday",
|
|
9
|
+
"Saturday"
|
|
10
10
|
],
|
|
11
11
|
"weekdaysShort":[
|
|
12
|
-
"
|
|
12
|
+
"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"
|
|
13
13
|
],
|
|
14
14
|
"months":[
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
15
|
+
"January",
|
|
16
|
+
"February",
|
|
17
|
+
"March",
|
|
18
|
+
"April",
|
|
19
|
+
"May",
|
|
20
|
+
"June",
|
|
21
|
+
"July",
|
|
22
|
+
"August",
|
|
23
|
+
"September",
|
|
24
|
+
"October",
|
|
25
|
+
"November",
|
|
26
|
+
"December"
|
|
27
27
|
],
|
|
28
|
-
"firstDay":
|
|
29
|
-
"format": "DD/
|
|
28
|
+
"firstDay": 0,
|
|
29
|
+
"format": "MM/DD/YYYY"
|
|
30
30
|
}
|
package/dist/locales/itd.json
CHANGED
|
@@ -1,307 +1,306 @@
|
|
|
1
1
|
{
|
|
2
|
-
"success": "
|
|
3
|
-
"error": "
|
|
2
|
+
"success": "Success",
|
|
3
|
+
"error": "Error",
|
|
4
4
|
"table": {
|
|
5
|
-
"noData": "
|
|
5
|
+
"noData": "No Data"
|
|
6
6
|
},
|
|
7
7
|
"placeholders": {
|
|
8
|
-
"username": "
|
|
9
|
-
"email": "E-
|
|
10
|
-
"password": "
|
|
11
|
-
"confirmPassword": "
|
|
12
|
-
"typeYourNoteHere": "
|
|
13
|
-
"selectGender": "
|
|
14
|
-
"selectLanguage": "
|
|
15
|
-
"selectCountry": "
|
|
16
|
-
"birthday": "
|
|
17
|
-
"multipleSelection": "
|
|
8
|
+
"username": "Username",
|
|
9
|
+
"email": "E-Mail",
|
|
10
|
+
"password": "Password",
|
|
11
|
+
"confirmPassword": "Confirm password",
|
|
12
|
+
"typeYourNoteHere": "Type your note here",
|
|
13
|
+
"selectGender": "Select Gender",
|
|
14
|
+
"selectLanguage": "Select Language",
|
|
15
|
+
"selectCountry": "Select Country",
|
|
16
|
+
"birthday": "Birthday",
|
|
17
|
+
"multipleSelection": "Selected ({{- count}})"
|
|
18
18
|
},
|
|
19
19
|
"options": {
|
|
20
|
-
"all": "
|
|
21
|
-
"male": "
|
|
22
|
-
"female": "
|
|
20
|
+
"all": "All",
|
|
21
|
+
"male": "Male",
|
|
22
|
+
"female": "Female",
|
|
23
23
|
"languages": {
|
|
24
|
-
"turkish": "
|
|
25
|
-
"english": "
|
|
24
|
+
"turkish": "Turkish",
|
|
25
|
+
"english": "English"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"buttons": {
|
|
29
|
-
"submit": "
|
|
30
|
-
"reset": "
|
|
29
|
+
"submit": "Submit",
|
|
30
|
+
"reset": "Reset"
|
|
31
31
|
},
|
|
32
32
|
"errors": {
|
|
33
|
-
"required": "
|
|
34
|
-
"minLength": "
|
|
35
|
-
"maxLength": "
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"fieldMustBeDifferent": "Bu alan şunlarla aynı olmamalıdır: {{- fields}}"
|
|
33
|
+
"required": "This field is required!",
|
|
34
|
+
"minLength": "Should contain at least {{- length}} characters",
|
|
35
|
+
"maxLength": "Is too long. Max size is {{- length}}",
|
|
36
|
+
"passwordRule": "Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",
|
|
37
|
+
"invalidEmailAddress": "Invalid email address",
|
|
38
|
+
"passwordsDontMatch": "The two passwords that you entered do not match!",
|
|
39
|
+
"usernameRule": "Only English letters, digits and symbols (-_.). No space is allowed",
|
|
40
|
+
"wrongTCIdentity": "Wrong TC Identity Number",
|
|
41
|
+
"fieldMustBeTheSame": "This field must be the same as: {{- fields}}",
|
|
42
|
+
"siteUsernameRule": "Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",
|
|
43
|
+
"adminUsernameRule": "Only English letters and digits. No symbols (-_. vs) and no space is allowed",
|
|
44
|
+
"invalidURL": "Invalid URL",
|
|
45
|
+
"fieldMustBeDifferent": "This field must be different from: {{- fields}}"
|
|
47
46
|
},
|
|
48
47
|
"uploader": {
|
|
49
|
-
"header": "
|
|
50
|
-
"hint": "
|
|
51
|
-
"fileUploading": "
|
|
52
|
-
"info": "
|
|
53
|
-
"delete": "
|
|
54
|
-
"preview": "
|
|
55
|
-
"error": "
|
|
56
|
-
"fileFormatError": "
|
|
57
|
-
"fileSizeError": "
|
|
58
|
-
"fileUploadSuccess": "
|
|
59
|
-
"fileUploadFailed": "
|
|
60
|
-
"removeFileSuccess": "
|
|
61
|
-
"browserDoesntSupportDND": "
|
|
62
|
-
"calculating": "
|
|
63
|
-
"removeFile": "
|
|
64
|
-
"areYouSureToDeleteThisFile": "
|
|
65
|
-
"yes": "
|
|
66
|
-
"no": "
|
|
48
|
+
"header": "Drag and drop an file",
|
|
49
|
+
"hint": "or Browse to choose a file",
|
|
50
|
+
"fileUploading": "File uploading...",
|
|
51
|
+
"info": "Total: {{- total}} - {{- estimated}} s remaining.",
|
|
52
|
+
"delete": "Delete",
|
|
53
|
+
"preview": "Preview",
|
|
54
|
+
"error": "Error",
|
|
55
|
+
"fileFormatError": "You can only upload {{fileFormat}} file",
|
|
56
|
+
"fileSizeError": "File must smaller than {{fileSize}}",
|
|
57
|
+
"fileUploadSuccess": "File successfully uploaded.",
|
|
58
|
+
"fileUploadFailed": "File upload failed!",
|
|
59
|
+
"removeFileSuccess": "File successfully delete!",
|
|
60
|
+
"browserDoesntSupportDND": "Browser doesn't support drag and drop!",
|
|
61
|
+
"calculating": "Calculating...",
|
|
62
|
+
"removeFile": "Remove File",
|
|
63
|
+
"areYouSureToDeleteThisFile": "Are you sure to delete this file?",
|
|
64
|
+
"yes": "Yes",
|
|
65
|
+
"no": "No"
|
|
67
66
|
},
|
|
68
67
|
"results": {
|
|
69
68
|
"authentication": {
|
|
70
|
-
"title": "
|
|
71
|
-
"subtitle": "
|
|
72
|
-
"button": "
|
|
69
|
+
"title": "You Need To Sign In",
|
|
70
|
+
"subtitle": "You need to login to access this page. Please login by clicking the button below.",
|
|
71
|
+
"button": "LOGIN"
|
|
73
72
|
}
|
|
74
73
|
},
|
|
75
74
|
"currencies": {
|
|
76
|
-
"TRY": "
|
|
75
|
+
"TRY": "Turkish Lira",
|
|
77
76
|
"EUR": "Euro",
|
|
78
|
-
"USD": "
|
|
77
|
+
"USD": "Dollar"
|
|
79
78
|
},
|
|
80
79
|
"countries": {
|
|
81
|
-
"af": "
|
|
82
|
-
"al": "
|
|
83
|
-
"dz": "
|
|
80
|
+
"af": "Afghanistan",
|
|
81
|
+
"al": "Albania",
|
|
82
|
+
"dz": "Algeria",
|
|
84
83
|
"ad": "Andorra",
|
|
85
84
|
"ao": "Angola",
|
|
86
|
-
"ag": "Antigua
|
|
87
|
-
"ar": "
|
|
88
|
-
"am": "
|
|
89
|
-
"au": "
|
|
90
|
-
"at": "
|
|
91
|
-
"az": "
|
|
92
|
-
"bs": "
|
|
93
|
-
"bh": "
|
|
94
|
-
"bd": "
|
|
85
|
+
"ag": "Antigua and Barbuda",
|
|
86
|
+
"ar": "Argentina",
|
|
87
|
+
"am": "Armenia",
|
|
88
|
+
"au": "Australia",
|
|
89
|
+
"at": "Austria",
|
|
90
|
+
"az": "Azerbaijan",
|
|
91
|
+
"bs": "Bahamas",
|
|
92
|
+
"bh": "Bahrain",
|
|
93
|
+
"bd": "Bangladesh",
|
|
95
94
|
"bb": "Barbados",
|
|
96
|
-
"by": "
|
|
97
|
-
"be": "
|
|
95
|
+
"by": "Belarus",
|
|
96
|
+
"be": "Belgium",
|
|
98
97
|
"bz": "Belize",
|
|
99
98
|
"bj": "Benin",
|
|
100
99
|
"bt": "Bhutan",
|
|
101
|
-
"bo": "
|
|
102
|
-
"ba": "
|
|
103
|
-
"bw": "
|
|
104
|
-
"br": "
|
|
105
|
-
"bn": "Brunei",
|
|
106
|
-
"bg": "
|
|
100
|
+
"bo": "Bolivia",
|
|
101
|
+
"ba": "Bosnia and Herzegovina",
|
|
102
|
+
"bw": "Botswana",
|
|
103
|
+
"br": "Brazil",
|
|
104
|
+
"bn": "Brunei Darussalam",
|
|
105
|
+
"bg": "Bulgaria",
|
|
107
106
|
"bf": "Burkina Faso",
|
|
108
107
|
"bi": "Burundi",
|
|
109
|
-
"cv": "
|
|
110
|
-
"kh": "
|
|
111
|
-
"cm": "
|
|
112
|
-
"ca": "
|
|
113
|
-
"cf": "
|
|
114
|
-
"td": "
|
|
115
|
-
"cl": "
|
|
116
|
-
"cn": "
|
|
117
|
-
"co": "
|
|
118
|
-
"km": "
|
|
119
|
-
"cg": "
|
|
120
|
-
"cd": "
|
|
121
|
-
"cr": "
|
|
122
|
-
"ci": "
|
|
123
|
-
"hr": "
|
|
124
|
-
"cu": "
|
|
125
|
-
"cw": "
|
|
126
|
-
"cy": "
|
|
127
|
-
"cz": "
|
|
128
|
-
"dk": "
|
|
129
|
-
"dj": "
|
|
130
|
-
"dm": "
|
|
131
|
-
"do": "
|
|
132
|
-
"ec": "
|
|
133
|
-
"eg": "
|
|
108
|
+
"cv": "Cabo Verde",
|
|
109
|
+
"kh": "Cambodia",
|
|
110
|
+
"cm": "Cameroon",
|
|
111
|
+
"ca": "Canada",
|
|
112
|
+
"cf": "Central African Republic",
|
|
113
|
+
"td": "Chad",
|
|
114
|
+
"cl": "Chile",
|
|
115
|
+
"cn": "China",
|
|
116
|
+
"co": "Colombia",
|
|
117
|
+
"km": "Comoros",
|
|
118
|
+
"cg": "Congo",
|
|
119
|
+
"cd": "Congo, Democratic",
|
|
120
|
+
"cr": "Costa Rica",
|
|
121
|
+
"ci": "Côte d'Ivoire",
|
|
122
|
+
"hr": "Croatia",
|
|
123
|
+
"cu": "Cuba",
|
|
124
|
+
"cw": "Curacao",
|
|
125
|
+
"cy": "Cyprus",
|
|
126
|
+
"cz": "Czechia",
|
|
127
|
+
"dk": "Denmark",
|
|
128
|
+
"dj": "Djibouti",
|
|
129
|
+
"dm": "Dominica",
|
|
130
|
+
"do": "Dominican Republic",
|
|
131
|
+
"ec": "Ecuador",
|
|
132
|
+
"eg": "Egypt",
|
|
134
133
|
"sv": "El Salvador",
|
|
135
|
-
"gq": "
|
|
136
|
-
"er": "
|
|
137
|
-
"ee": "
|
|
138
|
-
"sz": "
|
|
139
|
-
"et": "
|
|
134
|
+
"gq": "Equatorial Guinea",
|
|
135
|
+
"er": "Eritrea",
|
|
136
|
+
"ee": "Estonia",
|
|
137
|
+
"sz": "Eswatini",
|
|
138
|
+
"et": "Ethiopia",
|
|
140
139
|
"fj": "Fiji",
|
|
141
|
-
"fi": "
|
|
142
|
-
"fr": "
|
|
140
|
+
"fi": "Finland",
|
|
141
|
+
"fr": "France",
|
|
143
142
|
"ga": "Gabon",
|
|
144
143
|
"gm": "Gambia",
|
|
145
|
-
"ge": "
|
|
146
|
-
"de": "
|
|
147
|
-
"gh": "
|
|
148
|
-
"gr": "
|
|
144
|
+
"ge": "Georgia",
|
|
145
|
+
"de": "Germany",
|
|
146
|
+
"gh": "Ghana",
|
|
147
|
+
"gr": "Greece",
|
|
149
148
|
"gd": "Grenada",
|
|
150
149
|
"gt": "Guatemala",
|
|
151
|
-
"gn": "
|
|
150
|
+
"gn": "Guinea",
|
|
152
151
|
"gw": "Guinea-Bissau",
|
|
153
152
|
"gy": "Guyana",
|
|
154
153
|
"ht": "Haiti",
|
|
155
154
|
"hn": "Honduras",
|
|
156
|
-
"hu": "
|
|
157
|
-
"is": "
|
|
158
|
-
"in": "
|
|
159
|
-
"id": "
|
|
160
|
-
"ir": "
|
|
161
|
-
"iq": "
|
|
155
|
+
"hu": "Hungary",
|
|
156
|
+
"is": "Iceland",
|
|
157
|
+
"in": "India",
|
|
158
|
+
"id": "Indonesia",
|
|
159
|
+
"ir": "Iran",
|
|
160
|
+
"iq": "Iraq",
|
|
162
161
|
"ie": "Ireland",
|
|
163
|
-
"il": "
|
|
164
|
-
"it": "
|
|
165
|
-
"jm": "
|
|
166
|
-
"jp": "
|
|
167
|
-
"jo": "
|
|
168
|
-
"kz": "
|
|
162
|
+
"il": "Israel",
|
|
163
|
+
"it": "Italy",
|
|
164
|
+
"jm": "Jamaica",
|
|
165
|
+
"jp": "Japan",
|
|
166
|
+
"jo": "Jordan",
|
|
167
|
+
"kz": "Kazakhstan",
|
|
169
168
|
"ke": "Kenya",
|
|
170
169
|
"ki": "Kiribati",
|
|
171
|
-
"kp": "
|
|
172
|
-
"kr": "
|
|
173
|
-
"kw": "
|
|
174
|
-
"kg": "
|
|
175
|
-
"la": "
|
|
176
|
-
"lv": "
|
|
177
|
-
"lb": "
|
|
170
|
+
"kp": "North Korea",
|
|
171
|
+
"kr": "South Korea",
|
|
172
|
+
"kw": "Kuwait",
|
|
173
|
+
"kg": "Kyrgyzstan",
|
|
174
|
+
"la": "Lao People's",
|
|
175
|
+
"lv": "Latvia",
|
|
176
|
+
"lb": "Lebanon",
|
|
178
177
|
"ls": "Lesotho",
|
|
179
|
-
"lr": "
|
|
178
|
+
"lr": "Liberia",
|
|
180
179
|
"ly": "Libya",
|
|
181
|
-
"li": "
|
|
182
|
-
"lt": "
|
|
183
|
-
"lu": "
|
|
184
|
-
"mg": "
|
|
185
|
-
"mw": "
|
|
186
|
-
"my": "
|
|
187
|
-
"mv": "
|
|
180
|
+
"li": "Liechtenstein",
|
|
181
|
+
"lt": "Lithuania",
|
|
182
|
+
"lu": "Luxembourg",
|
|
183
|
+
"mg": "Madagascar",
|
|
184
|
+
"mw": "Malawi",
|
|
185
|
+
"my": "Malaysia",
|
|
186
|
+
"mv": "Maldives",
|
|
188
187
|
"ml": "Mali",
|
|
189
188
|
"mt": "Malta",
|
|
190
|
-
"mh": "Marshall
|
|
191
|
-
"mr": "
|
|
189
|
+
"mh": "Marshall Islands",
|
|
190
|
+
"mr": "Mauritania",
|
|
192
191
|
"mu": "Mauritius",
|
|
193
|
-
"mx": "
|
|
194
|
-
"fm": "
|
|
195
|
-
"md": "Moldova",
|
|
196
|
-
"mc": "
|
|
197
|
-
"mn": "
|
|
198
|
-
"me": "
|
|
199
|
-
"ma": "
|
|
200
|
-
"mz": "
|
|
192
|
+
"mx": "Mexico",
|
|
193
|
+
"fm": "Micronesia",
|
|
194
|
+
"md": "Moldova, Republic of",
|
|
195
|
+
"mc": "Monaco",
|
|
196
|
+
"mn": "Mongolia",
|
|
197
|
+
"me": "Montenegro",
|
|
198
|
+
"ma": "Morocco",
|
|
199
|
+
"mz": "Mozambique",
|
|
201
200
|
"mm": "Myanmar",
|
|
202
|
-
"na": "
|
|
201
|
+
"na": "Namibia",
|
|
203
202
|
"nr": "Nauru",
|
|
204
203
|
"np": "Nepal",
|
|
205
|
-
"nl": "
|
|
206
|
-
"nz": "
|
|
207
|
-
"ni": "
|
|
208
|
-
"ne": "
|
|
209
|
-
"ng": "
|
|
210
|
-
"mk": "
|
|
211
|
-
"no": "
|
|
212
|
-
"om": "
|
|
204
|
+
"nl": "Netherlands",
|
|
205
|
+
"nz": "New Zealand",
|
|
206
|
+
"ni": "Nicaragua",
|
|
207
|
+
"ne": "Niger",
|
|
208
|
+
"ng": "Nigeria",
|
|
209
|
+
"mk": "North Macedonia",
|
|
210
|
+
"no": "Norway",
|
|
211
|
+
"om": "Oman",
|
|
213
212
|
"pk": "Pakistan",
|
|
214
213
|
"pw": "Palau",
|
|
215
214
|
"pa": "Panama",
|
|
216
|
-
"pg": "Papua
|
|
215
|
+
"pg": "Papua New Guinea",
|
|
217
216
|
"py": "Paraguay",
|
|
218
217
|
"pe": "Peru",
|
|
219
|
-
"ph": "
|
|
220
|
-
"pl": "
|
|
221
|
-
"pt": "
|
|
222
|
-
"qa": "
|
|
223
|
-
"ro": "
|
|
224
|
-
"ru": "
|
|
225
|
-
"rw": "
|
|
226
|
-
"kn": "Saint Kitts
|
|
218
|
+
"ph": "Philippines",
|
|
219
|
+
"pl": "Poland",
|
|
220
|
+
"pt": "Portugal",
|
|
221
|
+
"qa": "Qatar",
|
|
222
|
+
"ro": "Romania",
|
|
223
|
+
"ru": "Russian Federation",
|
|
224
|
+
"rw": "Rwanda",
|
|
225
|
+
"kn": "Saint Kitts and Nevis",
|
|
227
226
|
"lc": "Saint Lucia",
|
|
228
227
|
"vc": "Saint Vincent",
|
|
229
228
|
"ws": "Samoa",
|
|
230
229
|
"sm": "San Marino",
|
|
231
230
|
"st": "Sao Tome and Principe",
|
|
232
|
-
"sa": "
|
|
231
|
+
"sa": "Saudi Arabia",
|
|
233
232
|
"sn": "Senegal",
|
|
234
|
-
"rs": "
|
|
235
|
-
"sc": "
|
|
233
|
+
"rs": "Serbia",
|
|
234
|
+
"sc": "Seychelles",
|
|
236
235
|
"sl": "Sierra Leone",
|
|
237
|
-
"sg": "
|
|
238
|
-
"sk": "
|
|
239
|
-
"si": "
|
|
240
|
-
"sb": "Solomon
|
|
241
|
-
"so": "
|
|
242
|
-
"za": "
|
|
243
|
-
"ss": "
|
|
244
|
-
"es": "
|
|
236
|
+
"sg": "Singapore",
|
|
237
|
+
"sk": "Slovakia",
|
|
238
|
+
"si": "Slovenia",
|
|
239
|
+
"sb": "Solomon Islands",
|
|
240
|
+
"so": "Somalia",
|
|
241
|
+
"za": "South Africa",
|
|
242
|
+
"ss": "South Sudan",
|
|
243
|
+
"es": "Spain",
|
|
245
244
|
"lk": "Sri Lanka",
|
|
246
245
|
"sd": "Sudan",
|
|
247
|
-
"sr": "
|
|
248
|
-
"se": "
|
|
249
|
-
"ch": "
|
|
250
|
-
"sy": "
|
|
251
|
-
"tj": "
|
|
252
|
-
"tw": "
|
|
253
|
-
"tz": "
|
|
254
|
-
"th": "
|
|
255
|
-
"tl": "
|
|
246
|
+
"sr": "Suriname",
|
|
247
|
+
"se": "Sweden",
|
|
248
|
+
"ch": "Switzerland",
|
|
249
|
+
"sy": "Syrian Arab Republic",
|
|
250
|
+
"tj": "Tajikistan",
|
|
251
|
+
"tw": "Taiwan",
|
|
252
|
+
"tz": "Tanzania",
|
|
253
|
+
"th": "Thailand",
|
|
254
|
+
"tl": "Timor-Leste",
|
|
256
255
|
"tg": "Togo",
|
|
257
256
|
"to": "Tonga",
|
|
258
|
-
"tt": "Trinidad
|
|
259
|
-
"tn": "
|
|
260
|
-
"tr": "
|
|
261
|
-
"tm": "
|
|
257
|
+
"tt": "Trinidad and Tobago",
|
|
258
|
+
"tn": "Tunisia",
|
|
259
|
+
"tr": "Turkey",
|
|
260
|
+
"tm": "Turkmenistan",
|
|
262
261
|
"tv": "Tuvalu",
|
|
263
262
|
"ug": "Uganda",
|
|
264
|
-
"ua": "
|
|
265
|
-
"ae": "
|
|
266
|
-
"gb": "
|
|
267
|
-
"us": "
|
|
263
|
+
"ua": "Ukraine",
|
|
264
|
+
"ae": "United Arab Emirates",
|
|
265
|
+
"gb": "United Kingdom",
|
|
266
|
+
"us": "United States of America",
|
|
268
267
|
"uy": "Uruguay",
|
|
269
|
-
"uz": "
|
|
268
|
+
"uz": "Uzbekistan",
|
|
270
269
|
"vu": "Vanuatu",
|
|
271
270
|
"ve": "Venezuela",
|
|
272
|
-
"vn": "
|
|
271
|
+
"vn": "Viet Nam",
|
|
273
272
|
"ye": "Yemen",
|
|
274
|
-
"zm": "
|
|
275
|
-
"zw": "
|
|
273
|
+
"zm": "Zambia",
|
|
274
|
+
"zw": "Zimbabwe"
|
|
276
275
|
},
|
|
277
276
|
"calendar": {
|
|
278
277
|
"weekdaysLong":[
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
"
|
|
284
|
-
"
|
|
285
|
-
"
|
|
278
|
+
"Sunday",
|
|
279
|
+
"Monday",
|
|
280
|
+
"Tuesday",
|
|
281
|
+
"Wednesday",
|
|
282
|
+
"Thursday",
|
|
283
|
+
"Friday",
|
|
284
|
+
"Saturday"
|
|
286
285
|
],
|
|
287
286
|
"weekdaysShort":[
|
|
288
|
-
"
|
|
287
|
+
"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"
|
|
289
288
|
],
|
|
290
289
|
"months":[
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
"
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"
|
|
290
|
+
"January",
|
|
291
|
+
"February",
|
|
292
|
+
"March",
|
|
293
|
+
"April",
|
|
294
|
+
"May",
|
|
295
|
+
"June",
|
|
296
|
+
"July",
|
|
297
|
+
"August",
|
|
298
|
+
"September",
|
|
299
|
+
"October",
|
|
300
|
+
"November",
|
|
301
|
+
"December"
|
|
303
302
|
],
|
|
304
|
-
"firstDay":
|
|
305
|
-
"format": "DD/
|
|
303
|
+
"firstDay": 0,
|
|
304
|
+
"format": "MM/DD/YYYY"
|
|
306
305
|
}
|
|
307
|
-
}
|
|
306
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
|