@meonode/ui
Version:
A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.
2 lines (1 loc) • 2.19 kB
JavaScript
;require("react");const e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),n=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),l=Symbol.for("react.client.reference"),y=Symbol.for("react.activity");function x(l){if("object"==typeof l&&null!==l){const y=l.$$typeof;switch(y){case e:{const e=l.type;switch(e){case r:case s:case o:case a:case i:case _:return e;default:{const t=e?.$$typeof;switch(t){case n:case E:case T:case f:case c:case p:return t;default:return y}}}}case t:return y}}}const R=new Set([r,s,o,a,i,_,y]);exports.REACT_ACTIVITY_TYPE=y,exports.REACT_CLIENT_REFERENCE=l,exports.REACT_CONSUMER_TYPE=p,exports.REACT_CONTEXT_TYPE=n,exports.REACT_ELEMENT_TYPE=e,exports.REACT_FORWARD_REF_TYPE=E,exports.REACT_FRAGMENT_TYPE=r,exports.REACT_LAZY_TYPE=T,exports.REACT_MEMO_TYPE=f,exports.REACT_PORTAL_TYPE=t,exports.REACT_PROFILER_TYPE=s,exports.REACT_PROVIDER_TYPE=c,exports.REACT_STRICT_MODE_TYPE=o,exports.REACT_SUSPENSE_LIST_TYPE=i,exports.REACT_SUSPENSE_TYPE=a,exports.REACT_VIEW_TRANSITION_TYPE=_,exports.isContextConsumer=e=>x(e)===p,exports.isContextProvider=e=>x(e)===c,exports.isElement=t=>"object"==typeof t&&null!==t&&t.$$typeof===e,exports.isForwardRef=e=>x(e)===E,exports.isFragment=e=>x(e)===r,exports.isLazy=e=>x(e)===T,exports.isMemo=e=>x(e)===f,exports.isPortal=e=>x(e)===t,exports.isProfiler=e=>x(e)===s,exports.isReactClassComponent=e=>{if("function"!=typeof e)return!1;const t=e.prototype;return!(!t||!t.isReactComponent)},exports.isStrictMode=e=>x(e)===o,exports.isSuspense=e=>x(e)===a,exports.isSuspenseList=e=>x(e)===i,exports.isValidElementType=e=>{if("string"==typeof e||"number"==typeof e||"bigint"==typeof e||"function"==typeof e)return!0;if(R.has(e))return!0;if("object"==typeof e&&null!==e){const t=e.$$typeof;return t===T||t===f||t===n||t===p||t===E||t===l||t===c}return!1},exports.typeOf=x;