@nice2dev/ui 1.4.15 → 1.4.17

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/NiceAlert-RVTgQxCE.cjs +1 -0
  3. package/dist/NiceDataGrid-DpSADM9L.cjs +10 -0
  4. package/dist/NiceForm-CzH9IPmZ.cjs +1 -0
  5. package/dist/{NiceHtmlEditor-By7R1wRo.cjs → NiceHtmlEditor-BEWNA_UI.cjs} +1 -1
  6. package/dist/NiceLoginForm-Bkm5j80r.cjs +1 -0
  7. package/dist/{NiceMention-i7n2BoMw.cjs → NiceMention-CrJJtDJx.cjs} +1 -1
  8. package/dist/{NiceModuleLifecyclePanel-DVHQuhc-.cjs → NiceModuleLifecyclePanel-CxVQOIIA.cjs} +1 -1
  9. package/dist/{NicePagination-D9JguOl0.cjs → NicePagination-CnKYyKI5.cjs} +1 -1
  10. package/dist/{NicePivotGrid-B_7iQJys.cjs → NicePivotGrid-BshofJh1.cjs} +1 -1
  11. package/dist/NiceSavedQueryPanel-C40zmo8O.cjs +587 -0
  12. package/dist/{NiceScheduler-B2DamQ_L.cjs → NiceScheduler-CSWtLS5G.cjs} +1 -1
  13. package/dist/{core-lazy-ChKRuEPb.cjs → core-lazy-DUKT6R8d.cjs} +1 -1
  14. package/dist/data/NiceRowEditDialog.mjs +42 -35
  15. package/dist/data/NiceTreeGrid.mjs +512 -474
  16. package/dist/data.cjs +1 -1
  17. package/dist/data.d.ts +30 -3
  18. package/dist/editors/forms/NiceForm.mjs +55 -52
  19. package/dist/editors/inputs/NiceRadioGroup.mjs +12 -12
  20. package/dist/editors/inputs/NiceSelect.mjs +51 -51
  21. package/dist/editors.cjs +1 -1
  22. package/dist/feedback.cjs +1 -1
  23. package/dist/index.cjs +101 -101
  24. package/dist/index.d.ts +31 -4
  25. package/dist/lazy.cjs +1 -1
  26. package/dist/navigation.cjs +1 -1
  27. package/dist/{no-code-CN_q6TcB.cjs → no-code-DPc82kyy.cjs} +11 -11
  28. package/dist/no-code.cjs +1 -1
  29. package/package.json +4 -4
  30. package/dist/NiceDataGrid-B1AOjgjm.cjs +0 -10
  31. package/dist/NiceForm-fmePSeA9.cjs +0 -1
  32. package/dist/NiceLoginForm-C2-WgRn0.cjs +0 -1
  33. package/dist/NiceSavedQueryPanel-ChY4HwpM.cjs +0 -587
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("@nice2dev/ui-core"),s=require("react"),W=require("./NiceButton-DzCqkG5a.cjs"),B={info:e.jsx(m.NiceIcon,{name:"info",size:20}),success:e.jsx(m.NiceIcon,{name:"success",size:20}),warning:e.jsx(m.NiceIcon,{name:"warning",size:20}),error:e.jsx(m.NiceIcon,{name:"error",size:20})},U=({variant:t="info",title:i,children:a,closable:c,onClose:n,icon:r,size:d="md",className:l,style:u,displayStyle:h,testId:f,"data-testid":_})=>{const{t:N}=m.useNiceTranslation(),o=m.useComponentDisplayClass("card",h);return e.jsxs("div",{className:`nice-alert nice-alert--${t} nice-alert--${d} nice-alert--ds-${o} ${l||""}`,style:u,role:"alert","data-testid":_??f,children:[e.jsx("div",{className:`nice-alert__icon nice-alert__icon--${t}`,children:r||B[t]}),e.jsxs("div",{className:"nice-alert__content",children:[i&&e.jsx("div",{className:"nice-alert__title",children:i}),e.jsx("div",{children:a})]}),c&&e.jsx("button",{type:"button",className:"nice-alert__close",onClick:n,"aria-label":N("alert.close","Close"),children:e.jsx(m.NiceIcon,{name:"close",size:16})})]})},K=({open:t,onClose:i,title:a,position:c="right",size:n="md",children:r,footer:d,transitionDuration:l,className:u,style:h,displayStyle:f,testId:_,"data-testid":N})=>{const o=m.useComponentDisplayStyle("modal",f),v=m.useComponentDisplayClass("modal",f),{t:x}=m.useNiceTranslation(),g=s.useRef(null);return m.useOverlayFocus(g,{open:t,onClose:i}),s.useEffect(()=>{if(t)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[t]),t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"nice-drawer-overlay nice-drawer-overlay--visible",onMouseDown:j=>{j.target===j.currentTarget&&i()}}),e.jsxs("div",{ref:g,className:`nice-drawer nice-drawer--open nice-drawer--${c} nice-drawer--${n} nice-drawer--ds-${v} ${u||""}`,style:{...o,...h,...l!=null?{transitionDuration:`${l}ms`}:{}},role:"dialog","aria-modal":"true","aria-label":a,"data-testid":N??_,children:[a&&e.jsxs("div",{className:"nice-drawer__header",children:[e.jsx("h3",{className:"nice-drawer__title",children:a}),e.jsx("button",{type:"button",className:"nice-drawer__close",onClick:i,"aria-label":x("controls.close","Close"),children:e.jsx(m.NiceIcon,{name:"close",size:18})})]}),e.jsx("div",{className:"nice-drawer__body",children:r}),d&&e.jsx("div",{className:"nice-drawer__footer",children:d})]})]}):null},Y=({toasts:t,onDismiss:i,position:a="top-right"})=>{const{t:c}=m.useNiceTranslation(),n=s.useRef(null),r=s.useRef(null);m.useInputHints(n,[{intent:"back",label:c("toast.dismiss","Dismiss")}]);const d=s.useCallback(l=>{const u=n.current;if(!u||!l.contains(document.activeElement))return;const h=[...u.querySelectorAll(".nice-toast:not(.nice-toast--exiting)")],f=h.indexOf(l),_=h[f+1]??h[f-1];(_&&_!==l?_.querySelector("button"):r.current?.isConnected?r.current:null)?.focus()},[]);return s.useEffect(()=>{const l=n.current;if(!l)return;const u=h=>{const f=h.relatedTarget;f instanceof HTMLElement&&!l.contains(f)&&(r.current=f)};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[]),e.jsx("div",{ref:n,className:`nice-toast-container nice-toast-container--${a}`,role:"region","aria-label":c("toast.region","Notifications"),children:t.map(l=>e.jsx(G,{toast:l,onDismiss:i,onLeave:d},l.id))})},G=({toast:t,onDismiss:i,onLeave:a})=>{const{t:c}=m.useNiceTranslation(),n=s.useRef(null),[r,d]=s.useState(!1),[l,u]=s.useState(!1),[h,f]=s.useState(!1),_=l||h,N=s.useCallback(()=>{n.current&&a(n.current),d(!0)},[a]);return s.useEffect(()=>{if(_||r)return;const o=t.duration??4e3;if(o>0){const v=setTimeout(()=>d(!0),o);return()=>clearTimeout(v)}},[t.duration,_,r]),s.useEffect(()=>{if(r){const o=setTimeout(()=>i(t.id),200);return()=>clearTimeout(o)}},[r,t.id,i]),s.useEffect(()=>{const o=n.current;if(!o)return;const v=p=>{p.key==="Escape"&&!p.defaultPrevented&&(p.preventDefault(),N())},x=()=>u(!0),g=()=>u(!1),j=()=>f(!0),b=p=>{o.contains(p.relatedTarget)||f(!1)};return o.addEventListener("keydown",v),o.addEventListener("mouseenter",x),o.addEventListener("mouseleave",g),o.addEventListener("focusin",j),o.addEventListener("focusout",b),()=>{o.removeEventListener("keydown",v),o.removeEventListener("mouseenter",x),o.removeEventListener("mouseleave",g),o.removeEventListener("focusin",j),o.removeEventListener("focusout",b)}},[N]),e.jsxs("div",{ref:n,className:`nice-toast nice-toast--${t.variant} ${r?"nice-toast--exiting":""}`,role:"alert",style:{position:"relative"},children:[e.jsx("div",{className:"nice-toast__icon",children:B[t.variant]}),e.jsxs("div",{className:"nice-toast__content",children:[t.title&&e.jsx("div",{className:"nice-toast__title",children:t.title}),e.jsx("div",{className:"nice-toast__message",children:t.message}),t.action&&e.jsx("button",{type:"button",className:"nice-toast__action",onClick:()=>{t.action?.onClick(),N()},children:t.action.label})]}),e.jsx("button",{type:"button",className:"nice-toast__close",onClick:N,"aria-label":c("toast.close","Close"),children:e.jsx(m.NiceIcon,{name:"close",size:16})})]})};let J=0;function Q(){const[t,i]=s.useState([]),a=s.useCallback((n,r,d)=>{const l=`toast-${++J}`;return i(u=>[...u,{id:l,variant:n,message:r,title:d?.title,duration:d?.duration,action:d?.action}]),l},[]),c=s.useCallback(n=>{i(r=>r.filter(d=>d.id!==n))},[]);return{toasts:t,dismiss:c,info:(n,r)=>a("info",n,r),success:(n,r)=>a("success",n,r),warning:(n,r)=>a("warning",n,r),error:(n,r)=>a("error",n,r)}}function X({error:t,showRetry:i,retryLabel:a,title:c,onReset:n}){const{t:r}=m.useNiceTranslation();return e.jsxs("div",{className:"nice-error-boundary",role:"alert",children:[e.jsx("div",{className:"nice-error-boundary__icon",children:e.jsx(m.NiceIcon,{name:"warning",size:32})}),e.jsx("h2",{className:"nice-error-boundary__title",children:c??r("errorBoundary.somethingWentWrong","Something went wrong")}),e.jsx("p",{className:"nice-error-boundary__message",children:t.message}),i&&e.jsx("button",{type:"button",className:"nice-btn nice-btn--primary",onClick:n,children:a??r("errorBoundary.retry","Retry")})]})}const M=class M extends s.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null})}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,a){this.props.onError?.(i,a)}render(){if(this.state.hasError&&this.state.error){const{fallback:i,showRetry:a=!0,retryLabel:c,title:n}=this.props;return typeof i=="function"?i(this.state.error,this.handleReset):i||e.jsx(X,{error:this.state.error,showRetry:a,retryLabel:c,title:n,onReset:this.handleReset})}return this.props.children}};M.displayName="NiceErrorBoundary";let A=M;function Z(t){return window.addEventListener("online",t),window.addEventListener("offline",t),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",t)}}function ee(){return navigator.onLine}function se(){return!0}const ne=({message:t,variant:i="warning",icon:a,online:c,size:n="md",className:r,style:d,"data-testid":l})=>{const{t:u}=m.useNiceTranslation(),h=s.useSyncExternalStore(Z,ee,se);return c??h?null:e.jsxs("div",{className:`nice-offline-banner nice-offline-banner--${i} nice-offline-banner--${n} ${r||""}`,style:d,role:"alert","aria-live":"assertive","data-testid":l,children:[e.jsx("span",{className:"nice-offline-banner__icon",children:a??e.jsx(m.NiceIcon,{name:"wifi",size:18})}),e.jsx("span",{className:"nice-offline-banner__message",children:t??u("offlineBanner.message","You are offline. Some features may be unavailable.")})]})},te=({error:t,onRetry:i,retryLabel:a,title:c,autoRetrySeconds:n,variant:r="error",icon:d,size:l="md",className:u,style:h,"data-testid":f})=>{const{t:_}=m.useNiceTranslation(),N=a??_("retryPanel.retry","Retry"),o=c??_("retryPanel.operationFailed","Operation failed"),[v,x]=s.useState(n??0),g=s.useRef(void 0),j=typeof t=="string"?t:t.message,b=s.useCallback(()=>{x(n??0),i()},[i,n]);return s.useEffect(()=>{if(!(!n||n<=0))return x(n),g.current=setInterval(()=>{x(p=>p<=1?(clearInterval(g.current),i(),0):p-1)},1e3),()=>clearInterval(g.current)},[n,i]),e.jsxs("div",{className:`nice-retry-panel nice-retry-panel--${r} nice-retry-panel--${l} ${u||""}`,style:h,role:"alert","data-testid":f,children:[e.jsx("div",{className:"nice-retry-panel__icon",children:d??e.jsx(m.NiceIcon,{name:"warning",size:24})}),e.jsxs("div",{className:"nice-retry-panel__content",children:[e.jsx("div",{className:"nice-retry-panel__title",children:o}),e.jsx("p",{className:"nice-retry-panel__message",children:j})]}),e.jsxs("div",{className:"nice-retry-panel__actions",children:[e.jsx("button",{type:"button",className:"nice-btn nice-btn--primary nice-btn--sm",onClick:b,children:N}),n&&v>0&&e.jsx("span",{className:"nice-retry-panel__countdown",children:_("retryPanel.autoRetryInS","Auto-retry in {countdown}s").replace("{countdown}",String(v))})]})]})};function H({timeoutMs:t=1e4,slowThresholdMs:i=3e3,onTimeout:a,autoRetry:c=!1,autoRetryCount:n=3}={}){const[r,d]=s.useState(!1),[l,u]=s.useState(!1),[h,f]=s.useState(!1),[_,N]=s.useState(0),[o,v]=s.useState(0),x=s.useRef(null),g=s.useRef(null),j=s.useRef(null),b=s.useRef(0),p=s.useCallback(()=>{x.current&&clearTimeout(x.current),g.current&&clearTimeout(g.current),j.current&&clearInterval(j.current)},[]),C=s.useCallback(()=>{p(),d(!0),u(!1),f(!1),N(0),b.current=Date.now(),j.current=setInterval(()=>{N(Date.now()-b.current)},200),x.current=setTimeout(()=>{u(!0)},i),g.current=setTimeout(()=>{f(!0),d(!1),u(!1),p(),a?.()},t)},[p,i,t,a]),I=s.useCallback(()=>{p(),d(!1),u(!1)},[p]),T=s.useCallback(()=>{v(w=>w+1),f(!1),C()},[C]);return s.useEffect(()=>()=>p(),[p]),s.useEffect(()=>{if(c&&h&&o<n){const w=Math.pow(2,o)*1e3,k=setTimeout(()=>T(),w);return()=>clearTimeout(k)}},[c,n,h,o,T]),{isLoading:r,isSlow:l,isTimedOut:h,elapsed:_,retryCount:o,start:C,stop:I,retry:T}}const ie=({timeoutMs:t=1e4,slowThresholdMs:i=3e3,onTimeout:a,onRetry:c,autoRetry:n=!1,autoRetryCount:r=3,showProgress:d=!0,slowMessage:l,timeoutMessage:u,loading:h,children:f,size:_="md",className:N,style:o,"data-testid":v})=>{const{t:x}=m.useNiceTranslation(),{isSlow:g,isTimedOut:j,elapsed:b,start:p,stop:C,retry:I}=H({timeoutMs:t,slowThresholdMs:i,onTimeout:a,autoRetry:n,autoRetryCount:r}),T=s.useRef(p);T.current=p;const w=s.useRef(C);w.current=C,s.useEffect(()=>{h?T.current():w.current()},[h]);const k=()=>{I(),c?.()};if(!h)return e.jsx(e.Fragment,{children:f});if(j)return e.jsxs("div",{className:`nice-timeout-feedback nice-timeout-feedback--timeout nice-timeout-feedback--${_} ${N??""}`,style:o,role:"alert","data-testid":v,children:[e.jsx("p",{className:"nice-timeout-feedback__message",children:u??x("timeoutFeedback.timeout","The operation timed out. Please try again.")}),e.jsx(W.NiceButton,{size:"sm",className:"nice-timeout-feedback__retry-btn",onClick:k,children:x("timeoutFeedback.retry","Try again")})]});const E=Math.min(100,b/t*100);return e.jsxs("div",{className:`nice-timeout-feedback nice-timeout-feedback--${_} ${g?"nice-timeout-feedback--slow":""} ${N??""}`,style:o,role:"status","aria-busy":"true","data-testid":v,children:[e.jsx("div",{className:"nice-timeout-feedback__spinner","aria-hidden":"true"}),g&&e.jsx("p",{className:"nice-timeout-feedback__slow-msg",children:l??x("timeoutFeedback.slow","This is taking longer than usual…")}),d&&e.jsx("div",{className:"nice-timeout-feedback__progress",role:"progressbar","aria-label":x("timeoutFeedback.progress","Time until timeout"),"aria-valuenow":Math.round(E),"aria-valuemin":0,"aria-valuemax":100,children:e.jsx("div",{className:"nice-timeout-feedback__progress-bar",style:{width:`${E}%`}})})]})},re=Object.assign(s.forwardRef(({visible:t,onAcceptAll:i,onRejectAll:a,onSave:c,categories:n=["necessary","analytics","marketing","preferences"],defaults:r,position:d="bottom",size:l="md",policyUrl:u,showDetails:h=!1,className:f,style:_,id:N,testId:o,"data-testid":v,...x},g)=>{const j=m.useControlId(N),{t:b}=m.useNiceTranslation(),[p,C]=s.useState(!0),I=t??p,[T,w]=s.useState(h),[k,E]=s.useState(()=>{const y={necessary:!0,analytics:!1,marketing:!1,preferences:!1};return r&&Object.assign(y,r),y.necessary=!0,y}),P={necessary:b("cookie.necessary","Necessary"),analytics:b("cookie.analytics","Analytics"),marketing:b("cookie.marketing","Marketing"),preferences:b("cookie.preferences","Preferences")},L={necessary:b("cookie.necessaryDesc","Required for the website to function. Cannot be disabled."),analytics:b("cookie.analyticsDesc","Help us understand how visitors interact with the website."),marketing:b("cookie.marketingDesc","Used to deliver relevant advertisements."),preferences:b("cookie.preferencesDesc","Allow the website to remember your choices.")},O=s.useCallback(()=>{const y={necessary:!0,analytics:!0,marketing:!0,preferences:!0};i?.(),c?.(y),C(!1)},[i,c]),R=s.useCallback(()=>{const y={necessary:!0,analytics:!1,marketing:!1,preferences:!1};a?.(),c?.(y),C(!1)},[a,c]),z=s.useCallback(()=>{c?.({...k,necessary:!0}),C(!1)},[k,c]),$=s.useRef(null);m.useOverlayFocus($,{open:I});const q=s.useCallback(y=>{$.current=y,typeof g=="function"?g(y):g&&(g.current=y)},[g]);return I?e.jsx("div",{ref:q,id:j,className:`nice-cookie-consent nice-cookie-consent--${d} nice-cookie-consent--${l} ${f??""}`,style:_,role:"dialog","aria-label":b("cookie.label","Cookie Consent"),"aria-modal":"true","data-testid":v??o,...x,children:e.jsxs("div",{className:"nice-cookie-consent__content",children:[e.jsxs("p",{className:"nice-cookie-consent__message",children:[b("cookie.message","We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies."),u&&e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:u,className:"nice-cookie-consent__link",target:"_blank",rel:"noopener noreferrer",children:b("cookie.learnMore","Learn more")})]})]}),T&&e.jsx("div",{className:"nice-cookie-consent__details",children:n.map(y=>e.jsxs("label",{className:"nice-cookie-consent__category",children:[e.jsx("input",{type:"checkbox",checked:k[y],disabled:y==="necessary",onChange:F=>E(D=>({...D,[y]:F.target.checked})),className:"nice-cookie-consent__checkbox"}),e.jsxs("div",{className:"nice-cookie-consent__cat-info",children:[e.jsx("strong",{children:P[y]}),e.jsx("span",{className:"nice-cookie-consent__cat-desc",children:L[y]})]})]},y))}),e.jsxs("div",{className:"nice-cookie-consent__actions",children:[!T&&e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--details",onClick:()=>w(!0),children:b("cookie.customize","Customize")}),T&&e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--save",onClick:z,children:b("cookie.savePreferences","Save preferences")}),e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--reject",onClick:R,children:b("cookie.rejectAll","Reject all")}),e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--accept",onClick:O,children:b("cookie.acceptAll","Accept all")})]})]})}):null}),{displayName:"NiceCookieConsent"}),ce=Object.assign(s.forwardRef(({onSubmit:t,onForgotPassword:i,onRegister:a,loading:c=!1,error:n,variant:r="primary",size:d="md",showRememberMe:l=!0,showForgotPassword:u=!0,showRegister:h=!1,title:f,logo:_,usernameLabel:N,passwordLabel:o,usernamePlaceholder:v,passwordPlaceholder:x,className:g,style:j,id:b,testId:p,"data-testid":C,...I},T)=>{const w=m.useControlId(b),{t:k}=m.useNiceTranslation(),[E,P]=s.useState(""),[L,O]=s.useState(""),[R,z]=s.useState(!1),[$,q]=s.useState(!1),y=`${w}-user`,F=`${w}-pass`,D=`${w}-remember`,V=s.useCallback(S=>{S.preventDefault(),!c&&t?.({username:E,password:L,rememberMe:R})},[c,E,L,R,t]);return e.jsxs("form",{ref:T,id:w,className:`nice-login nice-login--${r} nice-login--${d} ${g??""}`,style:j,onSubmit:V,noValidate:!0,"data-testid":C??p,...I,children:[_&&e.jsx("div",{className:"nice-login__logo",children:_}),f&&e.jsx("h2",{className:"nice-login__title",children:f??k("login.title","Sign In")}),n&&e.jsx("div",{className:"nice-login__error",role:"alert",children:n}),e.jsxs("div",{className:"nice-login__field",children:[e.jsx("label",{htmlFor:y,className:"nice-login__label",children:N??k("login.username","Username")}),e.jsx("input",{id:y,className:"nice-login__input",type:"text",value:E,onChange:S=>P(S.target.value),placeholder:v??k("login.usernamePlaceholder","Enter your username"),autoComplete:"username",required:!0,disabled:c,"aria-required":"true"})]}),e.jsxs("div",{className:"nice-login__field",children:[e.jsx("label",{htmlFor:F,className:"nice-login__label",children:o??k("login.password","Password")}),e.jsxs("div",{className:"nice-login__password-wrap",children:[e.jsx("input",{id:F,className:"nice-login__input",type:$?"text":"password",value:L,onChange:S=>O(S.target.value),placeholder:x??k("login.passwordPlaceholder","Enter your password"),autoComplete:"current-password",required:!0,disabled:c,"aria-required":"true"}),e.jsx("button",{type:"button",className:"nice-login__toggle-password",onClick:()=>q(!$),"aria-label":$?k("login.hidePassword","Hide password"):k("login.showPassword","Show password"),tabIndex:-1,children:e.jsx(m.NiceIcon,{name:$?"eye-off":"eye",size:16})})]})]}),e.jsxs("div",{className:"nice-login__options",children:[l&&e.jsxs("label",{className:"nice-login__remember",htmlFor:D,children:[e.jsx("input",{id:D,type:"checkbox",checked:R,onChange:S=>z(S.target.checked),disabled:c}),e.jsx("span",{children:k("login.rememberMe","Remember me")})]}),u&&i&&e.jsx("button",{type:"button",className:"nice-login__forgot",onClick:i,disabled:c,children:k("login.forgotPassword","Forgot password?")})]}),e.jsx("button",{type:"submit",className:`nice-login__submit nice-login__submit--${r}`,disabled:c||!E||!L,children:c?k("login.loading","Signing in..."):k("login.submit","Sign In")}),h&&a&&e.jsxs("p",{className:"nice-login__register",children:[k("login.noAccount","Don't have an account?")," ",e.jsx("button",{type:"button",className:"nice-login__register-link",onClick:a,disabled:c,children:k("login.register","Register")})]})]})}),{displayName:"NiceLoginForm"});exports.NiceAlert=U;exports.NiceCookieConsent=re;exports.NiceDrawer=K;exports.NiceErrorBoundary=A;exports.NiceLoginForm=ce;exports.NiceOfflineBanner=ne;exports.NiceRetryPanel=te;exports.NiceTimeoutFeedback=ie;exports.NiceToastContainer=Y;exports.alertIcons=B;exports.useNiceTimeout=H;exports.useNiceToast=Q;