UNPKG

@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.08 kB
import"react";const e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),a=Symbol.for("react.consumer"),f=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),i=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),u=Symbol.for("react.client.reference"),b=Symbol.for("react.activity");function S(u){if("object"==typeof u&&null!==u){const b=u.$$typeof;switch(b){case e:{const e=u.type;switch(e){case o:case c:case r:case y:case l:case p:return e;default:{const t=e?.$$typeof;switch(t){case f:case s:case m:case i:case n:case a:return t;default:return b}}}}case t:return b}}}const $=e=>S(e)===a,w=e=>S(e)===n,d=t=>"object"==typeof t&&null!==t&&t.$$typeof===e,h=e=>S(e)===s,_=e=>S(e)===o,g=e=>S(e)===m,j=e=>S(e)===i,v=e=>S(e)===t,x=e=>S(e)===c,z=e=>S(e)===r,C=e=>S(e)===y,R=e=>S(e)===l,k=new Set([o,c,r,y,l,p,b]),q=e=>{if("string"==typeof e||"number"==typeof e||"bigint"==typeof e||"function"==typeof e)return!0;if(k.has(e))return!0;if("object"==typeof e&&null!==e){const t=e.$$typeof;return t===m||t===i||t===f||t===a||t===s||t===u||t===n}return!1},A=e=>{if("function"!=typeof e)return!1;const t=e.prototype;return!(!t||!t.isReactComponent)};export{b as REACT_ACTIVITY_TYPE,u as REACT_CLIENT_REFERENCE,a as REACT_CONSUMER_TYPE,f as REACT_CONTEXT_TYPE,e as REACT_ELEMENT_TYPE,s as REACT_FORWARD_REF_TYPE,o as REACT_FRAGMENT_TYPE,m as REACT_LAZY_TYPE,i as REACT_MEMO_TYPE,t as REACT_PORTAL_TYPE,c as REACT_PROFILER_TYPE,n as REACT_PROVIDER_TYPE,r as REACT_STRICT_MODE_TYPE,l as REACT_SUSPENSE_LIST_TYPE,y as REACT_SUSPENSE_TYPE,p as REACT_VIEW_TRANSITION_TYPE,$ as isContextConsumer,w as isContextProvider,d as isElement,h as isForwardRef,_ as isFragment,g as isLazy,j as isMemo,v as isPortal,x as isProfiler,A as isReactClassComponent,z as isStrictMode,C as isSuspense,R as isSuspenseList,q as isValidElementType,S as typeOf};