@kroyd/ui-core 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2217,5 +2217,5 @@ const io = /* @__PURE__ */ ro(vt), uo = ({
2217
2217
  };
2218
2218
  export {
2219
2219
  ye as UiButton,
2220
- uo as iButton
2220
+ uo as UirButton
2221
2221
  };
@@ -153,4 +153,4 @@ Check the render method of \``+e+"`."}return""}function qn(e){if(e!==void 0){var
153
153
 
154
154
  Check your code at `+r+":"+s+"."}return""}function Kn(e){return e!=null?qn(e.__source):""}var pr={};function Gn(e){var r=dr();if(!r){var s=typeof e=="string"?e:e.displayName||e.name;s&&(r=`
155
155
 
156
- Check the top-level render call using <`+s+">.")}return r}function hr(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var s=Gn(r);if(!pr[s]){pr[s]=!0;var u="";e&&e._owner&&e._owner!==W.current&&(u=" It was passed a child from "+ee(e._owner.type)+"."),_e(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,u),_e(null)}}}function vr(e,r){if(typeof e=="object"){if(He(e))for(var s=0;s<e.length;s++){var u=e[s];ye(u)&&hr(u,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var p=de(e);if(typeof p=="function"&&p!==e.entries)for(var y=p.call(e),h;!(h=y.next()).done;)ye(h.value)&&hr(h.value,r)}}}function yr(e){{var r=e.type;if(r==null||typeof r=="string")return;var s;if(typeof r=="function")s=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===P||r.$$typeof===N))s=r.propTypes;else return;if(s){var u=ee(r);Yn(s,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!gt){gt=!0;var p=ee(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(e){{for(var r=Object.keys(e.props),s=0;s<r.length;s++){var u=r[s];if(u!=="children"&&u!=="key"){_e(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),_e(null);break}}e.ref!==null&&(_e(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),_e(null))}}function _r(e,r,s){var u=er(e);if(!u){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=Kn(r);y?p+=y:p+=dr();var h;e===null?h="null":He(e)?h="array":e!==void 0&&e.$$typeof===o?(h="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,p)}var m=ln.apply(this,arguments);if(m==null)return m;if(u)for(var $=2;$<arguments.length;$++)vr(arguments[$],e);return e===l?Jn(m):yr(m),m}var mr=!1;function Qn(e){var r=_r.bind(null,e);return r.type=e,mr||(mr=!0,Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Xn(e,r,s){for(var u=dn.apply(this,arguments),p=2;p<arguments.length;p++)vr(arguments[p],u.type);return yr(u),u}function Zn(e,r){var s=K.transition;K.transition={};var u=K.transition;K.transition._updatedFibers=new Set;try{e()}finally{if(K.transition=s,s===null&&u._updatedFibers){var p=u._updatedFibers.size;p>10&&Z("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),u._updatedFibers.clear()}}}var gr=!1,Ge=null;function eo(e){if(Ge===null)try{var r=("require"+Math.random()).slice(0,7),s=c&&c[r];Ge=s.call(c,"timers").setImmediate}catch{Ge=function(p){gr===!1&&(gr=!0,typeof MessageChannel>"u"&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=p,y.port2.postMessage(void 0)}}return Ge(e)}var me=0,br=!1;function Er(e){{var r=me;me++,L.current===null&&(L.current=[]);var s=L.isBatchingLegacy,u;try{if(L.isBatchingLegacy=!0,u=e(),!s&&L.didScheduleLegacyUpdate){var p=L.current;p!==null&&(L.didScheduleLegacyUpdate=!1,$t(p))}}catch(M){throw Je(r),M}finally{L.isBatchingLegacy=s}if(u!==null&&typeof u=="object"&&typeof u.then=="function"){var y=u,h=!1,m={then:function(M,D){h=!0,y.then(function(F){Je(r),me===0?bt(F,M,D):M(F)},function(F){Je(r),D(F)})}};return!br&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){h||(br=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),m}else{var $=u;if(Je(r),me===0){var R=L.current;R!==null&&($t(R),L.current=null);var T={then:function(M,D){L.current===null?(L.current=[],bt($,M,D)):M($)}};return T}else{var k={then:function(M,D){M($)}};return k}}}}function Je(e){e!==me-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),me=e}function bt(e,r,s){{var u=L.current;if(u!==null)try{$t(u),eo(function(){u.length===0?(L.current=null,r(e)):bt(e,r,s)})}catch(p){s(p)}else r(e)}}var Et=!1;function $t(e){if(!Et){Et=!0;var r=0;try{for(;r<e.length;r++){var s=e[r];do s=s(!0);while(s!==null)}e.length=0}catch(u){throw e=e.slice(r+1),u}finally{Et=!1}}}var to=_r,ro=Xn,no=Qn,oo={map:We,forEach:_n,count:yn,toArray:mn,only:gn};t.Children=oo,t.Component=S,t.Fragment=l,t.Profiler=g,t.PureComponent=O,t.StrictMode=d,t.Suspense=w,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,t.act=Er,t.cloneElement=ro,t.createContext=bn,t.createElement=to,t.createFactory=no,t.createRef=tn,t.forwardRef=wn,t.isValidElement=ye,t.lazy=Sn,t.memo=An,t.startTransition=Zn,t.unstable_act=Er,t.useCallback=jn,t.useContext=Cn,t.useDebugValue=Dn,t.useDeferredValue=Nn,t.useEffect=Tn,t.useId=Ln,t.useImperativeHandle=Un,t.useInsertionEffect=kn,t.useLayoutEffect=xn,t.useMemo=Mn,t.useReducer=On,t.useRef=Pn,t.useState=Rn,t.useSyncExternalStore=Fn,t.useTransition=In,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Re,Re.exports)),Re.exports}process.env.NODE_ENV==="production"?ut.exports=Qr():ut.exports=Xr();var ct=ut.exports;const Zr=Jr(ct),en=({onUiClick:c,children:t,...n})=>{const o=ct.useRef(null);return ct.useEffect(()=>{const a=o.current;if(!a||!c)return;const l=d=>{c(d)};return a.addEventListener("ui-click",l),()=>{a.removeEventListener("ui-click",l)}},[c]),Zr.createElement("ui-button",{ref:o,...n},t)};te.UiButton=se,te.iButton=en,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
156
+ Check the top-level render call using <`+s+">.")}return r}function hr(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var s=Gn(r);if(!pr[s]){pr[s]=!0;var u="";e&&e._owner&&e._owner!==W.current&&(u=" It was passed a child from "+ee(e._owner.type)+"."),_e(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,u),_e(null)}}}function vr(e,r){if(typeof e=="object"){if(He(e))for(var s=0;s<e.length;s++){var u=e[s];ye(u)&&hr(u,r)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var p=de(e);if(typeof p=="function"&&p!==e.entries)for(var y=p.call(e),h;!(h=y.next()).done;)ye(h.value)&&hr(h.value,r)}}}function yr(e){{var r=e.type;if(r==null||typeof r=="string")return;var s;if(typeof r=="function")s=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===P||r.$$typeof===N))s=r.propTypes;else return;if(s){var u=ee(r);Yn(s,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!gt){gt=!0;var p=ee(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(e){{for(var r=Object.keys(e.props),s=0;s<r.length;s++){var u=r[s];if(u!=="children"&&u!=="key"){_e(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),_e(null);break}}e.ref!==null&&(_e(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),_e(null))}}function _r(e,r,s){var u=er(e);if(!u){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=Kn(r);y?p+=y:p+=dr();var h;e===null?h="null":He(e)?h="array":e!==void 0&&e.$$typeof===o?(h="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,p)}var m=ln.apply(this,arguments);if(m==null)return m;if(u)for(var $=2;$<arguments.length;$++)vr(arguments[$],e);return e===l?Jn(m):yr(m),m}var mr=!1;function Qn(e){var r=_r.bind(null,e);return r.type=e,mr||(mr=!0,Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Xn(e,r,s){for(var u=dn.apply(this,arguments),p=2;p<arguments.length;p++)vr(arguments[p],u.type);return yr(u),u}function Zn(e,r){var s=K.transition;K.transition={};var u=K.transition;K.transition._updatedFibers=new Set;try{e()}finally{if(K.transition=s,s===null&&u._updatedFibers){var p=u._updatedFibers.size;p>10&&Z("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),u._updatedFibers.clear()}}}var gr=!1,Ge=null;function eo(e){if(Ge===null)try{var r=("require"+Math.random()).slice(0,7),s=c&&c[r];Ge=s.call(c,"timers").setImmediate}catch{Ge=function(p){gr===!1&&(gr=!0,typeof MessageChannel>"u"&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=p,y.port2.postMessage(void 0)}}return Ge(e)}var me=0,br=!1;function Er(e){{var r=me;me++,L.current===null&&(L.current=[]);var s=L.isBatchingLegacy,u;try{if(L.isBatchingLegacy=!0,u=e(),!s&&L.didScheduleLegacyUpdate){var p=L.current;p!==null&&(L.didScheduleLegacyUpdate=!1,$t(p))}}catch(M){throw Je(r),M}finally{L.isBatchingLegacy=s}if(u!==null&&typeof u=="object"&&typeof u.then=="function"){var y=u,h=!1,m={then:function(M,D){h=!0,y.then(function(F){Je(r),me===0?bt(F,M,D):M(F)},function(F){Je(r),D(F)})}};return!br&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){h||(br=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),m}else{var $=u;if(Je(r),me===0){var R=L.current;R!==null&&($t(R),L.current=null);var T={then:function(M,D){L.current===null?(L.current=[],bt($,M,D)):M($)}};return T}else{var k={then:function(M,D){M($)}};return k}}}}function Je(e){e!==me-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),me=e}function bt(e,r,s){{var u=L.current;if(u!==null)try{$t(u),eo(function(){u.length===0?(L.current=null,r(e)):bt(e,r,s)})}catch(p){s(p)}else r(e)}}var Et=!1;function $t(e){if(!Et){Et=!0;var r=0;try{for(;r<e.length;r++){var s=e[r];do s=s(!0);while(s!==null)}e.length=0}catch(u){throw e=e.slice(r+1),u}finally{Et=!1}}}var to=_r,ro=Xn,no=Qn,oo={map:We,forEach:_n,count:yn,toArray:mn,only:gn};t.Children=oo,t.Component=S,t.Fragment=l,t.Profiler=g,t.PureComponent=O,t.StrictMode=d,t.Suspense=w,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,t.act=Er,t.cloneElement=ro,t.createContext=bn,t.createElement=to,t.createFactory=no,t.createRef=tn,t.forwardRef=wn,t.isValidElement=ye,t.lazy=Sn,t.memo=An,t.startTransition=Zn,t.unstable_act=Er,t.useCallback=jn,t.useContext=Cn,t.useDebugValue=Dn,t.useDeferredValue=Nn,t.useEffect=Tn,t.useId=Ln,t.useImperativeHandle=Un,t.useInsertionEffect=kn,t.useLayoutEffect=xn,t.useMemo=Mn,t.useReducer=On,t.useRef=Pn,t.useState=Rn,t.useSyncExternalStore=Fn,t.useTransition=In,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Re,Re.exports)),Re.exports}process.env.NODE_ENV==="production"?ut.exports=Qr():ut.exports=Xr();var ct=ut.exports;const Zr=Jr(ct),en=({onUiClick:c,children:t,...n})=>{const o=ct.useRef(null);return ct.useEffect(()=>{const a=o.current;if(!a||!c)return;const l=d=>{c(d)};return a.addEventListener("ui-click",l),()=>{a.removeEventListener("ui-click",l)}},[c]),Zr.createElement("ui-button",{ref:o,...n},t)};te.UiButton=se,te.UirButton=en,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
@@ -11,4 +11,4 @@ export interface UiButtonProps extends React.HTMLAttributes<HTMLElement> {
11
11
  disabled?: boolean;
12
12
  onUiClick?: (e: UiButtonClickEvent) => void;
13
13
  }
14
- export declare const iButton: React.FC<UiButtonProps>;
14
+ export declare const UirButton: React.FC<UiButtonProps>;
@@ -1 +1 @@
1
- export { iButton } from './UiButton';
1
+ export { UirButton } from './UiButton';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kroyd/ui-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"