UNPKG

@nex-ui/styled

Version:

Styled API for creating atomic, theme-aware component styling.

14 lines (8 loc) 506 B
'use strict'; 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'; exports.getDefaultShouldForwardProp = getDefaultShouldForwardProp;