ui-mathilde-web 0.12.2 → 0.12.3

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.
@@ -490,7 +490,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
490
490
  after:w-4 after:rounded-full
491
491
  after:border after:transition-all after:content-['']
492
492
  peer-checked:after:translate-x-full
493
- dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":y}})]}),N=v&&f.jsx("span",{className:k,children:v});return l==="left"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C]}):l==="both"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C,x||N]}):f.jsxs("div",{className:"flex items-center gap-2",children:[C,x||N]})}const DD={"tag-status-active":"Tag-module__tag-status-active__sxB2B",tagStatusActive:"Tag-module__tag-status-active__sxB2B","tag-status-in-use":"Tag-module__tag-status-in-use__MxP6E",tagStatusInUse:"Tag-module__tag-status-in-use__MxP6E","tag-status-error":"Tag-module__tag-status-error__l5Sfk",tagStatusError:"Tag-module__tag-status-error__l5Sfk","tag-status-processing":"Tag-module__tag-status-processing__YZMyD",tagStatusProcessing:"Tag-module__tag-status-processing__YZMyD","tag-ip":"Tag-module__tag-ip__08Rj3",tagIp:"Tag-module__tag-ip__08Rj3","tag-hash":"Tag-module__tag-hash__4DaiP",tagHash:"Tag-module__tag-hash__4DaiP","tag-custom":"Tag-module__tag-custom__viYxs",tagCustom:"Tag-module__tag-custom__viYxs","tag-default":"Tag-module__tag-default__vcE6f",tagDefault:"Tag-module__tag-default__vcE6f","tag-platform-fb":"Tag-module__tag-platform-fb__eD3vD",tagPlatformFb:"Tag-module__tag-platform-fb__eD3vD","tag-platform-gl":"Tag-module__tag-platform-gl__VRF6b",tagPlatformGl:"Tag-module__tag-platform-gl__VRF6b","tag-platform-tk":"Tag-module__tag-platform-tk__vMNxk",tagPlatformTk:"Tag-module__tag-platform-tk__vMNxk","tag-platform-mth":"Tag-module__tag-platform-mth__qnGxi",tagPlatformMth:"Tag-module__tag-platform-mth__qnGxi"},qd=({variant:t,children:e})=>f.jsx("span",{className:`inline-flex items-center text-[10px] rounded-[10px] px-2 py-1 ${DD[t.bg]}`,children:e}),MD={bg:"bg-gray-100",text:"text-gray-500"},ny=(t,e)=>{const n=e.normalize?e.normalize(t):t.toLowerCase().trim();return e.variants[n]??e.defaultVariant??MD},ry=({value:t,config:e})=>{if(e.multiple){const r=Array.isArray(t)?t.map(String):t?[String(t)]:[];return f.jsx("div",{className:"flex flex-wrap gap-1",children:r.map(s=>f.jsx(qd,{variant:ny(s,e),shape:e.shape,children:s},s))})}const n=String(t??"");return f.jsx(qd,{variant:ny(n,e),shape:e.shape,children:n})},ED=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h})=>{const[g,m]=W.useState(""),[p,b]=W.useState(1),[y,v]=W.useState(null),k=W.useMemo(()=>y?[...e].sort((T,D)=>{const j=T[y.key],E=D[y.key];return j==null||E==null?0:typeof j=="string"&&typeof E=="string"?y.direction==="asc"?j.localeCompare(E):E.localeCompare(j):y.direction==="asc"?Number(j)-Number(E):Number(E)-Number(j)}):e,[e,y]),w=W.useMemo(()=>g.trim()?k.filter(T=>t.some(D=>{const j=T[D.relation];return j!=null&&String(j).toLowerCase().includes(g.toLowerCase().trim())})):k,[k,g,t]),x=W.useMemo(()=>{const T=(p-1)*r,D=T+r;return w.slice(T,D)},[w,p,r]),C=Math.ceil(w.length/r),N=()=>{if(h){const T=x.length>0&&x.every(D=>c.has(D.id));h(!T)}},M=T=>{if(u){const D=c.has(T);u(T,!D)}},P=x.length>0&&x.every(T=>c.has(T.id)),S=c.size>0&&c.size<x.length,B=T=>{v(D=>!D||D.key!==T?{key:T,direction:"asc"}:{key:T,direction:D.direction==="asc"?"desc":"asc"})},A=(T,D)=>{const j=D[T.relation];if(T.isToggle){const E=!!j;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Jd,{checked:E,onChange:Y=>d==null?void 0:d({rowId:D.id,checked:Y,row:D,columnKey:T.relation}),disabled:!1}),T.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:E?T.toggleText.active:T.toggleText.inactive})]})}if(T.badgeConfig)return f.jsx(ry,{value:j,config:T.badgeConfig});if(T.cell)return T.cell(D);if(T.component){const E=T.component;return W.createElement(E,{row:D,value:j,...T.cellProps||{}})}return j??""};return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:Mf,placeholder:"Buscar",value:g,onChange:T=>m(T.target.value)})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(Ke,{children:[f.jsxs(Ke.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(Ke.HeadCell,{children:f.jsx(oa,{checked:P,ref:T=>{T&&(T.indeterminate=S)},onChange:N})},`${l}-checkbox`),t.map((T,D)=>f.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>T.sortable!==!1&&B(T.relation),children:f.jsxs("div",{className:"flex items-center",children:[T.header,T.sortable!==!1&&f.jsx("span",{children:(y==null?void 0:y.key)===T.relation?y.direction==="desc"?f.jsx(xs,{className:"size-4"}):f.jsx(Lc,{className:"size-4"}):f.jsx(xs,{className:"size-4 opacity-50"})})]})},`column-${D}-${T.relation}`))]}),f.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:x.map(T=>f.jsxs(Ke.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&f.jsx(Ke.Cell,{children:f.jsx(oa,{checked:c.has(T.id),onChange:()=>M(T.id)})},`${T.id}-checkbox`),t.map((D,j)=>f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:A(D,T)},`${T.id}-${j}`))]},T.id))})]})}),i&&C>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Qd,{currentPage:p,totalPages:C,onPageChange:b})})]})]})},TD={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},PD=({content:t})=>f.jsxs("div",{className:"mt-12",children:[f.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:TD["m-image-container"]}),f.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:f.jsx(Sr,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),ND=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return f.jsx("div",{className:"mb-5",children:f.jsxs("label",{className:na["checkbox-container"],children:[f.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),f.jsx("span",{className:na.checkmark}),r&&f.jsx("span",{children:r})]})})},sy=({validations:t})=>{const e=({isValid:r})=>f.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),n=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return f.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(e,{isValid:t[r]}),s]},r))})},jD=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},ID=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=jD();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),f.jsx(sy,{validations:a})]})},AD=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>f.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return f.jsxs("li",{className:`
493
+ dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":y}})]}),N=v&&f.jsx("span",{className:k,children:v});return l==="left"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C]}):l==="both"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C,x||N]}):f.jsxs("div",{className:"flex items-center gap-2",children:[C,x||N]})}const DD={"tag-status-active":"Tag-module__tag-status-active__sxB2B",tagStatusActive:"Tag-module__tag-status-active__sxB2B","tag-status-in-use":"Tag-module__tag-status-in-use__MxP6E",tagStatusInUse:"Tag-module__tag-status-in-use__MxP6E","tag-status-error":"Tag-module__tag-status-error__l5Sfk",tagStatusError:"Tag-module__tag-status-error__l5Sfk","tag-status-processing":"Tag-module__tag-status-processing__YZMyD",tagStatusProcessing:"Tag-module__tag-status-processing__YZMyD","tag-status-no-reach":"Tag-module__tag-status-no-reach__ooosC",tagStatusNoReach:"Tag-module__tag-status-no-reach__ooosC","tag-status-not-available":"Tag-module__tag-status-not-available__AqsM3",tagStatusNotAvailable:"Tag-module__tag-status-not-available__AqsM3","tag-ip":"Tag-module__tag-ip__08Rj3",tagIp:"Tag-module__tag-ip__08Rj3","tag-hash":"Tag-module__tag-hash__4DaiP",tagHash:"Tag-module__tag-hash__4DaiP","tag-custom":"Tag-module__tag-custom__viYxs",tagCustom:"Tag-module__tag-custom__viYxs","tag-default":"Tag-module__tag-default__vcE6f",tagDefault:"Tag-module__tag-default__vcE6f","tag-platform-fb":"Tag-module__tag-platform-fb__eD3vD",tagPlatformFb:"Tag-module__tag-platform-fb__eD3vD","tag-platform-gl":"Tag-module__tag-platform-gl__VRF6b",tagPlatformGl:"Tag-module__tag-platform-gl__VRF6b","tag-platform-tk":"Tag-module__tag-platform-tk__vMNxk",tagPlatformTk:"Tag-module__tag-platform-tk__vMNxk","tag-platform-mth":"Tag-module__tag-platform-mth__qnGxi",tagPlatformMth:"Tag-module__tag-platform-mth__qnGxi"},qd=({variant:t,children:e})=>f.jsx("span",{className:`inline-flex items-center text-[10px] rounded-[10px] px-2 py-1 ${DD[t.bg]}`,children:e}),MD={bg:"bg-gray-100",text:"text-gray-500"},ny=(t,e)=>{const n=e.normalize?e.normalize(t):t.toLowerCase().trim();return e.variants[n]??e.defaultVariant??MD},ry=({value:t,config:e})=>{if(e.multiple){const r=Array.isArray(t)?t.map(String):t?[String(t)]:[];return f.jsx("div",{className:"flex flex-wrap gap-1",children:r.map(s=>f.jsx(qd,{variant:ny(s,e),shape:e.shape,children:s},s))})}const n=String(t??"");return f.jsx(qd,{variant:ny(n,e),shape:e.shape,children:n})},ED=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h})=>{const[g,m]=W.useState(""),[p,b]=W.useState(1),[y,v]=W.useState(null),k=W.useMemo(()=>y?[...e].sort((T,D)=>{const j=T[y.key],E=D[y.key];return j==null||E==null?0:typeof j=="string"&&typeof E=="string"?y.direction==="asc"?j.localeCompare(E):E.localeCompare(j):y.direction==="asc"?Number(j)-Number(E):Number(E)-Number(j)}):e,[e,y]),w=W.useMemo(()=>g.trim()?k.filter(T=>t.some(D=>{const j=T[D.relation];return j!=null&&String(j).toLowerCase().includes(g.toLowerCase().trim())})):k,[k,g,t]),x=W.useMemo(()=>{const T=(p-1)*r,D=T+r;return w.slice(T,D)},[w,p,r]),C=Math.ceil(w.length/r),N=()=>{if(h){const T=x.length>0&&x.every(D=>c.has(D.id));h(!T)}},M=T=>{if(u){const D=c.has(T);u(T,!D)}},P=x.length>0&&x.every(T=>c.has(T.id)),S=c.size>0&&c.size<x.length,B=T=>{v(D=>!D||D.key!==T?{key:T,direction:"asc"}:{key:T,direction:D.direction==="asc"?"desc":"asc"})},A=(T,D)=>{const j=D[T.relation];if(T.isToggle){const E=!!j;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Jd,{checked:E,onChange:Y=>d==null?void 0:d({rowId:D.id,checked:Y,row:D,columnKey:T.relation}),disabled:!1}),T.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:E?T.toggleText.active:T.toggleText.inactive})]})}if(T.badgeConfig)return f.jsx(ry,{value:j,config:T.badgeConfig});if(T.cell)return T.cell(D);if(T.component){const E=T.component;return W.createElement(E,{row:D,value:j,...T.cellProps||{}})}return j??""};return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:Mf,placeholder:"Buscar",value:g,onChange:T=>m(T.target.value)})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(Ke,{children:[f.jsxs(Ke.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(Ke.HeadCell,{children:f.jsx(oa,{checked:P,ref:T=>{T&&(T.indeterminate=S)},onChange:N})},`${l}-checkbox`),t.map((T,D)=>f.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>T.sortable!==!1&&B(T.relation),children:f.jsxs("div",{className:"flex items-center",children:[T.header,T.sortable!==!1&&f.jsx("span",{children:(y==null?void 0:y.key)===T.relation?y.direction==="desc"?f.jsx(xs,{className:"size-4"}):f.jsx(Lc,{className:"size-4"}):f.jsx(xs,{className:"size-4 opacity-50"})})]})},`column-${D}-${T.relation}`))]}),f.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:x.map(T=>f.jsxs(Ke.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&f.jsx(Ke.Cell,{children:f.jsx(oa,{checked:c.has(T.id),onChange:()=>M(T.id)})},`${T.id}-checkbox`),t.map((D,j)=>f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:A(D,T)},`${T.id}-${j}`))]},T.id))})]})}),i&&C>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Qd,{currentPage:p,totalPages:C,onPageChange:b})})]})]})},TD={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},PD=({content:t})=>f.jsxs("div",{className:"mt-12",children:[f.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:TD["m-image-container"]}),f.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:f.jsx(Sr,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),ND=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return f.jsx("div",{className:"mb-5",children:f.jsxs("label",{className:na["checkbox-container"],children:[f.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),f.jsx("span",{className:na.checkmark}),r&&f.jsx("span",{children:r})]})})},sy=({validations:t})=>{const e=({isValid:r})=>f.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),n=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return f.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(e,{isValid:t[r]}),s]},r))})},jD=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},ID=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=jD();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),f.jsx(sy,{validations:a})]})},AD=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>f.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return f.jsxs("li",{className:`
494
494
  ${o>0?"ml-7":""}
495
495
  `,children:[f.jsxs("div",{className:"flex items-center gap-2 py-1",children:[f.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&f.jsx("button",{onClick:()=>r(i.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?f.jsx(Lc,{className:"text-sm text-gray-500"}):f.jsx(xs,{className:"text-sm text-gray-500"})}),!l&&f.jsx("div",{className:"w-[28px]"})," ",i.icon&&f.jsx(i.icon,{className:`text-lg ${i.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),f.jsx("a",{href:i.href,className:`
496
496
  flex-grow transition-colors duration-200
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-mathilde-web",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"