bismillahcss
Version:
The next-gen utility-first CSS framework for modern, futuristic web development.
2 lines • 11.2 kB
JavaScript
import{a as Z,b as _}from"./chunk-YEKHVA3A.mjs";import{a as tt,b as et}from"./chunk-LMZQKBB2.mjs";import{a as st,b as ot}from"./chunk-6QQIENCM.mjs";import{a as rt,b as nt,c as it}from"./chunk-DKST4RQY.mjs";import{a as K,b as Q}from"./chunk-SHGUNYMR.mjs";import{a as at,b as d,c as lt}from"./chunk-HH5MQAPS.mjs";import"./chunk-YBRKC3QV.mjs";import{a as M}from"./chunk-XIJ2ZQRX.mjs";var L={};M(L,{bAccordionActions:()=>I,bAlert:()=>R,bAlertTitle:()=>A,bAppBar:()=>J,bAutocomplete:()=>H,bAvatar:()=>D,bBadge:()=>G,bBox:()=>$,bBreadcrumbs:()=>N,bButton:()=>f,bButtonGroup:()=>w,bCSSBaseline:()=>j,bCard:()=>m,bCheckbox:()=>k,bChip:()=>q,bCircularProgress:()=>h,bContainer:()=>z,bDialog:()=>S,bDivider:()=>O,bFloatingActionButton:()=>C,bFloatingNav:()=>c,bGlare:()=>x,bGrid:()=>X,bMagnetic:()=>b,bPagination:()=>U,bReveal:()=>u,bSpotlight:()=>p,bStack:()=>W,bStepper:()=>B,bTable:()=>Y,bTabs:()=>P,bTextField:()=>g,bTextReveal:()=>y,bTimeline:()=>V,bTooltip:()=>F});function p(t){t.addEventListener("mousemove",e=>{let{left:o,top:s}=t.getBoundingClientRect(),r=e.clientX-o,n=e.clientY-s;t.style.setProperty("--mouse-x",`${r}px`),t.style.setProperty("--mouse-y",`${n}px`)})}function c(t,e=50){window.addEventListener("scroll",()=>{window.scrollY>e?t.classList.add("scrolled"):t.classList.remove("scrolled")})}function y(t){new IntersectionObserver(o=>{o.forEach(s=>{s.isIntersecting&&t.classList.add("active")})},{threshold:.2}).observe(t)}function b(t,e=.5){t.addEventListener("mousemove",o=>{let{left:s,top:r,width:n,height:a}=t.getBoundingClientRect(),l=s+n/2,E=r+a/2,T=(o.clientX-l)*e,v=(o.clientY-E)*e;t.style.transform=`translate(${T}px, ${v}px)`}),t.addEventListener("mouseleave",()=>{t.style.transform="translate(0px, 0px)"})}function x(t){t.addEventListener("mousemove",e=>{let{left:o,top:s,width:r,height:n}=t.getBoundingClientRect(),a=(e.clientX-o)/r*100,l=(e.clientY-s)/n*100;t.style.setProperty("--glare-x",`${a}%`),t.style.setProperty("--glare-y",`${l}%`)})}function u(t){t.addEventListener("mousemove",e=>{let{left:o,top:s,width:r,height:n}=t.getBoundingClientRect(),a=(e.clientX-o)/r*100,l=(e.clientY-s)/n*100;t.style.setProperty("--reveal-x",`${a}%`),t.style.setProperty("--reveal-y",`${l}%`)})}function H(t){t.classList.add("b-autocomplete-futu");let e=t.querySelector("input");e&&(e.style.width="100%",e.style.background="rgba(255,255,255,0.02)",e.style.border="1px solid rgba(255,255,255,0.1)",e.style.padding="12px",e.style.borderRadius="8px",e.style.color="#fff")}function f(t){t.classList.add("b-btn-futu"),t.style.padding="12px 24px",t.style.borderRadius="8px",t.style.cursor="pointer",t.style.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",t.style.border="1px solid rgba(255,255,255,0.1)",t.style.background="rgba(255,255,255,0.05)",t.style.color="#fff",t.style.fontWeight="600",t.addEventListener("mouseenter",()=>{t.style.background="rgba(255,255,255,0.1)",t.style.borderColor="#00f2ff",t.style.boxShadow="0 0 15px rgba(0,242,255,0.2)"}),t.addEventListener("mouseleave",()=>{t.style.background="rgba(255,255,255,0.05)",t.style.borderColor="rgba(255,255,255,0.1)",t.style.boxShadow="none"})}function w(t){t.style.display="inline-flex",t.style.gap="1px",t.style.borderRadius="8px",t.style.overflow="hidden",t.style.border="1px solid rgba(255,255,255,0.1)"}function k(t){t.classList.add("b-checkbox-futu"),t.style.width="20px",t.style.height="20px",t.style.border="2px solid rgba(255,255,255,0.2)",t.style.borderRadius="4px",t.style.cursor="pointer",t.style.transition="0.3s"}function C(t){t.classList.add("b-fab-futu"),t.style.width="56px",t.style.height="56px",t.style.borderRadius="50%",t.style.background="#00f2ff",t.style.boxShadow="0 10px 30px rgba(0,242,255,0.3)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.position="fixed",t.style.bottom="32px",t.style.right="32px"}function g(t){t.classList.add("b-input-futu"),t.style.width="100%",t.style.padding="14px 20px",t.style.background="rgba(15, 15, 26, 0.5)",t.style.border="1px solid rgba(255,255,255,0.1)",t.style.borderRadius="12px",t.style.color="white",t.style.outline="none",t.style.transition="all 0.3s ease",t.addEventListener("focus",()=>{t.style.borderColor="#00f2ff",t.style.boxShadow="0 0 20px rgba(0, 242, 255, 0.2)",t.style.background="rgba(15, 15, 26, 0.8)"}),t.addEventListener("blur",()=>{t.style.borderColor="rgba(255,255,255,0.1)",t.style.boxShadow="none",t.style.background="rgba(15, 15, 26, 0.5)"})}function m(t){t.classList.add("b-card-futu"),t.style.background="rgba(20, 20, 25, 0.7)",t.style.backdropFilter="blur(16px)",t.style.webkitBackdropFilter="blur(16px)",t.style.border="1px solid rgba(255,255,255,0.1)",t.style.borderRadius="24px",t.style.padding="32px",t.style.transition="all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",t.addEventListener("mouseenter",()=>{t.style.transform="translateY(-10px)",t.style.borderColor="rgba(0, 242, 255, 0.3)",t.style.boxShadow="0 20px 40px rgba(0, 0, 0, 0.4)"}),t.addEventListener("mouseleave",()=>{t.style.transform="translateY(0)",t.style.borderColor="rgba(255,255,255,0.1)",t.style.boxShadow="none"})}function R(t){t.classList.add("b-alert-futu"),t.style.padding="16px",t.style.borderRadius="12px",t.style.background="rgba(0, 242, 255, 0.05)",t.style.borderLeft="4px solid #00f2ff",t.style.color="#fff",t.style.display="flex",t.style.alignItems="center",t.style.gap="12px"}function S(t){t.classList.add("b-dialog-futu"),t.style.position="fixed",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",t.style.background="rgba(10,10,15,0.9)",t.style.backdropFilter="blur(20px)",t.style.border="1px solid rgba(255,255,255,0.1)",t.style.padding="40px",t.style.borderRadius="24px",t.style.zIndex="2000",t.style.boxShadow="0 30px 60px rgba(0,0,0,0.5)"}function h(t){if(t.classList.add("b-circular-progress"),t.style.width="40px",t.style.height="40px",t.style.borderRadius="50%",t.style.border="3px solid rgba(0, 242, 255, 0.1)",t.style.borderTopColor="#00f2ff",t.style.animation="b-spin 1s linear infinite",!document.getElementById("b-spin-style")){let e=document.createElement("style");e.id="b-spin-style",e.innerHTML="@keyframes b-spin { to { transform: rotate(360deg); } }",document.head.appendChild(e)}}function B(t){t.style.display="flex",t.style.justifyContent="space-between",t.style.padding="20px",t.style.background="rgba(255,255,255,0.02)",t.style.borderBottom="1px solid rgba(255,255,255,0.05)"}function P(t){t.style.display="flex",t.style.gap="20px",t.style.borderBottom="1px solid rgba(255,255,255,0.1)",t.style.padding="0 10px"}function F(t){t.style.cursor="help",t.addEventListener("mouseenter",()=>{})}function I(t){t.classList.add("b-accordion-actions"),t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="flex-end",t.style.padding="8px"}function A(t){t.classList.add("b-alert-title"),t.style.fontWeight="700",t.style.marginBottom="4px",t.style.fontSize="1.1rem"}function Y(t){t.classList.add("b-table-futu"),t.style.width="100%",t.style.borderCollapse="separate",t.style.borderSpacing="0 8px"}function $(t){t.style.display="block"}function z(t){t.style.maxWidth="1200px",t.style.margin="0 auto",t.style.padding="0 20px"}function X(t){t.style.display="grid",t.style.gap="16px"}function W(t){t.style.display="flex",t.style.flexDirection="column",t.style.gap="16px"}function j(t){document.body.style.margin="0",document.body.style.background="#0a0a0c",document.body.style.color="#fff",document.body.style.fontFamily="Inter, sans-serif"}function D(t){t.style.width="40px",t.style.height="40px",t.style.borderRadius="50%",t.style.overflow="hidden",t.style.background="#222"}function G(t){t.style.display="inline-flex",t.style.padding="2px 6px",t.style.borderRadius="20px",t.style.fontSize="11px",t.style.background="#00f2ff",t.style.color="#000"}function q(t){t.style.display="inline-flex",t.style.padding="6px 12px",t.style.borderRadius="50px",t.style.background="rgba(255,255,255,0.05)",t.style.border="1px solid rgba(255,255,255,0.1)",t.style.fontSize="0.9rem"}function O(t){t.style.height="1px",t.style.background="rgba(255,255,255,0.05)",t.style.width="100%",t.style.margin="16px 0"}function N(t){t.style.display="flex",t.style.gap="8px",t.style.color="rgba(255,255,255,0.5)"}function J(t){t.style.height="64px",t.style.background="rgba(15,15,26,0.8)",t.style.backdropFilter="blur(10px)",t.style.display="flex",t.style.alignItems="center",t.style.padding="0 24px"}function U(t){t.style.display="flex",t.style.gap="4px"}function V(t){t.style.display="flex",t.style.flexDirection="column",t.style.gap="20px"}var i={colors:{primary:"#00f2ff",secondary:"#7000ff",accent:"#ff00d9",success:"#00ff88",warning:"#ffbb00",danger:"#ff2255",info:"#00ccff",background:"#0a0a0c",surface:"#151518",text:"#ffffff",muted:"#88888f"},spacing:{xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px","2xl":"48px","3xl":"64px"},borderRadius:{none:"0",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},fontFamily:{sans:"Inter, system-ui, -apple-system, sans-serif",mono:"JetBrains Mono, monospace",display:"Outfit, sans-serif"},glows:{primary:"0 0 20px rgba(0, 242, 255, 0.3)",secondary:"0 0 20px rgba(112, 0, 255, 0.3)",accent:"0 0 20px rgba(255, 0, 217, 0.3)"},blur:{sm:"4px",md:"8px",lg:"16px",xl:"24px"}};var ct={...L,theme:i,init:()=>{if(typeof document>"u")return;Object.entries({".b-spotlight":p,".b-magnetic":b,".b-glare":x,".b-reveal":u,".b-text-reveal":y,".b-floating-nav":e=>c(e),".b-card-futu":m,".b-btn-futu":f,".b-input-futu":g,".b-circular-progress":h}).forEach(([e,o])=>{document.querySelectorAll(e).forEach(s=>o(s))}),console.log("%c BismillahCSS Primitives Initialized ","background: #00f2ff; color: #000; font-weight: bold; border-radius: 4px; padding: 2px 8px;")}};var ut={name:"bismillahcss-plugin",resolveConfig:(t={})=>({...i,...t,colors:{...d(i.colors),...t.colors?d(t.colors):{}}}),tailwind:t=>{let{addComponents:e,theme:o}=t,s=o("bismillahcss")||i;e({".b-container":{maxWidth:s.spacing?.container||"1200px",margin:"0 auto",padding:"0 2rem"},".b-btn-futu":{background:s.colors?.primary,borderRadius:s.borderRadius?.md,padding:"0.75rem 1.5rem",fontWeight:"600",transition:"all 0.3s ease"}})}};function gt(){return"3.1.0"}function mt(){return"./dist/bismillah.css"}function ht(){return"./src/components/high-quality-ultra.css"}export{ot as applyPreset,I as bAccordionActions,R as bAlert,A as bAlertTitle,J as bAppBar,H as bAutocomplete,D as bAvatar,G as bBadge,$ as bBox,N as bBreadcrumbs,f as bButton,w as bButtonGroup,j as bCSSBaseline,m as bCard,k as bCheckbox,q as bChip,h as bCircularProgress,Q as bComponentSchema,K as bConfigSchema,z as bContainer,S as bDialog,O as bDivider,C as bFloatingActionButton,c as bFloatingNav,x as bGlare,X as bGrid,Z as bIcons,ct as bLibrary,tt as bMCP,b as bMagnetic,U as bPagination,ut as bPlugin,st as bPresets,rt as bRegistry,u as bReveal,p as bSpotlight,W as bStack,B as bStepper,Y as bTable,P as bTabs,g as bTextField,y as bTextReveal,V as bTimeline,F as bTooltip,lt as bUtils,at as colors,i as defaultTheme,d as flattenColorPalette,mt as getCoreStylesPath,gt as getFrameworkVersion,_ as getIcon,nt as getRegistry,ht as getUltraStylesPath,it as queryRegistry,et as registerMCP};
//# sourceMappingURL=index.mjs.map