@nice2dev/ui 1.1.9 → 1.1.10

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 (77) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +17 -16
  3. package/dist/NiceCodeEditor-BfkH1bsZ.cjs +260 -0
  4. package/dist/NiceCodeEditor-CduGYggj.js +1179 -0
  5. package/dist/NiceColorPicker-CdUnhM-A.cjs +1 -0
  6. package/dist/NiceColorPicker-DpXwnDwL.js +598 -0
  7. package/dist/NiceConfirmDialog-B7aNRL2K.cjs +1 -0
  8. package/dist/NiceConfirmDialog-BdhWenrO.js +81 -0
  9. package/dist/NiceDataGrid-CVYEo_nv.cjs +10 -0
  10. package/dist/NiceDataGrid-D-rm4lu8.js +2217 -0
  11. package/dist/NiceDocumentViewer-BgcgLWJ3.cjs +180 -0
  12. package/dist/NiceDocumentViewer-sukmGhRx.js +672 -0
  13. package/dist/NiceForm-DVc0Xoly.js +4819 -0
  14. package/dist/NiceForm-qD_RKPYz.cjs +1 -0
  15. package/dist/NiceGantt-4UBd4uJ8.cjs +1 -0
  16. package/dist/NiceGantt-B_1lwEsp.js +328 -0
  17. package/dist/NiceHtmlEditor-Bce9Vwe1.cjs +10 -0
  18. package/dist/NiceHtmlEditor-CGRgcu2h.js +848 -0
  19. package/dist/NiceLoginForm-BTuQ0eKk.cjs +1 -0
  20. package/dist/NiceLoginForm-o1A-TBcp.js +736 -0
  21. package/dist/NiceMention-Dds9GQzk.cjs +430 -0
  22. package/dist/NiceMention-DlLXWddO.js +11268 -0
  23. package/dist/NiceModal-Dr1e3nQZ.cjs +1 -0
  24. package/dist/NiceModal-sihGCfDy.js +95 -0
  25. package/dist/NiceModuleLifecyclePanel-Du7G3-RG.js +7053 -0
  26. package/dist/NiceModuleLifecyclePanel-js1p7LIY.cjs +1 -0
  27. package/dist/NicePagination-D44waj9o.cjs +1 -0
  28. package/dist/NicePagination-DdxH8KMG.js +179 -0
  29. package/dist/NicePivotGrid-B2YHP3Z6.js +1183 -0
  30. package/dist/NicePivotGrid-BtVUWiud.cjs +152 -0
  31. package/dist/NiceSavedQueryPanel-C0A-eoYN.js +5142 -0
  32. package/dist/NiceSavedQueryPanel-ZrilZRtf.cjs +586 -0
  33. package/dist/NiceScheduler-KSzaUQxC.js +1693 -0
  34. package/dist/NiceScheduler-O3AwmdGG.cjs +5 -0
  35. package/dist/NiceSelect-BCbWtu1v.js +433 -0
  36. package/dist/NiceSelect-BqtiQbfD.cjs +1 -0
  37. package/dist/NiceWindow-BU1Ce7gS.js +1623 -0
  38. package/dist/NiceWindow-jjdE6vGy.cjs +1 -0
  39. package/dist/charts-C44vJber.cjs +768 -0
  40. package/dist/charts-XVlDwU0y.js +4732 -0
  41. package/dist/charts.cjs +1 -1
  42. package/dist/charts.mjs +8 -8
  43. package/dist/core-BxiH7vkV.cjs +1 -0
  44. package/dist/core-DMV6_SEE.js +795 -0
  45. package/dist/data-branching-oEH04O3i.js +6273 -0
  46. package/dist/data-branching-wmsbLNfa.cjs +1 -0
  47. package/dist/data-branching.cjs +1 -1
  48. package/dist/data-branching.mjs +1 -1
  49. package/dist/data.cjs +1 -1
  50. package/dist/data.d.ts +2 -2
  51. package/dist/data.mjs +3 -3
  52. package/dist/devops-Bt6EsfPa.cjs +17 -0
  53. package/dist/devops-CnZQ1rU5.js +8312 -0
  54. package/dist/devops.cjs +1 -1
  55. package/dist/devops.mjs +1 -1
  56. package/dist/editors.cjs +1 -1
  57. package/dist/editors.d.ts +2 -1
  58. package/dist/editors.mjs +7 -7
  59. package/dist/feedback.cjs +1 -1
  60. package/dist/feedback.mjs +3 -3
  61. package/dist/index.cjs +142 -142
  62. package/dist/index.d.ts +45 -26
  63. package/dist/index.mjs +7480 -7459
  64. package/dist/lazy.cjs +1 -1
  65. package/dist/lazy.mjs +24 -24
  66. package/dist/navigation.cjs +1 -1
  67. package/dist/navigation.d.ts +4 -4
  68. package/dist/navigation.mjs +69 -69
  69. package/dist/no-code-4GtIBr6f.js +7503 -0
  70. package/dist/no-code-Bdwh1vyS.cjs +332 -0
  71. package/dist/no-code.cjs +1 -1
  72. package/dist/no-code.mjs +1 -1
  73. package/dist/overlays.cjs +1 -1
  74. package/dist/overlays.mjs +102 -102
  75. package/dist/pickerCommons-31hyz1gs.js +1122 -0
  76. package/dist/pickerCommons-BifIkPdk.cjs +1 -0
  77. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),x=require("@nice2dev/ui-core"),i=require("react"),F={info:e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})}),success:e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})}),warning:e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),error:e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})})},U=({variant:s="info",title:t,children:a,closable:r,onClose:n,icon:c,size:l="md",className:h,style:u,displayStyle:p})=>{const b=x.useComponentDisplayClass("card",p);return e.jsxs("div",{className:`nice-alert nice-alert--${s} nice-alert--${l} nice-alert--ds-${b} ${h||""}`,style:u,role:"alert",children:[e.jsx("div",{className:`nice-alert__icon nice-alert__icon--${s}`,children:c||F[s]}),e.jsxs("div",{className:"nice-alert__content",children:[t&&e.jsx("div",{className:"nice-alert__title",children:t}),e.jsx("div",{children:a})]}),r&&e.jsx("button",{type:"button",className:"nice-alert__close",onClick:n,"aria-label":"Close",children:e.jsx(x.NiceIcon,{name:"close",size:16})})]})},W=({open:s,onClose:t,title:a,position:r="right",size:n="md",children:c,footer:l,transitionDuration:h,className:u,style:p,displayStyle:b})=>{const N=x.useComponentDisplayStyle("modal",b),g=x.useComponentDisplayClass("modal",b),{t:_}=x.useNiceTranslation(),j=i.useRef(null);return x.useFocusTrap(j,s),i.useEffect(()=>{if(!s)return;const f=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",f),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",f),document.body.style.overflow=""}},[s,t]),s?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"nice-drawer-overlay",onMouseDown:f=>{f.target===f.currentTarget&&t()}}),e.jsxs("div",{ref:j,className:`nice-drawer nice-drawer--${r} nice-drawer--${n} nice-drawer--ds-${g} ${u||""}`,style:{...N,...p,...h!=null?{transitionDuration:`${h}ms`}:{}},role:"dialog","aria-modal":"true","aria-label":a,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:t,"aria-label":_("controls.close","Close"),children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]}),e.jsx("div",{className:"nice-drawer__body",children:c}),l&&e.jsx("div",{className:"nice-drawer__footer",children:l})]})]}):null},Y=({toasts:s,onDismiss:t,position:a="top-right"})=>e.jsx("div",{className:`nice-toast-container nice-toast-container--${a}`,children:s.map(r=>e.jsx(G,{toast:r,onDismiss:t},r.id))}),G=({toast:s,onDismiss:t})=>{const[a,r]=i.useState(!1);return i.useEffect(()=>{if(!s.duration&&s.duration!==0){const n=setTimeout(()=>r(!0),4e3);return()=>clearTimeout(n)}if(s.duration>0){const n=setTimeout(()=>r(!0),s.duration);return()=>clearTimeout(n)}},[s.duration]),i.useEffect(()=>{if(a){const n=setTimeout(()=>t(s.id),200);return()=>clearTimeout(n)}},[a,s.id,t]),e.jsxs("div",{className:`nice-toast nice-toast--${s.variant} ${a?"nice-toast--exiting":""}`,role:"alert",style:{position:"relative"},children:[e.jsx("div",{className:"nice-toast__icon",children:F[s.variant]}),e.jsxs("div",{className:"nice-toast__content",children:[s.title&&e.jsx("div",{className:"nice-toast__title",children:s.title}),e.jsx("div",{className:"nice-toast__message",children:s.message})]}),e.jsx("button",{type:"button",className:"nice-toast__close",onClick:()=>r(!0),"aria-label":"Close",children:e.jsx(x.NiceIcon,{name:"close",size:16})})]})};let J=0;function K(){const[s,t]=i.useState([]),a=i.useCallback((n,c,l)=>{const h=`toast-${++J}`;return t(u=>[...u,{id:h,variant:n,message:c,title:l?.title,duration:l?.duration}]),h},[]),r=i.useCallback(n=>{t(c=>c.filter(l=>l.id!==n))},[]);return{toasts:s,dismiss:r,info:(n,c)=>a("info",n,c),success:(n,c)=>a("success",n,c),warning:(n,c)=>a("warning",n,c),error:(n,c)=>a("error",n,c)}}const M=class M extends i.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null})}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a)}render(){if(this.state.hasError&&this.state.error){const{fallback:t,showRetry:a=!0,retryLabel:r="Retry",title:n="Something went wrong"}=this.props;return typeof t=="function"?t(this.state.error,this.handleReset):t||e.jsxs("div",{className:"nice-error-boundary",role:"alert",children:[e.jsx("div",{className:"nice-error-boundary__icon",children:e.jsx(x.NiceIcon,{name:"warning",size:32})}),e.jsx("h2",{className:"nice-error-boundary__title",children:n}),e.jsx("p",{className:"nice-error-boundary__message",children:this.state.error.message}),a&&e.jsx("button",{type:"button",className:"nice-btn nice-btn--primary",onClick:this.handleReset,children:r})]})}return this.props.children}};M.displayName="NiceErrorBoundary";let P=M;function Q(s){return window.addEventListener("online",s),window.addEventListener("offline",s),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",s)}}function X(){return navigator.onLine}function Z(){return!0}const ee=({message:s="You are offline. Some features may be unavailable.",variant:t="warning",icon:a,size:r="md",className:n,style:c,"data-testid":l})=>i.useSyncExternalStore(Q,X,Z)?null:e.jsxs("div",{className:`nice-offline-banner nice-offline-banner--${t} nice-offline-banner--${r} ${n||""}`,style:c,role:"alert","aria-live":"assertive","data-testid":l,children:[e.jsx("span",{className:"nice-offline-banner__icon",children:a??e.jsx(x.NiceIcon,{name:"wifi",size:18})}),e.jsx("span",{className:"nice-offline-banner__message",children:s})]}),se=({error:s,onRetry:t,retryLabel:a="Retry",title:r="Operation failed",autoRetrySeconds:n,variant:c="error",icon:l,size:h="md",className:u,style:p,"data-testid":b})=>{const[N,g]=i.useState(n??0),_=i.useRef(void 0),j=typeof s=="string"?s:s.message,f=i.useCallback(()=>{g(n??0),t()},[t,n]);return i.useEffect(()=>{if(!(!n||n<=0))return g(n),_.current=setInterval(()=>{g(o=>o<=1?(clearInterval(_.current),t(),0):o-1)},1e3),()=>clearInterval(_.current)},[n,t]),e.jsxs("div",{className:`nice-retry-panel nice-retry-panel--${c} nice-retry-panel--${h} ${u||""}`,style:p,role:"alert","data-testid":b,children:[e.jsx("div",{className:"nice-retry-panel__icon",children:l??e.jsx(x.NiceIcon,{name:"warning",size:24})}),e.jsxs("div",{className:"nice-retry-panel__content",children:[e.jsx("div",{className:"nice-retry-panel__title",children:r}),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:f,children:a}),n&&N>0&&e.jsxs("span",{className:"nice-retry-panel__countdown",children:["Auto-retry in ",N,"s"]})]})]})};function B({timeoutMs:s=1e4,slowThresholdMs:t=3e3,onTimeout:a,autoRetry:r=!1,autoRetryCount:n=3}={}){const[c,l]=i.useState(!1),[h,u]=i.useState(!1),[p,b]=i.useState(!1),[N,g]=i.useState(0),[_,j]=i.useState(0),f=i.useRef(null),o=i.useRef(null),C=i.useRef(null),y=i.useRef(0),k=i.useCallback(()=>{f.current&&clearTimeout(f.current),o.current&&clearTimeout(o.current),C.current&&clearInterval(C.current)},[]),v=i.useCallback(()=>{k(),l(!0),u(!1),b(!1),g(0),y.current=Date.now(),C.current=setInterval(()=>{g(Date.now()-y.current)},200),f.current=setTimeout(()=>{u(!0)},t),o.current=setTimeout(()=>{b(!0),l(!1),u(!1),k(),a?.()},s)},[k,t,s,a]),T=i.useCallback(()=>{k(),l(!1),u(!1)},[k]),d=i.useCallback(()=>{j(w=>w+1),b(!1),v()},[v]);return i.useEffect(()=>()=>k(),[k]),i.useEffect(()=>{if(r&&p&&_<n){const w=Math.pow(2,_)*1e3,S=setTimeout(()=>d(),w);return()=>clearTimeout(S)}},[r,n,p,_,d]),{isLoading:c,isSlow:h,isTimedOut:p,elapsed:N,retryCount:_,start:v,stop:T,retry:d}}const ne=({timeoutMs:s=1e4,slowThresholdMs:t=3e3,onTimeout:a,onRetry:r,autoRetry:n=!1,autoRetryCount:c=3,showProgress:l=!0,slowMessage:h="This is taking longer than usual…",timeoutMessage:u="The operation timed out. Please try again.",loading:p,children:b,size:N="md",className:g,style:_,"data-testid":j})=>{const{isSlow:f,isTimedOut:o,elapsed:C,retry:y}=B({timeoutMs:s,slowThresholdMs:t,onTimeout:a,autoRetry:n,autoRetryCount:c}),k=()=>{y(),r?.()};if(!p)return e.jsx(e.Fragment,{children:b});if(o)return e.jsxs("div",{className:`nice-timeout-feedback nice-timeout-feedback--timeout nice-timeout-feedback--${N} ${g??""}`,style:_,role:"alert","data-testid":j,children:[e.jsx("p",{className:"nice-timeout-feedback__message",children:u}),e.jsx("button",{className:"nice-timeout-feedback__retry-btn",onClick:k,type:"button",children:"Try again"})]});const v=Math.min(100,C/s*100);return e.jsxs("div",{className:`nice-timeout-feedback nice-timeout-feedback--${N} ${f?"nice-timeout-feedback--slow":""} ${g??""}`,style:_,"data-testid":j,children:[e.jsx("div",{className:"nice-timeout-feedback__spinner","aria-busy":"true"}),f&&e.jsx("p",{className:"nice-timeout-feedback__slow-msg",children:h}),l&&e.jsx("div",{className:"nice-timeout-feedback__progress",role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,children:e.jsx("div",{className:"nice-timeout-feedback__progress-bar",style:{width:`${v}%`}})})]})},O=i.forwardRef(({visible:s,onAcceptAll:t,onRejectAll:a,onSave:r,categories:n=["necessary","analytics","marketing","preferences"],defaults:c,position:l="bottom",size:h="md",policyUrl:u,showDetails:p=!1,className:b,style:N,id:g,..._},j)=>{const f=x.useControlId(g),{t:o}=x.useNiceTranslation(),[C,y]=i.useState(!0),k=s??C,[v,T]=i.useState(p),[d,w]=i.useState(()=>{const m={necessary:!0,analytics:!1,marketing:!1,preferences:!1};return c&&Object.assign(m,c),m.necessary=!0,m}),S={necessary:o("cookie.necessary","Necessary"),analytics:o("cookie.analytics","Analytics"),marketing:o("cookie.marketing","Marketing"),preferences:o("cookie.preferences","Preferences")},I={necessary:o("cookie.necessaryDesc","Required for the website to function. Cannot be disabled."),analytics:o("cookie.analyticsDesc","Help us understand how visitors interact with the website."),marketing:o("cookie.marketingDesc","Used to deliver relevant advertisements."),preferences:o("cookie.preferencesDesc","Allow the website to remember your choices.")},R=i.useCallback(()=>{const m={necessary:!0,analytics:!0,marketing:!0,preferences:!0};t?.(),r?.(m),y(!1)},[t,r]),E=i.useCallback(()=>{const m={necessary:!0,analytics:!1,marketing:!1,preferences:!1};a?.(),r?.(m),y(!1)},[a,r]),D=i.useCallback(()=>{r?.({...d,necessary:!0}),y(!1)},[d,r]);return k?e.jsx("div",{ref:j,id:f,className:`nice-cookie-consent nice-cookie-consent--${l} nice-cookie-consent--${h} ${b??""}`,style:N,role:"dialog","aria-label":o("cookie.label","Cookie Consent"),"aria-modal":"true",..._,children:e.jsxs("div",{className:"nice-cookie-consent__content",children:[e.jsxs("p",{className:"nice-cookie-consent__message",children:[o("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:o("cookie.learnMore","Learn more")})]})]}),v&&e.jsx("div",{className:"nice-cookie-consent__details",children:n.map(m=>e.jsxs("label",{className:"nice-cookie-consent__category",children:[e.jsx("input",{type:"checkbox",checked:d[m],disabled:m==="necessary",onChange:z=>w(L=>({...L,[m]:z.target.checked})),className:"nice-cookie-consent__checkbox"}),e.jsxs("div",{className:"nice-cookie-consent__cat-info",children:[e.jsx("strong",{children:S[m]}),e.jsx("span",{className:"nice-cookie-consent__cat-desc",children:I[m]})]})]},m))}),e.jsxs("div",{className:"nice-cookie-consent__actions",children:[!v&&e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--details",onClick:()=>T(!0),children:o("cookie.customize","Customize")}),v&&e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--save",onClick:D,children:o("cookie.savePreferences","Save preferences")}),e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--reject",onClick:E,children:o("cookie.rejectAll","Reject all")}),e.jsx("button",{type:"button",className:"nice-cookie-consent__btn nice-cookie-consent__btn--accept",onClick:R,children:o("cookie.acceptAll","Accept all")})]})]})}):null});O.displayName="NiceCookieConsent";const H=i.forwardRef(({onSubmit:s,onForgotPassword:t,onRegister:a,loading:r=!1,error:n,variant:c="primary",size:l="md",showRememberMe:h=!0,showForgotPassword:u=!0,showRegister:p=!1,title:b,logo:N,usernameLabel:g,passwordLabel:_,usernamePlaceholder:j,passwordPlaceholder:f,className:o,style:C,id:y,...k},v)=>{const T=x.useControlId(y),{t:d}=x.useNiceTranslation(),[w,S]=i.useState(""),[I,R]=i.useState(""),[E,D]=i.useState(!1),[m,z]=i.useState(!1),L=`${T}-user`,A=`${T}-pass`,q=`${T}-remember`,V=i.useCallback($=>{$.preventDefault(),!r&&s?.({username:w,password:I,rememberMe:E})},[r,w,I,E,s]);return e.jsxs("form",{ref:v,id:T,className:`nice-login nice-login--${c} nice-login--${l} ${o??""}`,style:C,onSubmit:V,noValidate:!0,...k,children:[N&&e.jsx("div",{className:"nice-login__logo",children:N}),b&&e.jsx("h2",{className:"nice-login__title",children:b??d("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:L,className:"nice-login__label",children:g??d("login.username","Username")}),e.jsx("input",{id:L,className:"nice-login__input",type:"text",value:w,onChange:$=>S($.target.value),placeholder:j??d("login.usernamePlaceholder","Enter your username"),autoComplete:"username",required:!0,disabled:r,"aria-required":"true"})]}),e.jsxs("div",{className:"nice-login__field",children:[e.jsx("label",{htmlFor:A,className:"nice-login__label",children:_??d("login.password","Password")}),e.jsxs("div",{className:"nice-login__password-wrap",children:[e.jsx("input",{id:A,className:"nice-login__input",type:m?"text":"password",value:I,onChange:$=>R($.target.value),placeholder:f??d("login.passwordPlaceholder","Enter your password"),autoComplete:"current-password",required:!0,disabled:r,"aria-required":"true"}),e.jsx("button",{type:"button",className:"nice-login__toggle-password",onClick:()=>z(!m),"aria-label":m?d("login.hidePassword","Hide password"):d("login.showPassword","Show password"),tabIndex:-1,children:e.jsx(x.NiceIcon,{name:m?"eye-off":"eye",size:16})})]})]}),e.jsxs("div",{className:"nice-login__options",children:[h&&e.jsxs("label",{className:"nice-login__remember",htmlFor:q,children:[e.jsx("input",{id:q,type:"checkbox",checked:E,onChange:$=>D($.target.checked),disabled:r}),e.jsx("span",{children:d("login.rememberMe","Remember me")})]}),u&&t&&e.jsx("button",{type:"button",className:"nice-login__forgot",onClick:t,disabled:r,children:d("login.forgotPassword","Forgot password?")})]}),e.jsx("button",{type:"submit",className:`nice-login__submit nice-login__submit--${c}`,disabled:r||!w||!I,children:r?d("login.loading","Signing in..."):d("login.submit","Sign In")}),p&&a&&e.jsxs("p",{className:"nice-login__register",children:[d("login.noAccount","Don't have an account?")," ",e.jsx("button",{type:"button",className:"nice-login__register-link",onClick:a,disabled:r,children:d("login.register","Register")})]})]})});H.displayName="NiceLoginForm";exports.NiceAlert=U;exports.NiceCookieConsent=O;exports.NiceDrawer=W;exports.NiceErrorBoundary=P;exports.NiceLoginForm=H;exports.NiceOfflineBanner=ee;exports.NiceRetryPanel=se;exports.NiceTimeoutFeedback=ne;exports.NiceToastContainer=Y;exports.alertIcons=F;exports.useNiceTimeout=B;exports.useNiceToast=K;