bismillahcss
Version:
The next-gen utility-first CSS framework for modern, futuristic web development.
331 lines (323 loc) • 8.74 kB
TypeScript
export { BComponent, BConfig, bComponentSchema, bConfigSchema } from './schema/index.js';
export { bIcons, getIcon } from './icons/index.js';
export { bMCP, registerMCP } from './mcp/index.js';
export { applyPreset, bPresets } from './preset/index.js';
export { bRegistry, getRegistry, queryRegistry } from './registry/index.js';
export { default as bUtils, flattenColorPalette } from './utils/index.js';
import 'zod';
import 'kleur';
/**
* BismillahCSS-UI /FUTURISTIC/
* Design Intelligence Primitives
*/
/**
* Tracks mouse position on an element for spotlight/glow effects.
* Usage: bSpotlight(element)
*/
declare function bSpotlight(el: HTMLElement): void;
/**
* Handle floating navbar shrink/move on scroll.
*/
declare function bFloatingNav(el: HTMLElement, threshold?: number): void;
/**
* Progressive text reveal trigger.
*/
declare function bTextReveal(el: HTMLElement): void;
/**
* Magnetic element effect.
*/
declare function bMagnetic(el: HTMLElement, strength?: number): void;
/**
* Tracks mouse position for glare reflection.
*/
declare function bGlare(el: HTMLElement): void;
/**
* Tracks mouse for circular text reveal effects.
*/
declare function bReveal(el: HTMLElement): void;
/**
* Autocomplete functionality.
*/
declare function bAutocomplete(el: HTMLElement): void;
/**
* Button functionality.
*/
declare function bButton(el: HTMLElement): void;
/**
* Button Group functionality.
*/
declare function bButtonGroup(el: HTMLElement): void;
/**
* Checkbox functionality.
*/
declare function bCheckbox(el: HTMLElement): void;
/**
* Floating Action Button functionality.
*/
declare function bFloatingActionButton(el: HTMLElement): void;
/**
* Text Field functionality.
*/
declare function bTextField(el: HTMLElement): void;
/**
* Card functionality.
*/
declare function bCard(el: HTMLElement): void;
/**
* Alert functionality.
*/
declare function bAlert(el: HTMLElement): void;
/**
* Dialog functionality.
*/
declare function bDialog(el: HTMLElement): void;
/**
* CircularProgress functionality.
*/
declare function bCircularProgress(el: HTMLElement): void;
/**
* Stepper functionality.
*/
declare function bStepper(el: HTMLElement): void;
/**
* Tabs functionality.
*/
declare function bTabs(el: HTMLElement): void;
/**
* Tooltip functionality.
*/
declare function bTooltip(el: HTMLElement): void;
/**
* AccordionActions functionality.
*/
declare function bAccordionActions(el: HTMLElement): void;
/**
* AlertTitle functionality.
*/
declare function bAlertTitle(el: HTMLElement): void;
/**
* Table functionality.
*/
declare function bTable(el: HTMLElement): void;
/**
* Box functionality.
*/
declare function bBox(el: HTMLElement): void;
/**
* Container functionality.
*/
declare function bContainer(el: HTMLElement): void;
/**
* Grid functionality.
*/
declare function bGrid(el: HTMLElement): void;
/**
* Stack functionality.
*/
declare function bStack(el: HTMLElement): void;
/**
* CSS Baseline functionality.
*/
declare function bCSSBaseline(el: HTMLElement): void;
/**
* Avatar functionality.
*/
declare function bAvatar(el: HTMLElement): void;
/**
* Badge functionality.
*/
declare function bBadge(el: HTMLElement): void;
/**
* Chip functionality.
*/
declare function bChip(el: HTMLElement): void;
/**
* Divider functionality.
*/
declare function bDivider(el: HTMLElement): void;
/**
* Breadcrumbs functionality.
*/
declare function bBreadcrumbs(el: HTMLElement): void;
/**
* App Bar functionality.
*/
declare function bAppBar(el: HTMLElement): void;
/**
* Pagination functionality.
*/
declare function bPagination(el: HTMLElement): void;
/**
* Stepper logic bridge.
*/
declare function bTimeline(el: HTMLElement): void;
declare const colors: Record<string, string | Record<string, string>>;
declare const defaultTheme: {
colors: {
primary: string;
secondary: string;
accent: string;
success: string;
warning: string;
danger: string;
info: string;
background: string;
surface: string;
text: string;
muted: string;
};
spacing: {
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
'2xl': string;
'3xl': string;
};
borderRadius: {
none: string;
sm: string;
md: string;
lg: string;
xl: string;
'2xl': string;
full: string;
};
fontFamily: {
sans: string;
mono: string;
display: string;
};
glows: {
primary: string;
secondary: string;
accent: string;
};
blur: {
sm: string;
md: string;
lg: string;
xl: string;
};
};
/**
* BismillahCSS UI Core Logic Library
* Designed for pure performance and spatial design intelligence.
*/
declare const bLibrary: {
theme: {
colors: {
primary: string;
secondary: string;
accent: string;
success: string;
warning: string;
danger: string;
info: string;
background: string;
surface: string;
text: string;
muted: string;
};
spacing: {
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
'2xl': string;
'3xl': string;
};
borderRadius: {
none: string;
sm: string;
md: string;
lg: string;
xl: string;
'2xl': string;
full: string;
};
fontFamily: {
sans: string;
mono: string;
display: string;
};
glows: {
primary: string;
secondary: string;
accent: string;
};
blur: {
sm: string;
md: string;
lg: string;
xl: string;
};
};
/**
* Initialize all Bismillah Primitives on a page.
* Auto-detects elements with specific classes.
*/
init: () => void;
bSpotlight(el: HTMLElement): void;
bFloatingNav(el: HTMLElement, threshold?: number): void;
bTextReveal(el: HTMLElement): void;
bMagnetic(el: HTMLElement, strength?: number): void;
bGlare(el: HTMLElement): void;
bReveal(el: HTMLElement): void;
bAutocomplete(el: HTMLElement): void;
bButton(el: HTMLElement): void;
bButtonGroup(el: HTMLElement): void;
bCheckbox(el: HTMLElement): void;
bFloatingActionButton(el: HTMLElement): void;
bTextField(el: HTMLElement): void;
bCard(el: HTMLElement): void;
bAlert(el: HTMLElement): void;
bDialog(el: HTMLElement): void;
bCircularProgress(el: HTMLElement): void;
bStepper(el: HTMLElement): void;
bTabs(el: HTMLElement): void;
bTooltip(el: HTMLElement): void;
bAccordionActions(el: HTMLElement): void;
bAlertTitle(el: HTMLElement): void;
bTable(el: HTMLElement): void;
bBox(el: HTMLElement): void;
bContainer(el: HTMLElement): void;
bGrid(el: HTMLElement): void;
bStack(el: HTMLElement): void;
bCSSBaseline(el: HTMLElement): void;
bAvatar(el: HTMLElement): void;
bBadge(el: HTMLElement): void;
bChip(el: HTMLElement): void;
bDivider(el: HTMLElement): void;
bBreadcrumbs(el: HTMLElement): void;
bAppBar(el: HTMLElement): void;
bPagination(el: HTMLElement): void;
bTimeline(el: HTMLElement): void;
};
/**
* BismillahCSS Framework Plugin
* Designed to integrate seamlessly with modern build systems.
* Provides theme resolution and configuration injection.
*/
declare const bPlugin: {
name: string;
/**
* PostCSS or Tailwind-like integration logic.
* Injects current theme into the build process.
*/
resolveConfig: (userConfig?: any) => any;
/**
* Tailwind CSS compat layer.
* Allows using BismillahCSS as a Tailwind plugin.
*/
tailwind: (params: {
addComponents: any;
theme: any;
}) => void;
};
declare function getFrameworkVersion(): string;
declare function getCoreStylesPath(): string;
declare function getUltraStylesPath(): string;
export { bAccordionActions, bAlert, bAlertTitle, bAppBar, bAutocomplete, bAvatar, bBadge, bBox, bBreadcrumbs, bButton, bButtonGroup, bCSSBaseline, bCard, bCheckbox, bChip, bCircularProgress, bContainer, bDialog, bDivider, bFloatingActionButton, bFloatingNav, bGlare, bGrid, bLibrary, bMagnetic, bPagination, bPlugin, bReveal, bSpotlight, bStack, bStepper, bTable, bTabs, bTextField, bTextReveal, bTimeline, bTooltip, colors, defaultTheme, getCoreStylesPath, getFrameworkVersion, getUltraStylesPath };