@nex-ui/styled
Version:
Styled API for creating atomic, theme-aware component styling.
18 lines (12 loc) • 638 B
JavaScript
;
require('@nex-ui/utils');
var isPropValid = require('@emotion/is-prop-valid');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var isPropValid__default = /*#__PURE__*/_interopDefault(isPropValid);
const getDefaultShouldForwardProp = (tag)=>typeof tag === 'string' && // a 为 97,小于 97 即为大写
tag.charCodeAt(0) > 96 ? isPropValid__default.default : (key)=>key !== 'theme';
Object.defineProperty(exports, "isPropValid", {
enumerable: true,
get: function () { return isPropValid__default.default; }
});
exports.getDefaultShouldForwardProp = getDefaultShouldForwardProp;