@inntechcorp/it-design 2.2.55 → 2.2.57
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/alink/index.d.ts +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/alink/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>;
|
|
2
|
+
export default _default;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
${Y}
|
|
1124
1124
|
`,J=t.a`
|
|
1125
1125
|
${Y}
|
|
1126
|
-
`;function Z(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const MM=[];for(let M=0;M<256;++M)MM.push((M+256).toString(16).slice(1));let bM;const zM=new Uint8Array(16);var pM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oM(M,b,z){if(pM.randomUUID&&!M)return pM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!bM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bM=crypto.getRandomValues.bind(crypto)}return bM(zM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(MM[M[b+0]]+MM[M[b+1]]+MM[M[b+2]]+MM[M[b+3]]+"-"+MM[M[b+4]]+MM[M[b+5]]+"-"+MM[M[b+6]]+MM[M[b+7]]+"-"+MM[M[b+8]]+MM[M[b+9]]+"-"+MM[M[b+10]]+MM[M[b+11]]+MM[M[b+12]]+MM[M[b+13]]+MM[M[b+14]]+MM[M[b+15]]).toLowerCase()}(p)}function cM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function eM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const OM=new Map;var tM=p.memo((({src:M,className:b,style:o,title:c,role:e,onLoaded:O,onError:t})=>{const n=p.useRef(null);return p.useEffect((()=>{const b=n.current;if(!b)return;let z=!1;const p=M=>{z
|
|
1126
|
+
`;function Z(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const MM=[];for(let M=0;M<256;++M)MM.push((M+256).toString(16).slice(1));let bM;const zM=new Uint8Array(16);var pM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oM(M,b,z){if(pM.randomUUID&&!M)return pM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!bM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bM=crypto.getRandomValues.bind(crypto)}return bM(zM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(MM[M[b+0]]+MM[M[b+1]]+MM[M[b+2]]+MM[M[b+3]]+"-"+MM[M[b+4]]+MM[M[b+5]]+"-"+MM[M[b+6]]+MM[M[b+7]]+"-"+MM[M[b+8]]+MM[M[b+9]]+"-"+MM[M[b+10]]+MM[M[b+11]]+MM[M[b+12]]+MM[M[b+13]]+MM[M[b+14]]+MM[M[b+15]]).toLowerCase()}(p)}function cM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function eM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const OM=new Map;var tM=p.memo((({src:M,className:b,style:o,title:c,role:e,onLoaded:O,onError:t})=>{const n=p.useRef(null);return p.useEffect((()=>{const b=n.current;if(!b)return;let z=!1;const p=M=>{if(z)return;b.__itdLastSvg!==M?(b.innerHTML=M,b.__itdLastSvg=M,O&&O()):O&&O()};try{if(M.trim().startsWith("<svg"))return p(M),()=>{z=!0};if(OM.has(M))return p(OM.get(M)),()=>{z=!0};const b=new AbortController;return fetch(M,{signal:b.signal}).then((async M=>{if(!M.ok)throw new Error(`SVG load failed: ${M.status}`);return M.text()})).then((b=>{OM.set(M,b),p(b)})).catch((M=>{z||t&&t(M)})),()=>{z=!0,b.abort()}}catch(M){t&&t(M)}return()=>{z=!0}}),[M]),z.jsx("span",{ref:n,className:b,style:o,title:c,role:e,"aria-hidden":!c||void 0})}),((M,b)=>M.src===b.src&&M.className===b.className&&M.title===b.title&&M.role===b.role&&M.style===b.style));const nM=({id:M="",disabled:b=!1,loading:o=!1,selected:c=!1,circle:O=!1,strecth:t=!1,justify:n="center",contentPosition:A="left",type:a="button",variant:r="default",size:i="default",state:d=null,icon:q=null,href:s="",target:l="_self",className:W="",children:u=null,onClick:f=null})=>{const h=p.useRef(null),[R,L]=p.useState(M);p.useEffect((()=>{""===M&&L("itd-button-"+oM())}),[]);const m=()=>o||!q?null:p.isValidElement(q)?z.jsx(H,{className:"icon itd-element",$contentPosition:A,$justify:n,$useIconPadding:null!==u&&""!==u,children:q}):"string"==typeof q&&Z(q)?z.jsx(V,{className:"icon itd-image",src:q,as:kc,height:cM(i),brokenHeight:cM(i),$contentPosition:A,$justify:n}):"string"==typeof q?z.jsx($,{className:"icon itd-icon "+q,$contentPosition:A,$justify:n,$useIconPadding:null!==u&&""!==u}):q instanceof SVGElement?z.jsx(U,{className:"icon itd-svg",$singleIcon:!u,$contentPosition:A,$justify:n,children:z.jsx(tM,{src:q.toString()})}):null,g=()=>z.jsxs(z.Fragment,{children:["left"===A?m():null,o?z.jsx(F,{}):null,u?z.jsx(G,{$loading:o?"true":"false",children:u}):null,"right"===A?m():null]}),N=()=>p.isValidElement(q)?"element":"string"==typeof q&&Z(q)?"image":"string"==typeof q?"icon":q instanceof SVGElement?"svg":"",B=()=>{let M={id:R,$loading:"false",$justify:n,$size:eM(i),disabled:!1};return o&&(M.$loading="true"),b&&(M.disabled=!0),M},v=()=>{let M="itd-button";return M+=" itd-button-"+r,M+=" itd-button-"+eM(i),M+=" itd-button-"+a,null===u&&(M+=" itd-button-has-icon"),"statable"===r&&d&&(M+=" itd-button-"+d),"custom"===r&&d&&(M+=" itd-button-"+d),c&&(M+=" itd-button-selected"),t&&(M+=" itd-button-stretch"),O&&(M+=" itd-button-circle"),o&&(M+=" itd-button-loading"),"element"===N()&&(M+=" itd-element"),"svg"===N()&&(M+=" itd-svg"),"icon"===N()&&(M+=" itd-icon"),"image"===N()&&(M+=" itd-image"),""!==W&&(M+=" "+W),M},x=M=>{o||f&&f(M)},X=M=>z.jsx(K,{className:v(),type:M,...B(),children:g()});return"submit"===a?X("submit"):"reset"===a?X("reset"):""!==s?z.jsx(Q,{className:v(),as:e.NavLink,to:s,target:l,...B(),children:z.jsxs(z.Fragment,{children:[m(),z.jsx("span",{children:u})]})}):"link"===r?z.jsx(J,{className:v(),onClick:x,...B(),children:g()}):z.jsx(K,{className:v(),onClick:x,type:"button",ref:h,...B(),children:g()})};const AM=t.div`
|
|
1127
1127
|
|
|
1128
1128
|
position: absolute;
|
|
1129
1129
|
left: 50%;
|
|
@@ -4072,7 +4072,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4072
4072
|
|
|
4073
4073
|
text-decoration: none;
|
|
4074
4074
|
|
|
4075
|
-
|
|
4075
|
+
`;var nr=p.memo((M=>(()=>{const{to:b,children:p,...o}=M;return z.jsx(tr,{...o,to:b,children:p})})()),((M,b)=>M.to===b.to&&M.className===b.className&&M.style===b.style&&M.children===b.children));const Ar=t.div`
|
|
4076
4076
|
display: flex;
|
|
4077
4077
|
flex-direction: column;
|
|
4078
4078
|
`,ar=t.div`
|
package/dist/index.d.ts
CHANGED
|
@@ -391,7 +391,7 @@ type InlineSVGCachedProps = {
|
|
|
391
391
|
onLoaded?: () => void;
|
|
392
392
|
onError?: (error: unknown) => void;
|
|
393
393
|
};
|
|
394
|
-
declare const _default$
|
|
394
|
+
declare const _default$5: react.MemoExoticComponent<({ src, className, style, title, role, onLoaded, onError }: InlineSVGCachedProps) => react_jsx_runtime.JSX.Element>;
|
|
395
395
|
|
|
396
396
|
type OptionsTypeProps = {
|
|
397
397
|
customKey?: string;
|
|
@@ -403,13 +403,13 @@ type OptionsTypeProps = {
|
|
|
403
403
|
checked?: boolean;
|
|
404
404
|
onChange?: (value: SelectValue$1, checked: boolean, label: ChildrenProps$1) => null;
|
|
405
405
|
};
|
|
406
|
-
declare const _default$
|
|
406
|
+
declare const _default$4: react.MemoExoticComponent<{
|
|
407
407
|
({ multi, checked, icon, image, value, customKey, onChange, label }: OptionsTypeProps): react_jsx_runtime.JSX.Element;
|
|
408
408
|
displayName: string;
|
|
409
409
|
}>;
|
|
410
410
|
|
|
411
411
|
type SelectSubComponentProps = {
|
|
412
|
-
Option: typeof _default$
|
|
412
|
+
Option: typeof _default$4;
|
|
413
413
|
};
|
|
414
414
|
type SelectComponentProps = ForwardRefExoticComponent<PropsWithoutRef<SelectProps> & RefAttributes<ITDImperativeFuncProps>> & SelectSubComponentProps;
|
|
415
415
|
declare const Select: SelectComponentProps;
|
|
@@ -633,15 +633,15 @@ declare const Notification: {
|
|
|
633
633
|
|
|
634
634
|
declare function RadioButton({ id, name, value, type, buttonProps, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps$1): react_jsx_runtime.JSX.Element;
|
|
635
635
|
|
|
636
|
-
declare const _default$
|
|
636
|
+
declare const _default$3: react__default.NamedExoticComponent<RadioGroupProps$1 & react__default.RefAttributes<ITDImperativeFuncProps$1>>;
|
|
637
637
|
|
|
638
638
|
interface RadioComponent extends React.FC {
|
|
639
|
-
Group: typeof _default$
|
|
639
|
+
Group: typeof _default$3;
|
|
640
640
|
Button: typeof RadioButton;
|
|
641
641
|
}
|
|
642
642
|
declare const Radio: RadioComponent;
|
|
643
643
|
|
|
644
|
-
declare const _default$
|
|
644
|
+
declare const _default$2: react__default.MemoExoticComponent<({ value, checked, single, onChange, children }: {
|
|
645
645
|
value?: string | undefined;
|
|
646
646
|
checked?: boolean | undefined;
|
|
647
647
|
single?: boolean | undefined;
|
|
@@ -659,7 +659,7 @@ declare function InlineSelect({ label, value, children, single, minWidth, classN
|
|
|
659
659
|
onChange?: null | undefined;
|
|
660
660
|
}): react_jsx_runtime.JSX.Element;
|
|
661
661
|
declare namespace InlineSelect {
|
|
662
|
-
export { _default$
|
|
662
|
+
export { _default$2 as Option };
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
interface ImageProps extends react__default.ImgHTMLAttributes<HTMLImageElement> {
|
|
@@ -671,7 +671,7 @@ interface ImageProps extends react__default.ImgHTMLAttributes<HTMLImageElement>
|
|
|
671
671
|
onLoad?: () => void;
|
|
672
672
|
onError?: () => void;
|
|
673
673
|
}
|
|
674
|
-
declare const _default: react__default.NamedExoticComponent<ImageProps>;
|
|
674
|
+
declare const _default$1: react__default.NamedExoticComponent<ImageProps>;
|
|
675
675
|
|
|
676
676
|
declare namespace ConsoleLog {
|
|
677
677
|
export { single };
|
|
@@ -694,7 +694,7 @@ declare const Result: {
|
|
|
694
694
|
displayName: string;
|
|
695
695
|
};
|
|
696
696
|
|
|
697
|
-
declare const
|
|
697
|
+
declare const _default: react.MemoExoticComponent<(props: any) => react_jsx_runtime.JSX.Element>;
|
|
698
698
|
|
|
699
699
|
interface ISpin {
|
|
700
700
|
updating?: boolean;
|
|
@@ -2166,5 +2166,5 @@ declare const resources: {
|
|
|
2166
2166
|
};
|
|
2167
2167
|
};
|
|
2168
2168
|
|
|
2169
|
-
export { ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, Calendar, Card, CheckFileURL, Checkbox, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, Form, FormValidationTypes, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, H1, H2, H3, H4, ITDContext, ITDProvider, _default as Image, _default$
|
|
2169
|
+
export { _default as ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, Calendar, Card, CheckFileURL, Checkbox, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, Form, FormValidationTypes, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, H1, H2, H3, H4, ITDContext, ITDProvider, _default$1 as Image, _default$5 as InlineSVGCached, InlineSelect, InlineSelectArrow, Input, IsValidJSON, Lock as LockIcon, ModalManager, ModalState, NoData, Notification, Picture, Progress, Radio, RemoveUnits, Result, SVGLoader, Select, Spin, Status, Switch, Table, Tabs, TextArea, TinyScrollbar, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, Wait, ZoomIn, ZoomOut, resources, toKebabCase, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery };
|
|
2170
2170
|
export type { AccordionItemProps, AccordionProps, AccordionSubMenuProps, AlertProps, AlertSize, AlertType, ButtonContentPosition, ButtonProps, ButtonState, ButtonType, ButtonVariant, CalendarDayProps, CalendarProps, CalendarValueProps, CardProps, CheckboxEvent, CheckboxGroupProps, CheckboxProps, DatePickerProps, Direction, FieldUpdateProps, FlexAlignProps, FlexGapProps, FlexJustifyProps, FlexProps, FormContextType, FormItemProps, FormProps, FormRuleProps, FormSubComponentProps, FormValueProps, GroupCheckboxOptionType, ITDContextType, ITDImperativeFuncProps, ITDProviderProps, ITDSize, ITDSizeSlug, InputProps, InputVariant, ModalContentProps, ModalProps, ModalRefProps, NotificationContextType, NotificationsProps, ProgressProps, ProgressStatus, QueryValueProps, RadioButtonProps, RadioGroupProps, RadioType, ResultProps, SelectDirection, SelectOptionProps, SelectPosition, SelectProps, SelectToggleProps, SelectValue, SelectVariant, SingleQueryProps, StatusProps, StatusVariant, SwitchProps, TableColumnType, TableProps, TableRefProps, TableRow, TableTRProps, TabsItemProps, TabsProps, TextAreaEvent, TextAreaProps, TextAreaVariant, UploadProgressProps, UploadProps, UploadResultMessageProps };
|
package/dist/index.esm.js
CHANGED
|
@@ -1123,7 +1123,7 @@ import M from"i18next";import{useTranslation as b,initReactI18next as z}from"rea
|
|
|
1123
1123
|
${yM}
|
|
1124
1124
|
`,TM=_.a`
|
|
1125
1125
|
${yM}
|
|
1126
|
-
`;function _M(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const kM=[];for(let M=0;M<256;++M)kM.push((M+256).toString(16).slice(1));let SM;const EM=new Uint8Array(16);var CM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DM(M,b,z){if(CM.randomUUID&&!M)return CM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!SM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");SM=crypto.getRandomValues.bind(crypto)}return SM(EM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(kM[M[b+0]]+kM[M[b+1]]+kM[M[b+2]]+kM[M[b+3]]+"-"+kM[M[b+4]]+kM[M[b+5]]+"-"+kM[M[b+6]]+kM[M[b+7]]+"-"+kM[M[b+8]]+kM[M[b+9]]+"-"+kM[M[b+10]]+kM[M[b+11]]+kM[M[b+12]]+kM[M[b+13]]+kM[M[b+14]]+kM[M[b+15]]).toLowerCase()}(p)}function PM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function FM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const IM=new Map;var $M=r((({src:M,className:b,style:z,title:o,role:O,onLoaded:c,onError:e})=>{const t=A(null);return n((()=>{const b=t.current;if(!b)return;let z=!1;const p=M=>{z
|
|
1126
|
+
`;function _M(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const kM=[];for(let M=0;M<256;++M)kM.push((M+256).toString(16).slice(1));let SM;const EM=new Uint8Array(16);var CM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DM(M,b,z){if(CM.randomUUID&&!M)return CM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!SM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");SM=crypto.getRandomValues.bind(crypto)}return SM(EM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(kM[M[b+0]]+kM[M[b+1]]+kM[M[b+2]]+kM[M[b+3]]+"-"+kM[M[b+4]]+kM[M[b+5]]+"-"+kM[M[b+6]]+kM[M[b+7]]+"-"+kM[M[b+8]]+kM[M[b+9]]+"-"+kM[M[b+10]]+kM[M[b+11]]+kM[M[b+12]]+kM[M[b+13]]+kM[M[b+14]]+kM[M[b+15]]).toLowerCase()}(p)}function PM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function FM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const IM=new Map;var $M=r((({src:M,className:b,style:z,title:o,role:O,onLoaded:c,onError:e})=>{const t=A(null);return n((()=>{const b=t.current;if(!b)return;let z=!1;const p=M=>{if(z)return;b.__itdLastSvg!==M?(b.innerHTML=M,b.__itdLastSvg=M,c&&c()):c&&c()};try{if(M.trim().startsWith("<svg"))return p(M),()=>{z=!0};if(IM.has(M))return p(IM.get(M)),()=>{z=!0};const b=new AbortController;return fetch(M,{signal:b.signal}).then((async M=>{if(!M.ok)throw new Error(`SVG load failed: ${M.status}`);return M.text()})).then((b=>{IM.set(M,b),p(b)})).catch((M=>{z||e&&e(M)})),()=>{z=!0,b.abort()}}catch(M){e&&e(M)}return()=>{z=!0}}),[M]),p("span",{ref:t,className:b,style:z,title:o,role:O,"aria-hidden":!o||void 0})}),((M,b)=>M.src===b.src&&M.className===b.className&&M.title===b.title&&M.role===b.role&&M.style===b.style));const HM=({id:M="",disabled:b=!1,loading:z=!1,selected:c=!1,circle:e=!1,strecth:a=!1,justify:i="center",contentPosition:r="left",type:q="button",variant:s="default",size:l="default",state:W=null,icon:u=null,href:f="",target:h="_self",className:R="",children:L=null,onClick:m=null})=>{const g=A(null),[N,B]=t(M);n((()=>{""===M&&B("itd-button-"+DM())}),[]);const v=()=>z||!u?null:d(u)?p(NM,{className:"icon itd-element",$contentPosition:r,$justify:i,$useIconPadding:null!==L&&""!==L,children:u}):"string"==typeof u&&_M(u)?p(vM,{className:"icon itd-image",src:u,as:jc,height:PM(l),brokenHeight:PM(l),$contentPosition:r,$justify:i}):"string"==typeof u?p(gM,{className:"icon itd-icon "+u,$contentPosition:r,$justify:i,$useIconPadding:null!==L&&""!==L}):u instanceof SVGElement?p(BM,{className:"icon itd-svg",$singleIcon:!L,$contentPosition:r,$justify:i,children:p($M,{src:u.toString()})}):null,X=()=>O(o,{children:["left"===r?v():null,z?p(LM,{}):null,L?p(XM,{$loading:z?"true":"false",children:L}):null,"right"===r?v():null]}),y=()=>d(u)?"element":"string"==typeof u&&_M(u)?"image":"string"==typeof u?"icon":u instanceof SVGElement?"svg":"",w=()=>{let M={id:N,$loading:"false",$justify:i,$size:FM(l),disabled:!1};return z&&(M.$loading="true"),b&&(M.disabled=!0),M},T=()=>{let M="itd-button";return M+=" itd-button-"+s,M+=" itd-button-"+FM(l),M+=" itd-button-"+q,null===L&&(M+=" itd-button-has-icon"),"statable"===s&&W&&(M+=" itd-button-"+W),"custom"===s&&W&&(M+=" itd-button-"+W),c&&(M+=" itd-button-selected"),a&&(M+=" itd-button-stretch"),e&&(M+=" itd-button-circle"),z&&(M+=" itd-button-loading"),"element"===y()&&(M+=" itd-element"),"svg"===y()&&(M+=" itd-svg"),"icon"===y()&&(M+=" itd-icon"),"image"===y()&&(M+=" itd-image"),""!==R&&(M+=" "+R),M},_=M=>{z||m&&m(M)},k=M=>p(xM,{className:T(),type:M,...w(),children:X()});return"submit"===q?k("submit"):"reset"===q?k("reset"):""!==f?p(wM,{className:T(),as:x,to:f,target:h,...w(),children:O(o,{children:[v(),p("span",{children:L})]})}):"link"===s?p(TM,{className:T(),onClick:_,...w(),children:X()}):p(xM,{className:T(),onClick:_,type:"button",ref:g,...w(),children:X()})};const UM=_.div`
|
|
1127
1127
|
|
|
1128
1128
|
position: absolute;
|
|
1129
1129
|
left: 50%;
|
|
@@ -4072,7 +4072,7 @@ function(b,z){M.exports?M.exports=z(EO()):z(b.moment)}(IO,(function(M){void 0===
|
|
|
4072
4072
|
|
|
4073
4073
|
text-decoration: none;
|
|
4074
4074
|
|
|
4075
|
-
|
|
4075
|
+
`;var Wr=r((M=>(()=>{const{to:b,children:z,...o}=M;return p(lr,{...o,to:b,children:z})})()),((M,b)=>M.to===b.to&&M.className===b.className&&M.style===b.style&&M.children===b.children));const ur=_.div`
|
|
4076
4076
|
display: flex;
|
|
4077
4077
|
flex-direction: column;
|
|
4078
4078
|
`,fr=_.div`
|