@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
26 lines (24 loc) • 784 B
JavaScript
const require_styled = require('./styled.cjs');
//#region src/core/system/factory.ts
function factory() {
const cache = /* @__PURE__ */ new Map();
return new Proxy(require_styled.createStyled, {
apply: function(_target, _thisArg, [el, options]) {
return require_styled.createStyled(el, options);
},
get: function(_target, el) {
if (!cache.has(el)) cache.set(el, require_styled.createStyled(el));
return cache.get(el);
}
});
}
/**
* `styled` is an object of JSX elements enabled with Yamada UI's style system,
* and can also be used as a function for custom components to receive Yamada UI's style system.
*
* @see https://yamada-ui.com/docs/components/styled
*/
const styled = factory();
//#endregion
exports.styled = styled;
//# sourceMappingURL=factory.cjs.map