UNPKG

@kuma-ui/sheet

Version:

🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.

34 lines (31 loc) 611 B
import { __publicField } from "./chunk-NHABU752.mjs"; // src/cache.ts var _StyleCache = class { cache; constructor() { this.cache = /* @__PURE__ */ new Map(); } static getInstance() { if (!_StyleCache.instance) { _StyleCache.instance = new _StyleCache(); } return _StyleCache.instance; } get(key) { return this.cache.get(key); } set(key, styles) { this.cache.set(key, styles); } reset() { this.cache.clear(); } }; var StyleCache = _StyleCache; __publicField(StyleCache, "instance"); var styleCache = StyleCache.getInstance(); export { styleCache };