banhaten-ui 0.0.9 → 0.0.11

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.
@@ -117,4 +117,4 @@ Error generating stack: `+o.message+`
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const qm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],e0=He("x",qm);function Ge(...e){return Er(br(e))}const t0={primary:Ge("bg-primary-600 text-white","hover:bg-primary-700","active:bg-primary-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-primary-500 dark:text-white","dark:hover:bg-primary-600","dark:active:bg-primary-700"),soft:Ge("bg-primary-50 text-primary-700","hover:bg-primary-100","active:bg-primary-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-primary-950 dark:text-primary-300","dark:hover:bg-primary-900","dark:active:bg-primary-800"),secondary:Ge("bg-neutral-800 text-white","hover:bg-neutral-900","active:bg-black","shadow-secondary hover:shadow-secondary-hover active:shadow-secondary-active","dark:bg-neutral-700 dark:text-neutral-100","dark:hover:bg-neutral-600","dark:active:bg-neutral-500"),dashed:Ge("bg-white text-neutral-700 border border-dashed border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),white:Ge("bg-white text-neutral-900","hover:bg-neutral-50","active:bg-neutral-100","shadow-white hover:shadow-white-hover active:shadow-white-active","dark:bg-neutral-100 dark:text-neutral-900","dark:hover:bg-neutral-200","dark:active:bg-neutral-300"),outline:Ge("bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),ghost:Ge("bg-transparent text-neutral-700","hover:bg-neutral-100","active:bg-neutral-200","shadow-none","dark:text-neutral-300","dark:hover:bg-neutral-800","dark:active:bg-neutral-700"),"ghost-primary":Ge("bg-transparent text-primary-600","hover:bg-primary-50","active:bg-primary-100","shadow-none","dark:text-primary-400","dark:hover:bg-primary-950","dark:active:bg-primary-900"),danger:Ge("bg-critical-600 text-white","hover:bg-critical-700","active:bg-critical-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-critical-500 dark:text-white","dark:hover:bg-critical-600","dark:active:bg-critical-700"),"soft-danger":Ge("bg-critical-50 text-critical-700","hover:bg-critical-100","active:bg-critical-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-critical-950 dark:text-critical-300","dark:hover:bg-critical-900","dark:active:bg-critical-800")},n0={xs:"h-btn-xs pl-3 pr-1.5 py-2 gap-0.5",sm:"h-btn-sm pl-3 pr-2 py-2 gap-1",md:"h-btn-md pl-3 pr-2.5 py-0 gap-1",lg:"h-btn-lg pl-3 pr-3 py-3 gap-1"},r0={xs:"h-btn-xs w-btn-xs p-0",sm:"h-btn-sm w-btn-sm p-0",md:"h-btn-md w-btn-md p-0",lg:"h-btn-lg w-btn-lg p-0"},ue=V.forwardRef(({variant:e="primary",size:t="md",loading:n=!1,disabled:r=!1,fullWidth:l=!1,iconLeft:o,iconRight:i,startIcon:s,endIcon:a,icon:c,rtl:g=!1,children:h,className:m,...x},k)=>{const S=c&&!h,E=o||s,f=i||a,d=Ge("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","cursor-pointer",t0[e],S?r0[t]:n0[t],g&&"font-sans-rtl",l&&"w-full",(r||n)&&"opacity-50 cursor-not-allowed shadow-none pointer-events-none",m);return u.jsxs("button",{ref:k,type:"button",disabled:r||n,dir:g?"rtl":void 0,className:d,...x,children:[n?u.jsx(Gm,{className:"h-[20px] w-[20px] animate-spin"}):S?u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px]",children:c}):null,!S&&!n&&u.jsx(u.Fragment,{children:g?u.jsxs(u.Fragment,{children:[f&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:f}),h&&u.jsx("span",{className:"truncate",children:h}),E&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:E})]}):u.jsxs(u.Fragment,{children:[E&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:E}),h&&u.jsx("span",{className:"truncate",children:h}),f&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:f})]})}),n&&!S&&h&&u.jsx("span",{className:"truncate ml-1",children:h})]})});ue.displayName="Button";var cd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Oa=Qt.createContext&&Qt.createContext(cd),l0=["attr","size","title"];function o0(e,t){if(e==null)return{};var n=i0(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l<o.length;l++)r=o[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i0(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(r){s0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s0(e,t,n){return t=a0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a0(e){var t=u0(e,"string");return typeof t=="symbol"?t:t+""}function u0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dd(e){return e&&e.map((t,n)=>Qt.createElement(t.tag,Il({key:n},t.attr),dd(t.child)))}function Mn(e){return t=>Qt.createElement(c0,Ml({attr:Il({},e.attr)},t),dd(e.child))}function c0(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=o0(e,l0),s=l||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),Qt.createElement("svg",Ml({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:a,style:Il(Il({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Qt.createElement("title",null,o),e.children)};return Oa!==void 0?Qt.createElement(Oa.Consumer,null,n=>t(n)):t(cd)}function d0(e){return Mn({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function f0(e){return Mn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"},child:[]}]})(e)}function p0(e){return Mn({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function m0(e){return Mn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function h0(e){return Mn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}function g0(e){return Mn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function wt(...e){return Er(br(e))}const v0={Facebook:"Sign in with Facebook",LinkedIn:"Sign in with LinkedIn",Apple:"Sign in with Apple",WhatsApp:"Sign in with WhatsApp",Google:"Sign in with Google",X:"Sign in with X"},x0={Facebook:"تسجيل الدخول باستخدام فيسبوك",LinkedIn:"تسجيل الدخول باستخدام لينكد إن",Apple:"تسجيل الدخول باستخدام آبل",WhatsApp:"تسجيل الدخول باستخدام واتساب",Google:"تسجيل الدخول باستخدام جوجل",X:"تسجيل الدخول باستخدام إكس"},y0={Facebook:{bg:"bg-social-facebook",hoverBg:"hover:bg-[#166FE5]",focusRing:"focus-visible:ring-[#1460CC]",text:"text-white",border:"border-social-facebook",textColor:"text-social-facebook"},LinkedIn:{bg:"bg-social-linkedin",hoverBg:"hover:bg-[#09599A]",focusRing:"focus-visible:ring-[#084C82]",text:"text-white",border:"border-social-linkedin",textColor:"text-social-linkedin"},Apple:{bg:"bg-social-apple",hoverBg:"hover:bg-[#1a1a1a]",focusRing:"focus-visible:ring-[#333333]",text:"text-white",border:"border-social-apple",textColor:"text-social-apple"},WhatsApp:{bg:"bg-social-whatsapp",hoverBg:"hover:bg-[#22C55E]",focusRing:"focus-visible:ring-[#1FA855]",text:"text-white",border:"border-social-whatsapp",textColor:"text-social-whatsapp"},Google:{bg:"bg-social-google",hoverBg:"hover:bg-[#357AE5]",focusRing:"focus-visible:ring-[#2E6FD6]",text:"text-white",border:"border-social-google",textColor:"text-social-google"},X:{bg:"bg-social-twitter",hoverBg:"hover:bg-[#1A91E0]",focusRing:"focus-visible:ring-[#1781CE]",text:"text-white",border:"border-social-twitter",textColor:"text-social-twitter"}},w0=e=>({Facebook:u.jsx(f0,{size:20}),LinkedIn:u.jsx(m0,{size:20}),Apple:u.jsx(d0,{size:20}),WhatsApp:u.jsx(h0,{size:20}),Google:u.jsx(p0,{size:20}),X:u.jsx(g0,{size:20})})[e],k0=V.forwardRef(({platform:e,type:t="Default",style:n="Solid",rtl:r=!1,disabled:l=!1,className:o,...i},s)=>{const a=r,c=t==="IconOnly",g=n==="Outlined",h=y0[e],m=w0(e),x=a?x0[e]:v0[e],k=wt("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","cursor-pointer","relative",c?"h-9 w-9 p-0":"h-9 pl-3 pr-3 py-0 gap-0.5",a&&"font-sans-rtl",l&&"opacity-50 cursor-not-allowed pointer-events-none",o),S=wt(n==="Solid"?wt(h.bg,h.text,h.hoverBg,h.focusRing,"border border-transparent","shadow-component-default","hover:shadow-component-hover","focus-visible:shadow-component-focus"):wt("bg-white",h.border,h.textColor,"border","shadow-outline","hover:bg-neutral-50","hover:shadow-outline-hover",h.focusRing)),E=wt("flex items-center justify-center flex-shrink-0","h-[20px] w-[20px]",c?"":"mr-0.5",g&&h.textColor),f=()=>u.jsx("span",{className:E,children:m});return u.jsx("button",{ref:s,type:"button",disabled:l,dir:a?"rtl":void 0,className:wt(k,S),...i,children:a?u.jsxs(u.Fragment,{children:[!c&&u.jsx("span",{className:wt("truncate relative z-10",g&&h.textColor),children:x}),f()]}):u.jsxs(u.Fragment,{children:[f(),!c&&u.jsx("span",{className:wt("truncate relative z-10",g&&h.textColor),children:x})]})})});k0.displayName="SocialButton";function R(...e){return Er(br(e))}const S0=V.forwardRef(({items:e=[],size:t="md",type:n="Default",rtl:r=!1,rtlLabels:l=[],className:o,...i},s)=>{const c={xs:{height:"h-[32px]",padding:n==="IconOnly"?"px-1.5":"px-2",gap:n==="IconOnly"?"gap-0.5":"gap-1"},sm:{height:"h-[36px]",padding:n==="IconOnly"?"px-2":"px-2.5",gap:"gap-1"},md:{height:"h-[40px]",padding:n==="IconOnly"?"px-2.5":"px-3.5",gap:"gap-1"}}[t],g=R("relative inline-flex items-center overflow-hidden","bg-neutral-50 border border-neutral-300 rounded-control","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",r&&"flex-row-reverse",o),h=(m,x,k)=>R("relative flex items-center justify-center","bg-transparent transition-all duration-150",c.height,c.padding,c.gap,"text-neutral-700 text-[15px] font-medium leading-[24px]",!m.disabled&&"hover:bg-neutral-100 active:bg-neutral-200",!m.disabled&&"cursor-pointer",m.disabled&&"opacity-50 cursor-not-allowed",m.active&&"bg-neutral-100",!x&&"before:absolute before:left-0 before:top-0 before:bottom-0",!x&&"before:w-px before:bg-neutral-300/50",r&&!x&&"before:left-auto before:right-0");return u.jsxs("div",{ref:s,className:g,...i,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"}),e.map((m,x)=>{const k=m.icon||Si,S=x===0;e.length-1;const E=r&&l[x]?l[x]:m.label;return u.jsx("button",{type:"button",onClick:m.onClick,disabled:m.disabled,className:h(m,S),children:n==="Default"?u.jsx(u.Fragment,{children:r?u.jsxs(u.Fragment,{children:[E&&u.jsx("span",{className:"px-0.5 whitespace-nowrap font-sans-rtl",children:E}),u.jsx(k,{className:"w-5 h-5 shrink-0"})]}):u.jsxs(u.Fragment,{children:[u.jsx(k,{className:"w-5 h-5 shrink-0"}),E&&u.jsx("span",{className:"px-0.5 whitespace-nowrap",children:E})]})}):u.jsx(k,{className:"w-5 h-5 shrink-0"})},x)})]})});S0.displayName="ButtonGroup";const C0=V.forwardRef(({label:e,supportText:t,rtlLabel:n,rtlSupportText:r,checkLocation:l="leading",indeterminate:o=!1,rtl:i=!1,error:s=!1,disabled:a=!1,checked:c=!1,className:g,...h},m)=>{const x=i&&n?n:e,k=i&&r?r:t,S=!!t||!!r,E=R("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!c&&!o&&!s&&!a&&"border-neutral-300",!c&&!o&&s&&!a&&"border-danger-500",(c||o)&&!a&&"bg-primary-500 border-primary-500",!a&&!c&&!o&&"hover:border-neutral-400",!a&&(c||o)&&"hover:bg-primary-600 hover:border-primary-600",a&&"opacity-50 cursor-not-allowed","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),f=R("inline-flex gap-2 items-start",S?"items-start":"items-center",i&&"flex-row-reverse",l==="trailing"&&!i&&"flex-row-reverse",l==="leading"&&i&&"flex-row-reverse",g),d=R("flex flex-col flex-1 min-w-0","justify-center",i&&"items-end text-right"),p=R("text-[15px] leading-6 font-medium text-neutral-900",i&&"font-sans-rtl",a&&"opacity-50"),v=R("text-[13px] leading-5 font-normal text-neutral-600",i&&"font-sans-rtl",a&&"opacity-50");return u.jsxs("label",{className:f,children:[u.jsx("input",{ref:m,type:"checkbox",checked:c,disabled:a,className:"sr-only peer",...h}),u.jsxs("div",{className:"flex items-start shrink-0 pt-0.5",children:[u.jsxs("div",{className:E,children:[c&&!o&&u.jsx(Om,{className:"w-3 h-3 text-white stroke-[2.5]"}),o&&u.jsx(Xm,{className:"w-3 h-3 text-white stroke-[2.5]"})]}),u.jsx("div",{className:R("absolute inset-0 rounded pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]}),(e||n)&&u.jsxs("div",{className:d,dir:i?"rtl":void 0,children:[u.jsx("span",{className:p,children:x}),S&&u.jsx("span",{className:v,children:k})]})]})});C0.displayName="Checkbox";const N0=V.forwardRef(({label:e,supportText:t,rtlLabel:n,rtlSupportText:r,selected:l=!1,disabled:o=!1,type:i="default",icon:s,customIcon:a,rtl:c=!1,onChange:g,className:h,...m},x)=>{const k=c&&n?n:e,S=c&&r?r:t,E=!!s||!!a,f=!!t||!!r,d=()=>{!o&&g&&g(!l)},p=ee=>{!o&&(ee.key===" "||ee.key==="Enter")&&(ee.preventDefault(),g==null||g(!l))},v=R("relative flex items-start gap-4 p-4 w-full max-w-[338px]","bg-white border rounded-xl transition-all duration-150","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]","after:absolute after:inset-0 after:rounded-xl after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]",!o&&!l&&"border-neutral-200",!o&&l&&"border-primary-500 border-2",!o&&"hover:bg-neutral-50 cursor-pointer",o&&"border-neutral-200 bg-neutral-50 cursor-not-allowed",c&&"flex-row-reverse",h),b=R("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150 shrink-0 mt-0.5","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!l&&!o&&"border-neutral-300",l&&!o&&"bg-primary-500 border-primary-500",o&&"bg-neutral-100 border-neutral-200","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),C=R("flex flex-1 min-w-0",i==="icon-left"&&E||i==="default"&&E?"gap-3":"",c&&"flex-row-reverse"),N=R("flex flex-col gap-0.5 flex-1 min-w-0",c&&"items-end text-right"),w=R("text-[15px] leading-6 font-medium text-neutral-900",c&&"font-sans-rtl",o&&"text-neutral-400"),L=R("text-[14px] leading-5 font-normal text-neutral-600",c&&"font-sans-rtl",o&&"text-neutral-400"),T=R("shrink-0",o&&"opacity-60"),$=()=>u.jsx("div",{className:b,children:l&&u.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 12 12",stroke:"currentColor",strokeWidth:"2.5",children:u.jsx("path",{d:"M2.5 6.5L4.5 8.5L9.5 3.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),se=()=>a?u.jsx("div",{className:T,children:a}):s?u.jsx("div",{className:T,children:u.jsx(s,{className:"w-6 h-6 text-neutral-600"})}):null,B=()=>i==="label-only"&&!f?u.jsxs("div",{className:R("flex items-center flex-1 gap-3",c&&"flex-row-reverse"),children:[$(),u.jsx("span",{className:w,dir:c?"rtl":void 0,children:k})]}):i==="icon-left"?u.jsxs(u.Fragment,{children:[$(),u.jsx("div",{className:C,children:u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})})]}):i==="icon-right"?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:C,children:u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})}),$()]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:C,children:[se(),u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})]}),$()]}),re=o?"div":"button";return u.jsx(re,{ref:x,className:v,onClick:o?void 0:d,onKeyDown:o?void 0:p,disabled:o,role:o?void 0:"checkbox","aria-checked":o?void 0:l,"aria-disabled":o,tabIndex:o?void 0:0,...m,children:B()})});N0.displayName="CheckmarkCard";const Fe=V.forwardRef(({label:e,checked:t=!1,onChange:n,onCheckedChange:r,size:l="md",rtl:o=!1,disabled:i=!1,className:s,...a},c)=>{const g=()=>{n&&n(t),r&&r(t)},m={sm:{track:"w-9 h-5",thumb:"w-4 h-4",translateChecked:"translate-x-4",translateUnchecked:"translate-x-0.5"},md:{track:"w-11 h-6",thumb:"w-5 h-5",translateChecked:"translate-x-5",translateUnchecked:"translate-x-0.5"},lg:{track:"w-14 h-7",thumb:"w-6 h-6",translateChecked:"translate-x-7",translateUnchecked:"translate-x-0.5"}}[l],x=R("relative inline-flex items-center shrink-0 rounded-full transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",m.track,t?"bg-primary-600 hover:bg-primary-700":"bg-neutral-200 hover:bg-neutral-300","dark:focus-visible:ring-offset-neutral-900",t?"dark:bg-primary-500 dark:hover:bg-primary-600":"dark:bg-neutral-700 dark:hover:bg-neutral-600",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer",o&&"rtl"),k=R("pointer-events-none inline-block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 ease-in-out",m.thumb,t?m.translateChecked:m.translateUnchecked,"dark:bg-neutral-200"),S=R("inline-flex items-center gap-3",o&&"flex-row-reverse",s),E=R("text-sm font-medium","text-neutral-900 dark:text-neutral-100",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer");return u.jsxs("label",{className:S,dir:o?"rtl":void 0,children:[u.jsx("input",{ref:c,type:"checkbox",role:"switch",checked:t,onChange:g,disabled:i,className:"sr-only",...a}),u.jsx("span",{className:x,dir:o?"rtl":void 0,children:u.jsx("span",{className:k})}),e&&u.jsx("span",{className:E,children:e})]})});Fe.displayName="Switcher";function Yr(...e){return Er(br(e))}const j0={Light:{Neutral:"bg-neutral-50 text-neutral-700 border border-neutral-100",Blue:"bg-blue-50 text-blue-700 border border-blue-100",Green:"bg-green-50 text-green-700 border border-green-100",Amber:"bg-amber-50 text-amber-700 border border-amber-100",Danger:"bg-critical-50 text-critical-700 border border-critical-100",Purple:"bg-purple-50 text-purple-700 border border-purple-100",Fuchsia:"bg-fuchsia-50 text-fuchsia-700 border border-fuchsia-100",Rose:"bg-rose-50 text-rose-700 border border-rose-100",Sky:"bg-sky-50 text-sky-700 border border-sky-100",Golden:"bg-golden-50 text-golden-700 border border-golden-100"},Outline:{Neutral:"bg-white text-neutral-700 border border-neutral-300",Blue:"bg-white text-neutral-700 border border-blue-300",Green:"bg-white text-neutral-700 border border-green-300",Amber:"bg-white text-neutral-700 border border-amber-300",Danger:"bg-white text-neutral-700 border border-critical-300",Purple:"bg-white text-neutral-700 border border-purple-300",Fuchsia:"bg-white text-neutral-700 border border-fuchsia-300",Rose:"bg-white text-neutral-700 border border-rose-300",Sky:"bg-white text-neutral-700 border border-sky-300",Golden:"bg-white text-neutral-700 border border-golden-300"},Solid:{Neutral:"bg-neutral-600 text-white border border-transparent",Blue:"bg-blue-600 text-white border border-transparent",Green:"bg-green-600 text-white border border-transparent",Amber:"bg-amber-600 text-white border border-transparent",Danger:"bg-critical-600 text-white border border-transparent",Purple:"bg-purple-600 text-white border border-transparent",Fuchsia:"bg-fuchsia-600 text-white border border-transparent",Rose:"bg-rose-600 text-white border border-transparent",Sky:"bg-sky-600 text-white border border-transparent",Golden:"bg-golden-600 text-white border border-transparent"}},b0={Light:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Outline:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Solid:{Neutral:"bg-white",Blue:"bg-white",Green:"bg-white",Amber:"bg-white",Danger:"bg-white",Purple:"bg-white",Fuchsia:"bg-white",Rose:"bg-white",Sky:"bg-white",Golden:"bg-white"}},E0={sm:"h-badge-sm px-2 py-0.5 gap-1 rounded-full",lg:"h-badge-lg px-2 py-1 gap-1.5 rounded-full"},Zr={sm:"h-3 w-3",lg:"h-4 w-4"},_0={sm:"h-2 w-2",lg:"h-2.5 w-2.5"},fd=V.forwardRef(({type:e="Default",style:t="Light",size:n="sm",color:r="Neutral",showNumber:l=!1,number:o,children:i,leadingIcon:s,trailingIcon:a,flagIcon:c,rtl:g=!1,className:h,...m},x)=>{const k=g,S=Yr("inline-flex items-center justify-center","font-sans text-badge font-medium","whitespace-nowrap",E0[n],j0[t][r],k&&"font-sans-rtl flex-row-reverse",h),E=(C,N)=>u.jsx("span",{className:Yr("flex items-center justify-center flex-shrink-0",N),children:C}),f=()=>u.jsx("span",{className:Yr("rounded-full flex-shrink-0",_0[n],b0[t][r])}),d=()=>c?E(c,Zr[n]):u.jsx("span",{className:Yr("rounded-sm flex-shrink-0 bg-neutral-300",Zr[n])}),v=l&&o!==void 0?(C=>C>99?"99+":C.toString())(o):i,b=()=>{switch(e){case"LeadingIcon":return u.jsxs(u.Fragment,{children:[s&&E(s,Zr[n]),v&&u.jsx("span",{className:"truncate",children:v})]});case"TrailingIcon":return u.jsxs(u.Fragment,{children:[v&&u.jsx("span",{className:"truncate",children:v}),a&&E(a,Zr[n])]});case"Dot":return u.jsxs(u.Fragment,{children:[f(),v&&u.jsx("span",{className:"truncate",children:v})]});case"Flag":return u.jsxs(u.Fragment,{children:[d(),v&&u.jsx("span",{className:"truncate",children:v})]});case"Default":default:return v&&u.jsx("span",{className:"truncate",children:v})}};return u.jsx("div",{ref:x,dir:k?"rtl":void 0,className:S,...m,children:b()})});fd.displayName="Badge";const z0={Danger:{icon:Bm,colors:{Outline:{bg:"bg-white",border:"border border-critical-200",iconColor:"text-critical-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-critical-50",border:"border-none",iconColor:"text-critical-600",titleColor:"text-critical-800",messageColor:"text-critical-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-critical-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Success:{icon:Vm,colors:{Outline:{bg:"bg-white",border:"border border-green-200",iconColor:"text-green-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-green-50",border:"border-none",iconColor:"text-green-600",titleColor:"text-green-800",messageColor:"text-green-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-green-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Warning:{icon:Jm,colors:{Outline:{bg:"bg-white",border:"border border-amber-200",iconColor:"text-amber-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-amber-50",border:"border-none",iconColor:"text-amber-600",titleColor:"text-amber-800",messageColor:"text-amber-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-amber-500",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Info:{icon:ud,colors:{Outline:{bg:"bg-white",border:"border border-blue-200",iconColor:"text-blue-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-blue-50",border:"border-none",iconColor:"text-blue-600",titleColor:"text-blue-800",messageColor:"text-blue-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-blue-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Neutral:{icon:Wm,colors:{Outline:{bg:"bg-white",border:"border border-neutral-300",iconColor:"text-neutral-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-neutral-100",border:"border-none",iconColor:"text-neutral-600",titleColor:"text-neutral-800",messageColor:"text-neutral-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-neutral-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}}},P0=V.forwardRef(({style:e="Outline",status:t="Info",title:n="Alert title",message:r,showActions:l=!1,primaryAction:o="Action",secondaryAction:i="Action",onPrimaryAction:s,onSecondaryAction:a,closable:c=!0,onClose:g,rtl:h=!1,rtlTitle:m,rtlMessage:x,rtlPrimaryAction:k="زر الرابط",rtlSecondaryAction:S="زر الرابط",className:E,...f},d)=>{const p=z0[t],v=p.colors[e],b=p.icon,C=h,N=!!r,w=C&&m?m:n,L=C&&x?x:r,T=C?k:o,$=C?S:i,se=R("flex items-start gap-2 px-4 py-3 rounded-control transition-all",v.bg,v.border,C&&"font-sans-rtl"),B=R("w-5 h-5 shrink-0",v.iconColor),re=R("text-[15px] font-medium leading-[24px]",v.titleColor,C?"text-right":"text-left"),ee=R("text-[14px] font-normal leading-[20px]",v.messageColor,C?"text-right":"text-left"),le=R("text-[15px] font-medium leading-[24px] underline cursor-pointer transition-colors",v.actionColor),ve=R("w-5 h-5 shrink-0 cursor-pointer transition-colors",v.closeColor);return u.jsxs("div",{ref:d,className:R(se,E),dir:C?"rtl":void 0,...f,children:[u.jsxs("div",{className:"flex-1 flex items-start gap-2",children:[!C&&u.jsx(b,{className:B}),u.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[u.jsx("div",{className:re,dir:C?"rtl":void 0,children:w}),N&&L&&u.jsx("div",{className:ee,dir:C?"rtl":void 0,children:L}),l&&N&&u.jsxs("div",{className:R("flex gap-4 mt-2",C&&"flex-row-reverse"),children:[s&&u.jsx("button",{type:"button",onClick:s,className:le,children:T}),a&&u.jsx("button",{type:"button",onClick:a,className:le,children:$})]})]}),C&&u.jsx(b,{className:B})]}),l&&!N&&s&&u.jsx("button",{type:"button",onClick:s,className:R(le,"shrink-0 whitespace-nowrap"),children:T}),c&&g&&u.jsx("button",{type:"button",onClick:g,className:ve,"aria-label":"Close",children:u.jsx(e0,{className:"w-4 h-4"})})]})});P0.displayName="Alert";const L0=V.forwardRef(({direction:e="horizontal",type:t="solid",color:n,spacing:r="none",className:l,...o},i)=>{const s={none:"",xs:e==="horizontal"?"my-1":"mx-1",sm:e==="horizontal"?"my-2":"mx-2",md:e==="horizontal"?"my-4":"mx-4",lg:e==="horizontal"?"my-6":"mx-6",xl:e==="horizontal"?"my-8":"mx-8"};return e==="horizontal"?u.jsx("hr",{ref:i,className:R("w-full border-0",t==="solid"?"border-t border-solid":"border-t border-dashed",n?`border-[${n}]`:"border-neutral-200",s[r],l),...o}):u.jsx("div",{ref:i,className:R("h-full",t==="solid"?"border-l border-solid":"border-l border-dashed",n?`border-[${n}]`:"border-neutral-200",s[r],l),...o})});L0.displayName="Divider";const R0=V.forwardRef(({type:e="default",state:t="default",label:n="Text item",supportText:r,leadingIcon:l,trailingIcon:o,avatarSrc:i,avatarInitials:s,badgeText:a,badgeVariant:c="neutral",rightText:g,hasSwitch:h=!1,switchActive:m=!1,onSwitchChange:x,buttonText:k="Button",onButtonClick:S,progress:E=40,progressLabel:f="Label",progressOptional:d="(Optional)",caption:p,rtl:v=!1,onClick:b,className:C,...N},w)=>{if(e==="divider")return u.jsx("div",{ref:w,className:R("flex items-center px-0 py-0.5",C),...N,children:u.jsx("div",{className:"flex-1 border-t border-neutral-200"})});if(e==="button")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",C),...N,children:u.jsx("button",{onClick:S,className:R("w-full h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",t==="disabled"&&"opacity-50 cursor-not-allowed"),disabled:t==="disabled",children:k})});if(e==="label")return u.jsxs("div",{ref:w,className:R("flex items-center gap-0 px-4 py-1","text-[13px] leading-5",v&&"flex-row-reverse",C),...N,children:[u.jsx("div",{className:R("flex-1",v&&"text-right"),children:u.jsx("p",{className:"font-medium text-neutral-900",children:n})}),p&&u.jsx("p",{className:"text-neutral-600",children:p})]});if(e==="caption")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",C),...N,children:u.jsx("div",{className:"flex items-center justify-center px-1.5 py-1",children:u.jsx("p",{className:R("flex-1 text-[13px] leading-5 text-neutral-600",v&&"text-right"),children:"Lorem ipsum dolor sit amet"})})});if(e==="progress")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",v&&"justify-end",C),...N,children:u.jsx("div",{className:"flex flex-col items-start px-1.5 py-1 flex-1",children:u.jsxs("div",{className:"flex flex-col gap-2 items-start w-full",children:[u.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:u.jsx("div",{className:"bg-neutral-200 h-2 rounded-full w-full relative",children:u.jsx("div",{className:"absolute left-0 top-0 h-full bg-blue-500 rounded-full transition-all",style:{width:`${E}%`}})})}),u.jsxs("div",{className:R("flex gap-2 items-center w-full",v&&"flex-row-reverse"),children:[u.jsxs("div",{className:R("flex items-center gap-1 flex-1",v&&"flex-row-reverse justify-end"),children:[u.jsx("p",{className:R("text-[13px] leading-5 font-medium text-neutral-900",v&&"text-right"),children:f}),u.jsx("p",{className:"text-[13px] leading-5 text-neutral-600",children:d})]}),u.jsx("div",{className:"flex gap-0.5 items-center",children:u.jsxs("p",{className:"text-[12px] leading-4 text-neutral-600",children:[E,"%"]})})]})]})})});const L=t==="disabled",$=R("flex gap-1 items-center px-1.5 py-1 rounded-md flex-1 transition-colors cursor-pointer",e==="multiline"&&"min-h-[48px] py-1",t==="hover"&&!L&&"bg-neutral-100",L&&"opacity-60 cursor-not-allowed",v&&"flex-row-reverse"),se=()=>{const B=[];if(l&&B.push(u.jsx("div",{className:R("flex items-center pl-0.5 pr-0",v&&"pl-0 pr-0.5"),children:u.jsx(l,{className:R("h-5 w-5",L?"text-neutral-400":"text-neutral-600")})},"leading-icon")),i||s){const re=e==="multiline"?"h-10 w-10":"h-6 w-6",ee=e==="multiline"?"text-sm":"text-xs";B.push(u.jsx("div",{className:R("flex items-center pl-0.5 pr-0",v&&"pl-0 pr-0.5"),children:i?u.jsx("img",{src:i,alt:s||"Avatar",className:R(re,"rounded-full border border-neutral-200 object-cover",L&&"opacity-60")}):u.jsx("div",{className:R(re,"rounded-full bg-blue-100 border border-neutral-200","flex items-center justify-center",ee,"font-medium text-blue-700",L&&"opacity-60"),children:s||"??"})},"avatar"))}return e==="multiline"||e==="cta"?B.push(u.jsxs("div",{className:R("flex flex-col items-start flex-1 pl-1 pr-0",v&&"pl-0 pr-1 items-end text-right"),children:[u.jsx("p",{className:R("text-[15px] leading-6",L?"text-neutral-400":"text-neutral-900"),children:n}),r&&u.jsx("p",{className:R("text-[12px] leading-4",L?"text-neutral-400":"text-neutral-600"),children:r})]},"text")):B.push(u.jsx("div",{className:R("flex items-center flex-1 pl-1 pr-0",v&&"pl-0 pr-1 justify-end"),children:u.jsx("p",{className:R("text-[15px] leading-6",L?"text-neutral-400":"text-neutral-900",v&&"text-right"),children:n})},"text")),h&&B.push(u.jsx("div",{className:"flex flex-col items-center",children:u.jsx("button",{onClick:re=>{re.stopPropagation(),!L&&x&&x(!m)},disabled:L,className:R("w-8 h-[18px] p-[3px] rounded-full flex items-center transition-colors",m?"bg-green-500 justify-end":"bg-neutral-300 justify-start",L&&"opacity-50 cursor-not-allowed"),children:u.jsx("div",{className:"w-3.5 h-3.5 bg-white rounded-full shadow-sm"})})},"switch")),a&&B.push(u.jsx("div",{className:"flex flex-col items-center",children:u.jsx(fd,{color:c,size:"sm",children:a})},"badge")),g&&B.push(u.jsx("div",{className:"flex items-center",children:u.jsx("p",{className:R("text-[12px] leading-4",L?"text-neutral-400":"text-neutral-600",v&&"text-left"),children:g})},"right-text")),e==="cta"&&B.push(u.jsx("button",{onClick:re=>{re.stopPropagation(),!L&&S&&S()},disabled:L,className:R("h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",L&&"opacity-50 cursor-not-allowed"),children:k},"cta-button")),o&&B.push(u.jsx("div",{className:"flex items-center",children:u.jsx(o,{className:R("h-4 w-4",L?"text-neutral-400":"text-neutral-500")})},"trailing-icon")),v?B.reverse():B};return u.jsx("div",{ref:w,className:R("flex items-center gap-0 px-1.5 py-0",v&&"justify-end",C),onClick:L?void 0:b,...N,children:u.jsx("div",{className:$,children:se()})})});R0.displayName="MenuItem";const T0=V.forwardRef(({children:e,width:t=260,rtl:n=!1,className:r,...l},o)=>u.jsx("div",{ref:o,className:R("bg-white border border-neutral-200 rounded-xl shadow-lg","flex flex-col gap-1 items-start py-1.5","overflow-hidden",r),style:{width:typeof t=="number"?`${t}px`:t},...l,children:e}));T0.displayName="Menu";function Le(...e){return Er(br(e))}const O0=V.forwardRef(({label:e="Enter question title",description:t="Ants are fascinating insects known for their complex social structures and teamwork. They communicate through pheromones and work together to build intricate nests. Ants play crucial roles in ecosystems, from soil aeration to seed dispersal.",icon:n=!0,iconLeft:r,badge:l=!0,badgeText:o="Badge",action:i=!0,actionText:s="Button",onActionClick:a,style:c="Default",state:g="Default",rtl:h=!1,expandable:m=!1,expanded:x,onToggle:k,rtlLabel:S,rtlDescription:E,className:f,...d},p)=>{const[v,b]=V.useState(!1),C=x!==void 0?x:v,N=h,w=()=>{if(m){const M=!C;x===void 0&&b(M),k==null||k(M)}},L=N&&S?S:e,T=N&&E?E:t,$=Le("flex items-start gap-3 p-5","transition-all duration-150 ease-in-out",m&&"cursor-pointer","w-full",N&&"font-sans-rtl",c==="Default"?Le("border-b border-neutral-200",g==="Hover"&&m&&"bg-neutral-50"):Le("border border-neutral-200 rounded-xl","shadow-component-default",g==="Hover"&&m&&"bg-neutral-50","relative"),f),se=Le("flex flex-col justify-center","font-semibold text-[17px] leading-[28px]","text-neutral-900",N?"text-right":"text-left"),B=Le("text-[15px] leading-[24px]","text-neutral-600",N?"text-right":"text-left"),re=Le("flex items-center justify-center","h-7 px-3 py-0","bg-neutral-50 rounded-full","text-[12px] leading-[16px] font-medium","text-neutral-900 whitespace-nowrap"),ee=r||(n?u.jsx(ud,{className:"h-6 w-6 text-neutral-600 flex-shrink-0"}):null),le=C?Fm:Im,ve=Le("h-6 w-6 text-neutral-500 flex-shrink-0"),y=m?"button":"div",O=m?{ref:p,type:"button",onClick:w,...d}:{...d};return u.jsxs(y,{...O,dir:N?"rtl":void 0,className:$,children:[ee&&!N&&u.jsx("div",{className:"flex-shrink-0",children:ee}),m&&N&&u.jsx("div",{className:"flex-shrink-0",children:u.jsx(le,{className:ve})}),u.jsxs("div",{className:Le("flex flex-col gap-1.5 flex-1 min-w-0",N?"items-end":"items-start"),children:[u.jsx("div",{className:Le("flex gap-1.5 items-start w-full",N?"flex-row-reverse":"flex-row"),children:N?u.jsxs(u.Fragment,{children:[l&&u.jsx("div",{className:Le(re,"font-sans-rtl"),dir:"rtl",children:o}),u.jsx("div",{className:Le(se,"flex-1"),dir:"rtl",children:u.jsx("p",{children:L})})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:Le(se,"flex-1"),children:u.jsx("p",{children:L})}),l&&u.jsx("div",{className:re,children:o})]})}),C&&T&&u.jsx("div",{className:"w-full",dir:N?"rtl":void 0,children:u.jsx("p",{className:B,children:T})}),C&&i&&u.jsx("div",{className:"pt-4 w-full flex",style:{justifyContent:N?"flex-end":"flex-start"},children:u.jsxs("button",{type:"button",onClick:M=>{M.stopPropagation(),a==null||a()},className:Le("relative flex items-center justify-center gap-1","h-10 px-2.5 py-2","bg-neutral-50 border border-neutral-300 rounded-control","shadow-component-default","text-[15px] leading-[24px] font-medium text-neutral-900","hover:bg-neutral-100 transition-colors","cursor-pointer"),dir:N?"rtl":void 0,children:[u.jsx(Si,{className:"h-5 w-5 flex-shrink-0"}),u.jsx("span",{className:"px-1 whitespace-nowrap",children:N?"انقر هنا":s}),u.jsx(Si,{className:"h-5 w-5 flex-shrink-0"}),u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})})]}),m&&!N&&u.jsx("div",{className:"flex-shrink-0",children:u.jsx(le,{className:ve})}),ee&&N&&u.jsx("div",{className:"flex-shrink-0",children:ee}),c==="Boxed"&&u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-xl shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})});O0.displayName="Accordion";function M0(){const[e,t]=V.useState(!1),[n,r]=V.useState(!1);return V.useEffect(()=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),V.useEffect(()=>{n?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr")},[n]),u.jsxs("div",{className:"min-h-screen bg-white dark:bg-neutral-900 transition-colors duration-200",children:[u.jsx("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 py-6",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"text-3xl font-bold text-neutral-900 dark:text-white",children:"banhaten-ui"}),u.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 mt-1",children:"Interactive Component Showcase"})]}),u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx(Fe,{label:e?"🌙 Dark":"☀️ Light",checked:e,onCheckedChange:t,size:"md"}),u.jsx(Fe,{label:n?"RTL ⬅️":"LTR ➡️",checked:n,onCheckedChange:r,size:"md"})]})]})})}),u.jsxs("main",{className:"max-w-7xl mx-auto px-6 py-12",children:[u.jsxs("section",{className:"space-y-8",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white mb-2",children:"Button Component"}),u.jsxs("p",{className:"text-neutral-600 dark:text-neutral-400",children:["All button variants with ",e?"dark":"light"," theme and ",n?"RTL":"LTR"," direction"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Primary Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Primary"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"زر أساسي":"Primary Button"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Soft"}),u.jsx(ue,{variant:"soft",size:"md",rtl:n,children:n?"زر ناعم":"Soft Button"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Ghost Primary"}),u.jsx(ue,{variant:"ghost-primary",size:"md",rtl:n,children:n?"زر شفاف":"Ghost Button"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Other Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Secondary"}),u.jsx(ue,{variant:"secondary",size:"md",rtl:n,children:n?"زر ثانوي":"Secondary"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Outline"}),u.jsx(ue,{variant:"outline",size:"md",rtl:n,children:n?"زر محدد":"Outline"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Dashed"}),u.jsx(ue,{variant:"dashed",size:"md",rtl:n,children:n?"زر متقطع":"Dashed"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"White"}),u.jsx(ue,{variant:"white",size:"md",rtl:n,children:n?"زر أبيض":"White"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Ghost"}),u.jsx(ue,{variant:"ghost",size:"md",rtl:n,children:n?"زر شفاف":"Ghost"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Danger Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Danger"}),u.jsx(ue,{variant:"danger",size:"md",rtl:n,children:n?"زر خطر":"Danger"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Soft Danger"}),u.jsx(ue,{variant:"soft-danger",size:"md",rtl:n,children:n?"زر خطر ناعم":"Soft Danger"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Button Sizes"}),u.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Extra Small"}),u.jsx(ue,{variant:"primary",size:"xs",rtl:n,children:n?"صغير جداً":"XS Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Small"}),u.jsx(ue,{variant:"primary",size:"sm",rtl:n,children:n?"صغير":"Small Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Medium"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"متوسط":"Medium Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Large"}),u.jsx(ue,{variant:"primary",size:"lg",rtl:n,children:n?"كبير":"Large Button"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Button States"}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Normal"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"عادي":"Normal"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Loading"}),u.jsx(ue,{variant:"primary",size:"md",loading:!0,rtl:n,children:n?"تحميل":"Loading"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Disabled"}),u.jsx(ue,{variant:"primary",size:"md",disabled:!0,rtl:n,children:n?"معطل":"Disabled"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Full Width Button"}),u.jsx(ue,{variant:"primary",size:"md",fullWidth:!0,rtl:n,children:n?"زر بعرض كامل":"Full Width Button"})]})]}),u.jsxs("section",{className:"mt-16 space-y-8",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white mb-2",children:"Switcher Component"}),u.jsx("p",{className:"text-neutral-600 dark:text-neutral-400",children:"Toggle switches for binary options"})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Sizes"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"Small",size:"sm"}),u.jsx(Fe,{label:"Medium",size:"md",checked:!0}),u.jsx(Fe,{label:"Large",size:"lg"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"States"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"Unchecked"}),u.jsx(Fe,{label:"Checked",checked:!0}),u.jsx(Fe,{label:"Disabled",disabled:!0}),u.jsx(Fe,{label:"Disabled Checked",checked:!0,disabled:!0})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"RTL Support"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"LTR Switcher",rtl:!1}),u.jsx(Fe,{label:"مفتاح RTL",rtl:!0,checked:!0})]})]})]})]}),u.jsx("footer",{className:"border-t border-neutral-200 dark:border-neutral-800 mt-16",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 py-8",children:u.jsx("p",{className:"text-center text-neutral-600 dark:text-neutral-400",children:"banhaten-ui v0.0.9 • Built with React, TypeScript & Tailwind CSS"})})})]})}Kc(document.getElementById("root")).render(u.jsx(V.StrictMode,{children:u.jsx(M0,{})}));
120
+ */const qm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],e0=He("x",qm);function Ge(...e){return Er(br(e))}const t0={primary:Ge("bg-primary-600 text-white","hover:bg-primary-700","active:bg-primary-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-primary-500 dark:text-white","dark:hover:bg-primary-600","dark:active:bg-primary-700"),soft:Ge("bg-primary-50 text-primary-700","hover:bg-primary-100","active:bg-primary-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-primary-950 dark:text-primary-300","dark:hover:bg-primary-900","dark:active:bg-primary-800"),secondary:Ge("bg-neutral-800 text-white","hover:bg-neutral-900","active:bg-black","shadow-secondary hover:shadow-secondary-hover active:shadow-secondary-active","dark:bg-neutral-700 dark:text-neutral-100","dark:hover:bg-neutral-600","dark:active:bg-neutral-500"),dashed:Ge("bg-white text-neutral-700 border border-dashed border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),white:Ge("bg-white text-neutral-900","hover:bg-neutral-50","active:bg-neutral-100","shadow-white hover:shadow-white-hover active:shadow-white-active","dark:bg-neutral-100 dark:text-neutral-900","dark:hover:bg-neutral-200","dark:active:bg-neutral-300"),outline:Ge("bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),ghost:Ge("bg-transparent text-neutral-700","hover:bg-neutral-100","active:bg-neutral-200","shadow-none","dark:text-neutral-300","dark:hover:bg-neutral-800","dark:active:bg-neutral-700"),"ghost-primary":Ge("bg-transparent text-primary-600","hover:bg-primary-50","active:bg-primary-100","shadow-none","dark:text-primary-400","dark:hover:bg-primary-950","dark:active:bg-primary-900"),danger:Ge("bg-critical-600 text-white","hover:bg-critical-700","active:bg-critical-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-critical-500 dark:text-white","dark:hover:bg-critical-600","dark:active:bg-critical-700"),"soft-danger":Ge("bg-critical-50 text-critical-700","hover:bg-critical-100","active:bg-critical-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-critical-950 dark:text-critical-300","dark:hover:bg-critical-900","dark:active:bg-critical-800")},n0={xs:"h-btn-xs pl-3 pr-1.5 py-2 gap-0.5",sm:"h-btn-sm pl-3 pr-2 py-2 gap-1",md:"h-btn-md pl-3 pr-2.5 py-0 gap-1",lg:"h-btn-lg pl-3 pr-3 py-3 gap-1"},r0={xs:"h-btn-xs w-btn-xs p-0",sm:"h-btn-sm w-btn-sm p-0",md:"h-btn-md w-btn-md p-0",lg:"h-btn-lg w-btn-lg p-0"},ue=V.forwardRef(({variant:e="primary",size:t="md",loading:n=!1,disabled:r=!1,fullWidth:l=!1,iconLeft:o,iconRight:i,startIcon:s,endIcon:a,icon:c,rtl:g=!1,children:h,className:m,...x},k)=>{const S=c&&!h,E=o||s,f=i||a,d=Ge("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","cursor-pointer",t0[e],S?r0[t]:n0[t],g&&"font-sans-rtl",l&&"w-full",(r||n)&&"opacity-50 cursor-not-allowed shadow-none pointer-events-none",m);return u.jsxs("button",{ref:k,type:"button",disabled:r||n,dir:g?"rtl":void 0,className:d,...x,children:[n?u.jsx(Gm,{className:"h-[20px] w-[20px] animate-spin"}):S?u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px]",children:c}):null,!S&&!n&&u.jsx(u.Fragment,{children:g?u.jsxs(u.Fragment,{children:[f&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:f}),h&&u.jsx("span",{className:"truncate",children:h}),E&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:E})]}):u.jsxs(u.Fragment,{children:[E&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:E}),h&&u.jsx("span",{className:"truncate",children:h}),f&&u.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:f})]})}),n&&!S&&h&&u.jsx("span",{className:"truncate ml-1",children:h})]})});ue.displayName="Button";var cd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Oa=Qt.createContext&&Qt.createContext(cd),l0=["attr","size","title"];function o0(e,t){if(e==null)return{};var n=i0(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l<o.length;l++)r=o[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i0(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(r){s0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s0(e,t,n){return t=a0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a0(e){var t=u0(e,"string");return typeof t=="symbol"?t:t+""}function u0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dd(e){return e&&e.map((t,n)=>Qt.createElement(t.tag,Il({key:n},t.attr),dd(t.child)))}function Mn(e){return t=>Qt.createElement(c0,Ml({attr:Il({},e.attr)},t),dd(e.child))}function c0(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=o0(e,l0),s=l||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),Qt.createElement("svg",Ml({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:a,style:Il(Il({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Qt.createElement("title",null,o),e.children)};return Oa!==void 0?Qt.createElement(Oa.Consumer,null,n=>t(n)):t(cd)}function d0(e){return Mn({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function f0(e){return Mn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"},child:[]}]})(e)}function p0(e){return Mn({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function m0(e){return Mn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function h0(e){return Mn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}function g0(e){return Mn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function wt(...e){return Er(br(e))}const v0={Facebook:"Sign in with Facebook",LinkedIn:"Sign in with LinkedIn",Apple:"Sign in with Apple",WhatsApp:"Sign in with WhatsApp",Google:"Sign in with Google",X:"Sign in with X"},x0={Facebook:"تسجيل الدخول باستخدام فيسبوك",LinkedIn:"تسجيل الدخول باستخدام لينكد إن",Apple:"تسجيل الدخول باستخدام آبل",WhatsApp:"تسجيل الدخول باستخدام واتساب",Google:"تسجيل الدخول باستخدام جوجل",X:"تسجيل الدخول باستخدام إكس"},y0={Facebook:{bg:"bg-social-facebook",hoverBg:"hover:bg-[#166FE5]",focusRing:"focus-visible:ring-[#1460CC]",text:"text-white",border:"border-social-facebook",textColor:"text-social-facebook"},LinkedIn:{bg:"bg-social-linkedin",hoverBg:"hover:bg-[#09599A]",focusRing:"focus-visible:ring-[#084C82]",text:"text-white",border:"border-social-linkedin",textColor:"text-social-linkedin"},Apple:{bg:"bg-social-apple",hoverBg:"hover:bg-[#1a1a1a]",focusRing:"focus-visible:ring-[#333333]",text:"text-white",border:"border-social-apple",textColor:"text-social-apple"},WhatsApp:{bg:"bg-social-whatsapp",hoverBg:"hover:bg-[#22C55E]",focusRing:"focus-visible:ring-[#1FA855]",text:"text-white",border:"border-social-whatsapp",textColor:"text-social-whatsapp"},Google:{bg:"bg-social-google",hoverBg:"hover:bg-[#357AE5]",focusRing:"focus-visible:ring-[#2E6FD6]",text:"text-white",border:"border-social-google",textColor:"text-social-google"},X:{bg:"bg-social-twitter",hoverBg:"hover:bg-[#1A91E0]",focusRing:"focus-visible:ring-[#1781CE]",text:"text-white",border:"border-social-twitter",textColor:"text-social-twitter"}},w0=e=>({Facebook:u.jsx(f0,{size:20}),LinkedIn:u.jsx(m0,{size:20}),Apple:u.jsx(d0,{size:20}),WhatsApp:u.jsx(h0,{size:20}),Google:u.jsx(p0,{size:20}),X:u.jsx(g0,{size:20})})[e],k0=V.forwardRef(({platform:e,type:t="Default",style:n="Solid",rtl:r=!1,disabled:l=!1,className:o,...i},s)=>{const a=r,c=t==="IconOnly",g=n==="Outlined",h=y0[e],m=w0(e),x=a?x0[e]:v0[e],k=wt("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","cursor-pointer","relative",c?"h-9 w-9 p-0":"h-9 pl-3 pr-3 py-0 gap-0.5",a&&"font-sans-rtl",l&&"opacity-50 cursor-not-allowed pointer-events-none",o),S=wt(n==="Solid"?wt(h.bg,h.text,h.hoverBg,h.focusRing,"border border-transparent","shadow-component-default","hover:shadow-component-hover","focus-visible:shadow-component-focus"):wt("bg-white",h.border,h.textColor,"border","shadow-outline","hover:bg-neutral-50","hover:shadow-outline-hover",h.focusRing)),E=wt("flex items-center justify-center flex-shrink-0","h-[20px] w-[20px]",c?"":"mr-0.5",g&&h.textColor),f=()=>u.jsx("span",{className:E,children:m});return u.jsx("button",{ref:s,type:"button",disabled:l,dir:a?"rtl":void 0,className:wt(k,S),...i,children:a?u.jsxs(u.Fragment,{children:[!c&&u.jsx("span",{className:wt("truncate relative z-10",g&&h.textColor),children:x}),f()]}):u.jsxs(u.Fragment,{children:[f(),!c&&u.jsx("span",{className:wt("truncate relative z-10",g&&h.textColor),children:x})]})})});k0.displayName="SocialButton";function R(...e){return Er(br(e))}const S0=V.forwardRef(({items:e=[],size:t="md",type:n="Default",rtl:r=!1,rtlLabels:l=[],className:o,...i},s)=>{const c={xs:{height:"h-[32px]",padding:n==="IconOnly"?"px-1.5":"px-2",gap:n==="IconOnly"?"gap-0.5":"gap-1"},sm:{height:"h-[36px]",padding:n==="IconOnly"?"px-2":"px-2.5",gap:"gap-1"},md:{height:"h-[40px]",padding:n==="IconOnly"?"px-2.5":"px-3.5",gap:"gap-1"}}[t],g=R("relative inline-flex items-center overflow-hidden","bg-neutral-50 border border-neutral-300 rounded-control","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",r&&"flex-row-reverse",o),h=(m,x,k)=>R("relative flex items-center justify-center","bg-transparent transition-all duration-150",c.height,c.padding,c.gap,"text-neutral-700 text-[15px] font-medium leading-[24px]",!m.disabled&&"hover:bg-neutral-100 active:bg-neutral-200",!m.disabled&&"cursor-pointer",m.disabled&&"opacity-50 cursor-not-allowed",m.active&&"bg-neutral-100",!x&&"before:absolute before:left-0 before:top-0 before:bottom-0",!x&&"before:w-px before:bg-neutral-300/50",r&&!x&&"before:left-auto before:right-0");return u.jsxs("div",{ref:s,className:g,...i,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"}),e.map((m,x)=>{const k=m.icon||Si,S=x===0;e.length-1;const E=r&&l[x]?l[x]:m.label;return u.jsx("button",{type:"button",onClick:m.onClick,disabled:m.disabled,className:h(m,S),children:n==="Default"?u.jsx(u.Fragment,{children:r?u.jsxs(u.Fragment,{children:[E&&u.jsx("span",{className:"px-0.5 whitespace-nowrap font-sans-rtl",children:E}),u.jsx(k,{className:"w-5 h-5 shrink-0"})]}):u.jsxs(u.Fragment,{children:[u.jsx(k,{className:"w-5 h-5 shrink-0"}),E&&u.jsx("span",{className:"px-0.5 whitespace-nowrap",children:E})]})}):u.jsx(k,{className:"w-5 h-5 shrink-0"})},x)})]})});S0.displayName="ButtonGroup";const C0=V.forwardRef(({label:e,supportText:t,rtlLabel:n,rtlSupportText:r,checkLocation:l="leading",indeterminate:o=!1,rtl:i=!1,error:s=!1,disabled:a=!1,checked:c=!1,className:g,...h},m)=>{const x=i&&n?n:e,k=i&&r?r:t,S=!!t||!!r,E=R("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!c&&!o&&!s&&!a&&"border-neutral-300",!c&&!o&&s&&!a&&"border-danger-500",(c||o)&&!a&&"bg-primary-500 border-primary-500",!a&&!c&&!o&&"hover:border-neutral-400",!a&&(c||o)&&"hover:bg-primary-600 hover:border-primary-600",a&&"opacity-50 cursor-not-allowed","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),f=R("inline-flex gap-2 items-start",S?"items-start":"items-center",i&&"flex-row-reverse",l==="trailing"&&!i&&"flex-row-reverse",l==="leading"&&i&&"flex-row-reverse",g),d=R("flex flex-col flex-1 min-w-0","justify-center",i&&"items-end text-right"),p=R("text-[15px] leading-6 font-medium text-neutral-900",i&&"font-sans-rtl",a&&"opacity-50"),v=R("text-[13px] leading-5 font-normal text-neutral-600",i&&"font-sans-rtl",a&&"opacity-50");return u.jsxs("label",{className:f,children:[u.jsx("input",{ref:m,type:"checkbox",checked:c,disabled:a,className:"sr-only peer",...h}),u.jsxs("div",{className:"flex items-start shrink-0 pt-0.5",children:[u.jsxs("div",{className:E,children:[c&&!o&&u.jsx(Om,{className:"w-3 h-3 text-white stroke-[2.5]"}),o&&u.jsx(Xm,{className:"w-3 h-3 text-white stroke-[2.5]"})]}),u.jsx("div",{className:R("absolute inset-0 rounded pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]}),(e||n)&&u.jsxs("div",{className:d,dir:i?"rtl":void 0,children:[u.jsx("span",{className:p,children:x}),S&&u.jsx("span",{className:v,children:k})]})]})});C0.displayName="Checkbox";const N0=V.forwardRef(({label:e,supportText:t,rtlLabel:n,rtlSupportText:r,selected:l=!1,disabled:o=!1,type:i="default",icon:s,customIcon:a,rtl:c=!1,onChange:g,className:h,...m},x)=>{const k=c&&n?n:e,S=c&&r?r:t,E=!!s||!!a,f=!!t||!!r,d=()=>{!o&&g&&g(!l)},p=ee=>{!o&&(ee.key===" "||ee.key==="Enter")&&(ee.preventDefault(),g==null||g(!l))},v=R("relative flex items-start gap-4 p-4 w-full max-w-[338px]","bg-white border rounded-xl transition-all duration-150","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]","after:absolute after:inset-0 after:rounded-xl after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]",!o&&!l&&"border-neutral-200",!o&&l&&"border-primary-500 border-2",!o&&"hover:bg-neutral-50 cursor-pointer",o&&"border-neutral-200 bg-neutral-50 cursor-not-allowed",c&&"flex-row-reverse",h),b=R("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150 shrink-0 mt-0.5","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!l&&!o&&"border-neutral-300",l&&!o&&"bg-primary-500 border-primary-500",o&&"bg-neutral-100 border-neutral-200","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),C=R("flex flex-1 min-w-0",i==="icon-left"&&E||i==="default"&&E?"gap-3":"",c&&"flex-row-reverse"),N=R("flex flex-col gap-0.5 flex-1 min-w-0",c&&"items-end text-right"),w=R("text-[15px] leading-6 font-medium text-neutral-900",c&&"font-sans-rtl",o&&"text-neutral-400"),L=R("text-[14px] leading-5 font-normal text-neutral-600",c&&"font-sans-rtl",o&&"text-neutral-400"),T=R("shrink-0",o&&"opacity-60"),$=()=>u.jsx("div",{className:b,children:l&&u.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 12 12",stroke:"currentColor",strokeWidth:"2.5",children:u.jsx("path",{d:"M2.5 6.5L4.5 8.5L9.5 3.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),se=()=>a?u.jsx("div",{className:T,children:a}):s?u.jsx("div",{className:T,children:u.jsx(s,{className:"w-6 h-6 text-neutral-600"})}):null,B=()=>i==="label-only"&&!f?u.jsxs("div",{className:R("flex items-center flex-1 gap-3",c&&"flex-row-reverse"),children:[$(),u.jsx("span",{className:w,dir:c?"rtl":void 0,children:k})]}):i==="icon-left"?u.jsxs(u.Fragment,{children:[$(),u.jsx("div",{className:C,children:u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})})]}):i==="icon-right"?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:C,children:u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})}),$()]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:C,children:[se(),u.jsxs("div",{className:N,dir:c?"rtl":void 0,children:[u.jsx("span",{className:w,children:k}),f&&u.jsx("span",{className:L,children:S})]})]}),$()]}),re=o?"div":"button";return u.jsx(re,{ref:x,className:v,onClick:o?void 0:d,onKeyDown:o?void 0:p,disabled:o,role:o?void 0:"checkbox","aria-checked":o?void 0:l,"aria-disabled":o,tabIndex:o?void 0:0,...m,children:B()})});N0.displayName="CheckmarkCard";const Fe=V.forwardRef(({label:e,checked:t=!1,onChange:n,onCheckedChange:r,size:l="md",rtl:o=!1,disabled:i=!1,className:s,...a},c)=>{const g=()=>{n&&n(t),r&&r(t)},m={sm:{track:"w-9 h-5",thumb:"w-4 h-4",translateChecked:"translate-x-4",translateUnchecked:"translate-x-0.5"},md:{track:"w-11 h-6",thumb:"w-5 h-5",translateChecked:"translate-x-5",translateUnchecked:"translate-x-0.5"},lg:{track:"w-14 h-7",thumb:"w-6 h-6",translateChecked:"translate-x-7",translateUnchecked:"translate-x-0.5"}}[l],x=R("relative inline-flex items-center shrink-0 rounded-full transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",m.track,t?"bg-primary-600 hover:bg-primary-700":"bg-neutral-200 hover:bg-neutral-300","dark:focus-visible:ring-offset-neutral-900",t?"dark:bg-primary-500 dark:hover:bg-primary-600":"dark:bg-neutral-700 dark:hover:bg-neutral-600",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer",o&&"rtl"),k=R("pointer-events-none inline-block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 ease-in-out",m.thumb,t?m.translateChecked:m.translateUnchecked,"dark:bg-neutral-200"),S=R("inline-flex items-center gap-3",o&&"flex-row-reverse",s),E=R("text-sm font-medium","text-neutral-900 dark:text-neutral-100",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer");return u.jsxs("label",{className:S,dir:o?"rtl":void 0,children:[u.jsx("input",{ref:c,type:"checkbox",role:"switch",checked:t,onChange:g,disabled:i,className:"sr-only",...a}),u.jsx("span",{className:x,dir:o?"rtl":void 0,children:u.jsx("span",{className:k})}),e&&u.jsx("span",{className:E,children:e})]})});Fe.displayName="Switcher";function Yr(...e){return Er(br(e))}const j0={Light:{Neutral:"bg-neutral-50 text-neutral-700 border border-neutral-100",Blue:"bg-blue-50 text-blue-700 border border-blue-100",Green:"bg-green-50 text-green-700 border border-green-100",Amber:"bg-amber-50 text-amber-700 border border-amber-100",Danger:"bg-critical-50 text-critical-700 border border-critical-100",Purple:"bg-purple-50 text-purple-700 border border-purple-100",Fuchsia:"bg-fuchsia-50 text-fuchsia-700 border border-fuchsia-100",Rose:"bg-rose-50 text-rose-700 border border-rose-100",Sky:"bg-sky-50 text-sky-700 border border-sky-100",Golden:"bg-golden-50 text-golden-700 border border-golden-100"},Outline:{Neutral:"bg-white text-neutral-700 border border-neutral-300",Blue:"bg-white text-neutral-700 border border-blue-300",Green:"bg-white text-neutral-700 border border-green-300",Amber:"bg-white text-neutral-700 border border-amber-300",Danger:"bg-white text-neutral-700 border border-critical-300",Purple:"bg-white text-neutral-700 border border-purple-300",Fuchsia:"bg-white text-neutral-700 border border-fuchsia-300",Rose:"bg-white text-neutral-700 border border-rose-300",Sky:"bg-white text-neutral-700 border border-sky-300",Golden:"bg-white text-neutral-700 border border-golden-300"},Solid:{Neutral:"bg-neutral-600 text-white border border-transparent",Blue:"bg-blue-600 text-white border border-transparent",Green:"bg-green-600 text-white border border-transparent",Amber:"bg-amber-600 text-white border border-transparent",Danger:"bg-critical-600 text-white border border-transparent",Purple:"bg-purple-600 text-white border border-transparent",Fuchsia:"bg-fuchsia-600 text-white border border-transparent",Rose:"bg-rose-600 text-white border border-transparent",Sky:"bg-sky-600 text-white border border-transparent",Golden:"bg-golden-600 text-white border border-transparent"}},b0={Light:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Outline:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Solid:{Neutral:"bg-white",Blue:"bg-white",Green:"bg-white",Amber:"bg-white",Danger:"bg-white",Purple:"bg-white",Fuchsia:"bg-white",Rose:"bg-white",Sky:"bg-white",Golden:"bg-white"}},E0={sm:"h-badge-sm px-2 py-0.5 gap-1 rounded-full",lg:"h-badge-lg px-2 py-1 gap-1.5 rounded-full"},Zr={sm:"h-3 w-3",lg:"h-4 w-4"},_0={sm:"h-2 w-2",lg:"h-2.5 w-2.5"},fd=V.forwardRef(({type:e="Default",style:t="Light",size:n="sm",color:r="Neutral",showNumber:l=!1,number:o,children:i,leadingIcon:s,trailingIcon:a,flagIcon:c,rtl:g=!1,className:h,...m},x)=>{const k=g,S=Yr("inline-flex items-center justify-center","font-sans text-badge font-medium","whitespace-nowrap",E0[n],j0[t][r],k&&"font-sans-rtl flex-row-reverse",h),E=(C,N)=>u.jsx("span",{className:Yr("flex items-center justify-center flex-shrink-0",N),children:C}),f=()=>u.jsx("span",{className:Yr("rounded-full flex-shrink-0",_0[n],b0[t][r])}),d=()=>c?E(c,Zr[n]):u.jsx("span",{className:Yr("rounded-sm flex-shrink-0 bg-neutral-300",Zr[n])}),v=l&&o!==void 0?(C=>C>99?"99+":C.toString())(o):i,b=()=>{switch(e){case"LeadingIcon":return u.jsxs(u.Fragment,{children:[s&&E(s,Zr[n]),v&&u.jsx("span",{className:"truncate",children:v})]});case"TrailingIcon":return u.jsxs(u.Fragment,{children:[v&&u.jsx("span",{className:"truncate",children:v}),a&&E(a,Zr[n])]});case"Dot":return u.jsxs(u.Fragment,{children:[f(),v&&u.jsx("span",{className:"truncate",children:v})]});case"Flag":return u.jsxs(u.Fragment,{children:[d(),v&&u.jsx("span",{className:"truncate",children:v})]});case"Default":default:return v&&u.jsx("span",{className:"truncate",children:v})}};return u.jsx("div",{ref:x,dir:k?"rtl":void 0,className:S,...m,children:b()})});fd.displayName="Badge";const z0={Danger:{icon:Bm,colors:{Outline:{bg:"bg-white",border:"border border-critical-200",iconColor:"text-critical-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-critical-50",border:"border-none",iconColor:"text-critical-600",titleColor:"text-critical-800",messageColor:"text-critical-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-critical-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Success:{icon:Vm,colors:{Outline:{bg:"bg-white",border:"border border-green-200",iconColor:"text-green-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-green-50",border:"border-none",iconColor:"text-green-600",titleColor:"text-green-800",messageColor:"text-green-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-green-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Warning:{icon:Jm,colors:{Outline:{bg:"bg-white",border:"border border-amber-200",iconColor:"text-amber-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-amber-50",border:"border-none",iconColor:"text-amber-600",titleColor:"text-amber-800",messageColor:"text-amber-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-amber-500",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Info:{icon:ud,colors:{Outline:{bg:"bg-white",border:"border border-blue-200",iconColor:"text-blue-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-blue-50",border:"border-none",iconColor:"text-blue-600",titleColor:"text-blue-800",messageColor:"text-blue-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-blue-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Neutral:{icon:Wm,colors:{Outline:{bg:"bg-white",border:"border border-neutral-300",iconColor:"text-neutral-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-neutral-100",border:"border-none",iconColor:"text-neutral-600",titleColor:"text-neutral-800",messageColor:"text-neutral-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-neutral-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}}},P0=V.forwardRef(({style:e="Outline",status:t="Info",title:n="Alert title",message:r,showActions:l=!1,primaryAction:o="Action",secondaryAction:i="Action",onPrimaryAction:s,onSecondaryAction:a,closable:c=!0,onClose:g,rtl:h=!1,rtlTitle:m,rtlMessage:x,rtlPrimaryAction:k="زر الرابط",rtlSecondaryAction:S="زر الرابط",className:E,...f},d)=>{const p=z0[t],v=p.colors[e],b=p.icon,C=h,N=!!r,w=C&&m?m:n,L=C&&x?x:r,T=C?k:o,$=C?S:i,se=R("flex items-start gap-2 px-4 py-3 rounded-control transition-all",v.bg,v.border,C&&"font-sans-rtl"),B=R("w-5 h-5 shrink-0",v.iconColor),re=R("text-[15px] font-medium leading-[24px]",v.titleColor,C?"text-right":"text-left"),ee=R("text-[14px] font-normal leading-[20px]",v.messageColor,C?"text-right":"text-left"),le=R("text-[15px] font-medium leading-[24px] underline cursor-pointer transition-colors",v.actionColor),ve=R("w-5 h-5 shrink-0 cursor-pointer transition-colors",v.closeColor);return u.jsxs("div",{ref:d,className:R(se,E),dir:C?"rtl":void 0,...f,children:[u.jsxs("div",{className:"flex-1 flex items-start gap-2",children:[!C&&u.jsx(b,{className:B}),u.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[u.jsx("div",{className:re,dir:C?"rtl":void 0,children:w}),N&&L&&u.jsx("div",{className:ee,dir:C?"rtl":void 0,children:L}),l&&N&&u.jsxs("div",{className:R("flex gap-4 mt-2",C&&"flex-row-reverse"),children:[s&&u.jsx("button",{type:"button",onClick:s,className:le,children:T}),a&&u.jsx("button",{type:"button",onClick:a,className:le,children:$})]})]}),C&&u.jsx(b,{className:B})]}),l&&!N&&s&&u.jsx("button",{type:"button",onClick:s,className:R(le,"shrink-0 whitespace-nowrap"),children:T}),c&&g&&u.jsx("button",{type:"button",onClick:g,className:ve,"aria-label":"Close",children:u.jsx(e0,{className:"w-4 h-4"})})]})});P0.displayName="Alert";const L0=V.forwardRef(({direction:e="horizontal",type:t="solid",color:n,spacing:r="none",className:l,...o},i)=>{const s={none:"",xs:e==="horizontal"?"my-1":"mx-1",sm:e==="horizontal"?"my-2":"mx-2",md:e==="horizontal"?"my-4":"mx-4",lg:e==="horizontal"?"my-6":"mx-6",xl:e==="horizontal"?"my-8":"mx-8"};return e==="horizontal"?u.jsx("hr",{ref:i,className:R("w-full border-0",t==="solid"?"border-t border-solid":"border-t border-dashed",n?`border-[${n}]`:"border-neutral-200",s[r],l),...o}):u.jsx("div",{ref:i,className:R("h-full",t==="solid"?"border-l border-solid":"border-l border-dashed",n?`border-[${n}]`:"border-neutral-200",s[r],l),...o})});L0.displayName="Divider";const R0=V.forwardRef(({type:e="default",state:t="default",label:n="Text item",supportText:r,leadingIcon:l,trailingIcon:o,avatarSrc:i,avatarInitials:s,badgeText:a,badgeVariant:c="neutral",rightText:g,hasSwitch:h=!1,switchActive:m=!1,onSwitchChange:x,buttonText:k="Button",onButtonClick:S,progress:E=40,progressLabel:f="Label",progressOptional:d="(Optional)",caption:p,rtl:v=!1,onClick:b,className:C,...N},w)=>{if(e==="divider")return u.jsx("div",{ref:w,className:R("flex items-center px-0 py-0.5",C),...N,children:u.jsx("div",{className:"flex-1 border-t border-neutral-200"})});if(e==="button")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",C),...N,children:u.jsx("button",{onClick:S,className:R("w-full h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",t==="disabled"&&"opacity-50 cursor-not-allowed"),disabled:t==="disabled",children:k})});if(e==="label")return u.jsxs("div",{ref:w,className:R("flex items-center gap-0 px-4 py-1","text-[13px] leading-5",v&&"flex-row-reverse",C),...N,children:[u.jsx("div",{className:R("flex-1",v&&"text-right"),children:u.jsx("p",{className:"font-medium text-neutral-900",children:n})}),p&&u.jsx("p",{className:"text-neutral-600",children:p})]});if(e==="caption")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",C),...N,children:u.jsx("div",{className:"flex items-center justify-center px-1.5 py-1",children:u.jsx("p",{className:R("flex-1 text-[13px] leading-5 text-neutral-600",v&&"text-right"),children:"Lorem ipsum dolor sit amet"})})});if(e==="progress")return u.jsx("div",{ref:w,className:R("flex items-center px-1.5 py-0",v&&"justify-end",C),...N,children:u.jsx("div",{className:"flex flex-col items-start px-1.5 py-1 flex-1",children:u.jsxs("div",{className:"flex flex-col gap-2 items-start w-full",children:[u.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:u.jsx("div",{className:"bg-neutral-200 h-2 rounded-full w-full relative",children:u.jsx("div",{className:"absolute left-0 top-0 h-full bg-blue-500 rounded-full transition-all",style:{width:`${E}%`}})})}),u.jsxs("div",{className:R("flex gap-2 items-center w-full",v&&"flex-row-reverse"),children:[u.jsxs("div",{className:R("flex items-center gap-1 flex-1",v&&"flex-row-reverse justify-end"),children:[u.jsx("p",{className:R("text-[13px] leading-5 font-medium text-neutral-900",v&&"text-right"),children:f}),u.jsx("p",{className:"text-[13px] leading-5 text-neutral-600",children:d})]}),u.jsx("div",{className:"flex gap-0.5 items-center",children:u.jsxs("p",{className:"text-[12px] leading-4 text-neutral-600",children:[E,"%"]})})]})]})})});const L=t==="disabled",$=R("flex gap-1 items-center px-1.5 py-1 rounded-md flex-1 transition-colors cursor-pointer",e==="multiline"&&"min-h-[48px] py-1",t==="hover"&&!L&&"bg-neutral-100",L&&"opacity-60 cursor-not-allowed",v&&"flex-row-reverse"),se=()=>{const B=[];if(l&&B.push(u.jsx("div",{className:R("flex items-center pl-0.5 pr-0",v&&"pl-0 pr-0.5"),children:u.jsx(l,{className:R("h-5 w-5",L?"text-neutral-400":"text-neutral-600")})},"leading-icon")),i||s){const re=e==="multiline"?"h-10 w-10":"h-6 w-6",ee=e==="multiline"?"text-sm":"text-xs";B.push(u.jsx("div",{className:R("flex items-center pl-0.5 pr-0",v&&"pl-0 pr-0.5"),children:i?u.jsx("img",{src:i,alt:s||"Avatar",className:R(re,"rounded-full border border-neutral-200 object-cover",L&&"opacity-60")}):u.jsx("div",{className:R(re,"rounded-full bg-blue-100 border border-neutral-200","flex items-center justify-center",ee,"font-medium text-blue-700",L&&"opacity-60"),children:s||"??"})},"avatar"))}return e==="multiline"||e==="cta"?B.push(u.jsxs("div",{className:R("flex flex-col items-start flex-1 pl-1 pr-0",v&&"pl-0 pr-1 items-end text-right"),children:[u.jsx("p",{className:R("text-[15px] leading-6",L?"text-neutral-400":"text-neutral-900"),children:n}),r&&u.jsx("p",{className:R("text-[12px] leading-4",L?"text-neutral-400":"text-neutral-600"),children:r})]},"text")):B.push(u.jsx("div",{className:R("flex items-center flex-1 pl-1 pr-0",v&&"pl-0 pr-1 justify-end"),children:u.jsx("p",{className:R("text-[15px] leading-6",L?"text-neutral-400":"text-neutral-900",v&&"text-right"),children:n})},"text")),h&&B.push(u.jsx("div",{className:"flex flex-col items-center",children:u.jsx("button",{onClick:re=>{re.stopPropagation(),!L&&x&&x(!m)},disabled:L,className:R("w-8 h-[18px] p-[3px] rounded-full flex items-center transition-colors",m?"bg-green-500 justify-end":"bg-neutral-300 justify-start",L&&"opacity-50 cursor-not-allowed"),children:u.jsx("div",{className:"w-3.5 h-3.5 bg-white rounded-full shadow-sm"})})},"switch")),a&&B.push(u.jsx("div",{className:"flex flex-col items-center",children:u.jsx(fd,{color:c,size:"sm",children:a})},"badge")),g&&B.push(u.jsx("div",{className:"flex items-center",children:u.jsx("p",{className:R("text-[12px] leading-4",L?"text-neutral-400":"text-neutral-600",v&&"text-left"),children:g})},"right-text")),e==="cta"&&B.push(u.jsx("button",{onClick:re=>{re.stopPropagation(),!L&&S&&S()},disabled:L,className:R("h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",L&&"opacity-50 cursor-not-allowed"),children:k},"cta-button")),o&&B.push(u.jsx("div",{className:"flex items-center",children:u.jsx(o,{className:R("h-4 w-4",L?"text-neutral-400":"text-neutral-500")})},"trailing-icon")),v?B.reverse():B};return u.jsx("div",{ref:w,className:R("flex items-center gap-0 px-1.5 py-0",v&&"justify-end",C),onClick:L?void 0:b,...N,children:u.jsx("div",{className:$,children:se()})})});R0.displayName="MenuItem";const T0=V.forwardRef(({children:e,width:t=260,rtl:n=!1,className:r,...l},o)=>u.jsx("div",{ref:o,className:R("bg-white border border-neutral-200 rounded-xl shadow-lg","flex flex-col gap-1 items-start py-1.5","overflow-hidden",r),style:{width:typeof t=="number"?`${t}px`:t},...l,children:e}));T0.displayName="Menu";function Le(...e){return Er(br(e))}const O0=V.forwardRef(({label:e="Enter question title",description:t="Ants are fascinating insects known for their complex social structures and teamwork. They communicate through pheromones and work together to build intricate nests. Ants play crucial roles in ecosystems, from soil aeration to seed dispersal.",icon:n=!0,iconLeft:r,badge:l=!0,badgeText:o="Badge",action:i=!0,actionText:s="Button",onActionClick:a,style:c="Default",state:g="Default",rtl:h=!1,expandable:m=!1,expanded:x,onToggle:k,rtlLabel:S,rtlDescription:E,className:f,...d},p)=>{const[v,b]=V.useState(!1),C=x!==void 0?x:v,N=h,w=()=>{if(m){const M=!C;x===void 0&&b(M),k==null||k(M)}},L=N&&S?S:e,T=N&&E?E:t,$=Le("flex items-start gap-3 p-5","transition-all duration-150 ease-in-out",m&&"cursor-pointer","w-full",N&&"font-sans-rtl",c==="Default"?Le("border-b border-neutral-200",g==="Hover"&&m&&"bg-neutral-50"):Le("border border-neutral-200 rounded-xl","shadow-component-default",g==="Hover"&&m&&"bg-neutral-50","relative"),f),se=Le("flex flex-col justify-center","font-semibold text-[17px] leading-[28px]","text-neutral-900",N?"text-right":"text-left"),B=Le("text-[15px] leading-[24px]","text-neutral-600",N?"text-right":"text-left"),re=Le("flex items-center justify-center","h-7 px-3 py-0","bg-neutral-50 rounded-full","text-[12px] leading-[16px] font-medium","text-neutral-900 whitespace-nowrap"),ee=r||(n?u.jsx(ud,{className:"h-6 w-6 text-neutral-600 flex-shrink-0"}):null),le=C?Fm:Im,ve=Le("h-6 w-6 text-neutral-500 flex-shrink-0"),y=m?"button":"div",O=m?{ref:p,type:"button",onClick:w,...d}:{...d};return u.jsxs(y,{...O,dir:N?"rtl":void 0,className:$,children:[ee&&!N&&u.jsx("div",{className:"flex-shrink-0",children:ee}),m&&N&&u.jsx("div",{className:"flex-shrink-0",children:u.jsx(le,{className:ve})}),u.jsxs("div",{className:Le("flex flex-col gap-1.5 flex-1 min-w-0",N?"items-end":"items-start"),children:[u.jsx("div",{className:Le("flex gap-1.5 items-start w-full",N?"flex-row-reverse":"flex-row"),children:N?u.jsxs(u.Fragment,{children:[l&&u.jsx("div",{className:Le(re,"font-sans-rtl"),dir:"rtl",children:o}),u.jsx("div",{className:Le(se,"flex-1"),dir:"rtl",children:u.jsx("p",{children:L})})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:Le(se,"flex-1"),children:u.jsx("p",{children:L})}),l&&u.jsx("div",{className:re,children:o})]})}),C&&T&&u.jsx("div",{className:"w-full",dir:N?"rtl":void 0,children:u.jsx("p",{className:B,children:T})}),C&&i&&u.jsx("div",{className:"pt-4 w-full flex",style:{justifyContent:N?"flex-end":"flex-start"},children:u.jsxs("button",{type:"button",onClick:M=>{M.stopPropagation(),a==null||a()},className:Le("relative flex items-center justify-center gap-1","h-10 px-2.5 py-2","bg-neutral-50 border border-neutral-300 rounded-control","shadow-component-default","text-[15px] leading-[24px] font-medium text-neutral-900","hover:bg-neutral-100 transition-colors","cursor-pointer"),dir:N?"rtl":void 0,children:[u.jsx(Si,{className:"h-5 w-5 flex-shrink-0"}),u.jsx("span",{className:"px-1 whitespace-nowrap",children:N?"انقر هنا":s}),u.jsx(Si,{className:"h-5 w-5 flex-shrink-0"}),u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})})]}),m&&!N&&u.jsx("div",{className:"flex-shrink-0",children:u.jsx(le,{className:ve})}),ee&&N&&u.jsx("div",{className:"flex-shrink-0",children:ee}),c==="Boxed"&&u.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-xl shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})});O0.displayName="Accordion";function M0(){const[e,t]=V.useState(!1),[n,r]=V.useState(!1);return V.useEffect(()=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),V.useEffect(()=>{n?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr")},[n]),u.jsxs("div",{className:"min-h-screen bg-white dark:bg-neutral-900 transition-colors duration-200",children:[u.jsx("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 py-6",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"text-3xl font-bold text-neutral-900 dark:text-white",children:"banhaten-ui"}),u.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 mt-1",children:"Interactive Component Showcase"})]}),u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx(Fe,{label:e?"🌙 Dark":"☀️ Light",checked:e,onCheckedChange:t,size:"md"}),u.jsx(Fe,{label:n?"RTL ⬅️":"LTR ➡️",checked:n,onCheckedChange:r,size:"md"})]})]})})}),u.jsxs("main",{className:"max-w-7xl mx-auto px-6 py-12",children:[u.jsxs("section",{className:"space-y-8",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white mb-2",children:"Button Component"}),u.jsxs("p",{className:"text-neutral-600 dark:text-neutral-400",children:["All button variants with ",e?"dark":"light"," theme and ",n?"RTL":"LTR"," direction"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Primary Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Primary"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"زر أساسي":"Primary Button"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Soft"}),u.jsx(ue,{variant:"soft",size:"md",rtl:n,children:n?"زر ناعم":"Soft Button"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Ghost Primary"}),u.jsx(ue,{variant:"ghost-primary",size:"md",rtl:n,children:n?"زر شفاف":"Ghost Button"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Other Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Secondary"}),u.jsx(ue,{variant:"secondary",size:"md",rtl:n,children:n?"زر ثانوي":"Secondary"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Outline"}),u.jsx(ue,{variant:"outline",size:"md",rtl:n,children:n?"زر محدد":"Outline"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Dashed"}),u.jsx(ue,{variant:"dashed",size:"md",rtl:n,children:n?"زر متقطع":"Dashed"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"White"}),u.jsx(ue,{variant:"white",size:"md",rtl:n,children:n?"زر أبيض":"White"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Ghost"}),u.jsx(ue,{variant:"ghost",size:"md",rtl:n,children:n?"زر شفاف":"Ghost"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Danger Variants"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Danger"}),u.jsx(ue,{variant:"danger",size:"md",rtl:n,children:n?"زر خطر":"Danger"})]}),u.jsxs("div",{className:"p-6 border border-neutral-200 dark:border-neutral-700 rounded-lg bg-neutral-50 dark:bg-neutral-800",children:[u.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-3",children:"Soft Danger"}),u.jsx(ue,{variant:"soft-danger",size:"md",rtl:n,children:n?"زر خطر ناعم":"Soft Danger"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Button Sizes"}),u.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Extra Small"}),u.jsx(ue,{variant:"primary",size:"xs",rtl:n,children:n?"صغير جداً":"XS Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Small"}),u.jsx(ue,{variant:"primary",size:"sm",rtl:n,children:n?"صغير":"Small Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Medium"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"متوسط":"Medium Button"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Large"}),u.jsx(ue,{variant:"primary",size:"lg",rtl:n,children:n?"كبير":"Large Button"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Button States"}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Normal"}),u.jsx(ue,{variant:"primary",size:"md",rtl:n,children:n?"عادي":"Normal"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Loading"}),u.jsx(ue,{variant:"primary",size:"md",loading:!0,rtl:n,children:n?"تحميل":"Loading"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:"Disabled"}),u.jsx(ue,{variant:"primary",size:"md",disabled:!0,rtl:n,children:n?"معطل":"Disabled"})]})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Full Width Button"}),u.jsx(ue,{variant:"primary",size:"md",fullWidth:!0,rtl:n,children:n?"زر بعرض كامل":"Full Width Button"})]})]}),u.jsxs("section",{className:"mt-16 space-y-8",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white mb-2",children:"Switcher Component"}),u.jsx("p",{className:"text-neutral-600 dark:text-neutral-400",children:"Toggle switches for binary options"})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"Sizes"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"Small",size:"sm"}),u.jsx(Fe,{label:"Medium",size:"md",checked:!0}),u.jsx(Fe,{label:"Large",size:"lg"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"States"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"Unchecked"}),u.jsx(Fe,{label:"Checked",checked:!0}),u.jsx(Fe,{label:"Disabled",disabled:!0}),u.jsx(Fe,{label:"Disabled Checked",checked:!0,disabled:!0})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-white",children:"RTL Support"}),u.jsxs("div",{className:"flex flex-wrap gap-6",children:[u.jsx(Fe,{label:"LTR Switcher",rtl:!1}),u.jsx(Fe,{label:"مفتاح RTL",rtl:!0,checked:!0})]})]})]})]}),u.jsx("footer",{className:"border-t border-neutral-200 dark:border-neutral-800 mt-16",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 py-8",children:u.jsx("p",{className:"text-center text-neutral-600 dark:text-neutral-400",children:"banhaten-ui v0.0.11 • Built with React, TypeScript & Tailwind CSS"})})})]})}Kc(document.getElementById("root")).render(u.jsx(V.StrictMode,{children:u.jsx(M0,{})}));
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <link rel="preconnect" href="https://fonts.googleapis.com">
10
10
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
11
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap" rel="stylesheet">
12
- <script type="module" crossorigin src="/assets/index-BUzQLa3D.js"></script>
12
+ <script type="module" crossorigin src="/assets/index-BGiF-5-q.js"></script>
13
13
  <link rel="stylesheet" crossorigin href="/assets/index-CxVUKmCr.css">
14
14
  </head>
15
15
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "banhaten-ui",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A comprehensive React component library with RTL support, built with TypeScript and Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -55,9 +55,9 @@
55
55
  "prepublishOnly": "npm run typecheck && npm run build"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^18.0.0",
59
- "react-dom": "^18.0.0",
60
- "tailwindcss": "^3.4.0"
58
+ "react": ">=16.8.0",
59
+ "react-dom": ">=16.8.0",
60
+ "tailwindcss": ">=3.0.0"
61
61
  },
62
62
  "dependencies": {
63
63
  "@base-ui/react": "^1.0.0",