aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
74 lines (68 loc) • 2.09 kB
JavaScript
;
var jsxRuntime = require('react/jsx-runtime');
const createFallbackSheet = () => ({
collectStyles: children => jsxRuntime.jsx(jsxRuntime.Fragment, {
children: children
}),
getStyleElement: () => [],
getStyleTags: () => "",
seal: () => undefined,
instance: null
});
function createStyleSheet() {
return createFallbackSheet();
}
function collectStyles() {
return createFallbackSheet();
}
const AuraGlassSSRProvider = ({
children
}) => jsxRuntime.jsx(jsxRuntime.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 */
};
exports.AuraGlassSSRProvider = AuraGlassSSRProvider;
exports.clearStyledRegistryHealth = clearStyledRegistryHealth;
exports.collectStyles = collectStyles;
exports.createStyleSheet = createStyleSheet;
exports.ensureStyledComponentsRegistry = ensureStyledComponentsRegistry;
exports.getStyledComponentsVersion = getStyledComponentsVersion;
exports.hasStyledComponentsRegistry = hasStyledComponentsRegistry;
exports.isStyledComponentsSSRReady = isStyledComponentsSSRReady;
exports.markStyledRegistryHealthy = markStyledRegistryHealthy;
//# sourceMappingURL=server.js.map