aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
64 lines (59 loc) • 1.74 kB
JavaScript
import { jsx, Fragment } from 'react/jsx-runtime';
const createFallbackSheet = () => ({
collectStyles: children => jsx(Fragment, {
children: children
}),
getStyleElement: () => [],
getStyleTags: () => "",
seal: () => undefined,
instance: null
});
function createStyleSheet() {
return createFallbackSheet();
}
function collectStyles() {
return createFallbackSheet();
}
const AuraGlassSSRProvider = ({
children
}) => jsx(Fragment, {
children: children
});
function isStyledComponentsSSRReady() {
return true;
}
function getStyledComponentsVersion() {
return null;
}
/**
* SSR (Server-Side Rendering) Utilities
*
* Shared helpers for safe browser API access across all components.
* Prevents hydration mismatches and runtime errors during SSR.
*/
// Re-export existing browser detection utilities
/**
* Check if running in development mode
*/
process.env.NODE_ENV === "development";
/**
* Check if running in production mode
*/
process.env.NODE_ENV === "production";
/**
* Registry helpers are retained for backward compatibility. The design-token
* architecture no longer requires a runtime stylesheet registry, so these
* functions are implemented as innocuous no-ops that always report success.
*/
const markStyledRegistryHealthy = () => {
/* noop */
};
const clearStyledRegistryHealth = () => {
/* noop */
};
const hasStyledComponentsRegistry = () => true;
const ensureStyledComponentsRegistry = () => {
/* noop */
};
export { AuraGlassSSRProvider, clearStyledRegistryHealth, collectStyles, createStyleSheet, ensureStyledComponentsRegistry, getStyledComponentsVersion, hasStyledComponentsRegistry, isStyledComponentsSSRReady, markStyledRegistryHealthy };
//# sourceMappingURL=server.mjs.map