@optiaxiom/web-components 0.1.0-next.1 → 0.1.0-next.3

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.
Files changed (49) hide show
  1. package/README.md +5 -4
  2. package/dist/AnimatePresence-DvfDfq0x.js +1 -0
  3. package/dist/AnimatePresence.d.ts +14 -0
  4. package/dist/AnimatePresence.js +1 -0
  5. package/dist/Avatar.d.ts +14 -0
  6. package/dist/Avatar.js +1 -0
  7. package/dist/Box-9LrXBb0B.js +1 -0
  8. package/dist/Box.js +1 -1
  9. package/dist/Button.js +1 -1
  10. package/dist/ButtonGroup.css.ts.vanilla-4BGjgIuZ-BjHZZZUs.js +1 -0
  11. package/dist/ButtonGroup.d.ts +14 -0
  12. package/dist/ButtonGroup.js +1 -0
  13. package/dist/Code-CeUUaCb4.js +1 -0
  14. package/dist/Code.d.ts +14 -0
  15. package/dist/Code.js +1 -0
  16. package/dist/Field.d.ts +14 -0
  17. package/dist/Field.js +10 -0
  18. package/dist/Flex-CmzBxGW1.js +1 -0
  19. package/dist/Flex.d.ts +14 -0
  20. package/dist/Flex.js +1 -0
  21. package/dist/Grid.d.ts +14 -0
  22. package/dist/Grid.js +1 -0
  23. package/dist/Heading.d.ts +14 -0
  24. package/dist/Heading.js +1 -0
  25. package/dist/Input.js +1 -1
  26. package/dist/Kbd.d.ts +14 -0
  27. package/dist/Kbd.js +1 -0
  28. package/dist/Paper.js +1 -1
  29. package/dist/PresenceContext-BIyw24mj.js +1 -0
  30. package/dist/Progress.d.ts +14 -0
  31. package/dist/Progress.js +6 -0
  32. package/dist/Separator.d.ts +14 -0
  33. package/dist/Separator.js +5 -0
  34. package/dist/Skeleton.d.ts +14 -0
  35. package/dist/Skeleton.js +1 -0
  36. package/dist/Text-BIAeKp5v.js +1 -0
  37. package/dist/Text.d.ts +14 -0
  38. package/dist/Text.js +1 -0
  39. package/dist/Tooltip.js +1 -1
  40. package/dist/Transition-BD7yTsL2.js +1 -0
  41. package/dist/Transition.d.ts +14 -0
  42. package/dist/Transition.js +1 -0
  43. package/dist/index-D-Y5pVgW.js +1 -0
  44. package/dist/index-DLtacV-Q.js +1 -0
  45. package/dist/index-DoeKEfO9.js +1 -0
  46. package/dist/index.js +1 -1
  47. package/dist/register-C6qZMQlw.js +1 -0
  48. package/package.json +18 -3
  49. package/dist/register-CYOoDCCj.js +0 -1
@@ -0,0 +1 @@
1
+ var B,f,Ie,T,Ve,Be,ce,se,fe,pe,ze,z={},je=[],At=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ee=Array.isArray;function x(e,t){for(var n in t)e[n]=t[n];return e}function qe(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var _,r,o,u={};for(o in t)o=="key"?_=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?B.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return j(e,u,_,r,null)}function j(e,t,n,_,r){var o={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Ie,__i:-1,__u:0};return r==null&&f.vnode!=null&&f.vnode(o),o}function Ge(){return{current:null}}function E(e){return e.children}function w(e,t){this.props=e,this.context=t}function U(e,t){if(t==null)return e.__?U(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?U(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function de(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!te.__r++||Ve!==f.debounceRendering)&&((Ve=f.debounceRendering)||Be)(te)}function te(){var e,t,n,_,r,o,u,l;for(T.sort(ce);e=T.shift();)e.__d&&(t=T.length,_=void 0,o=(r=(n=e).__v).__e,u=[],l=[],n.__P&&((_=x({},r)).__v=r.__v+1,f.vnode&&f.vnode(_),he(n.__P,_,r,n.__n,n.__P.namespaceURI,32&r.__u?[o]:null,u,o??U(r),!!(32&r.__u),l),_.__v=r.__v,_.__.__k[_.__i]=_,Xe(u,_,l),_.__e!=o&&Ye(_)),T.length>t&&T.sort(ce));te.__r=0}function Ze(e,t,n,_,r,o,u,l,a,c,p){var i,d,s,y,$,g=_&&_.__k||je,v=t.length;for(n.__d=a,Ft(n,t,g),a=n.__d,i=0;i<v;i++)(s=n.__k[i])!=null&&typeof s!="boolean"&&typeof s!="function"&&(d=s.__i===-1?z:g[s.__i]||z,s.__i=i,he(e,s,d,r,o,u,l,a,c,p),y=s.__e,s.ref&&d.ref!=s.ref&&(d.ref&&ve(d.ref,null,s),p.push(s.ref,s.__c||y,s)),$==null&&y!=null&&($=y),65536&s.__u||d.__k===s.__k?(a&&!a.isConnected&&(a=U(d)),a=Je(s,a,e)):typeof s.type=="function"&&s.__d!==void 0?a=s.__d:y&&(a=y.nextSibling),s.__d=void 0,s.__u&=-196609);n.__d=a,n.__e=$}function Ft(e,t,n){var _,r,o,u,l,a=t.length,c=n.length,p=c,i=0;for(e.__k=[],_=0;_<a;_++)u=_+i,(r=e.__k[_]=(r=t[_])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?j(null,r,null,null,null):ee(r)?j(E,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?j(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,l=It(r,n,u,p),r.__i=l,o=null,l!==-1&&(p--,(o=n[l])&&(o.__u|=131072)),o==null||o.__v===null?(l==-1&&i--,typeof r.type!="function"&&(r.__u|=65536)):l!==u&&(l===u+1?i++:l>u?p>a-u?i+=l-u:i--:l<u?l==u-1&&(i=l-u):i=0,l!==_+i&&(r.__u|=65536))):(o=n[u])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),me(o,o,!1),n[u]=null,p--);if(p)for(_=0;_<c;_++)(o=n[_])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),me(o,o))}function Je(e,t,n){var _,r;if(typeof e.type=="function"){for(_=e.__k,r=0;_&&r<_.length;r++)_[r]&&(_[r].__=e,t=Je(_[r],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function N(e,t){return t=t||[],e==null||typeof e=="boolean"||(ee(e)?e.some(function(n){N(n,t)}):t.push(e)),t}function It(e,t,n,_){var r=e.key,o=e.type,u=n-1,l=n+1,a=t[n];if(a===null||a&&r==a.key&&o===a.type&&!(131072&a.__u))return n;if(_>(a!=null&&!(131072&a.__u)?1:0))for(;u>=0||l<t.length;){if(u>=0){if((a=t[u])&&!(131072&a.__u)&&r==a.key&&o===a.type)return u;u--}if(l<t.length){if((a=t[l])&&!(131072&a.__u)&&r==a.key&&o===a.type)return l;l++}}return-1}function Ke(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||At.test(t)?n:n+"px"}function ne(e,t,n,_,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof _=="string"&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||Ke(e.style,t,"");if(n)for(t in n)_&&n[t]===_[t]||Ke(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=se,e.addEventListener(t,o?pe:fe,o)):e.removeEventListener(t,o?pe:fe,o);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Qe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=se++;else if(t.t<n.u)return;return n(f.event?f.event(t):t)}}}function he(e,t,n,_,r,o,u,l,a,c){var p,i,d,s,y,$,g,v,b,R,K,V,Fe,Q,ae,C=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),o=[l=t.__e=n.__e]),(p=f.__b)&&p(t);e:if(typeof C=="function")try{if(v=t.props,b=(p=C.contextType)&&_[p.__c],R=p?b?b.props.value:p.__:_,n.__c?g=(i=t.__c=n.__c).__=i.__E:("prototype"in C&&C.prototype.render?t.__c=i=new C(v,R):(t.__c=i=new w(v,R),i.constructor=C,i.render=Bt),b&&b.sub(i),i.props=v,i.state||(i.state={}),i.context=R,i.__n=_,d=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),C.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=x({},i.__s)),x(i.__s,C.getDerivedStateFromProps(v,i.__s))),s=i.props,y=i.state,i.__v=t,d)C.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(C.getDerivedStateFromProps==null&&v!==s&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(v,R),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(v,i.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=v,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(X){X&&(X.__=t)}),K=0;K<i._sb.length;K++)i.__h.push(i._sb[K]);i._sb=[],i.__h.length&&u.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(v,i.__s,R),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(s,y,$)})}if(i.context=R,i.props=v,i.__P=e,i.__e=!1,V=f.__r,Fe=0,"prototype"in C&&C.prototype.render){for(i.state=i.__s,i.__d=!1,V&&V(t),p=i.render(i.props,i.state,i.context),Q=0;Q<i._sb.length;Q++)i.__h.push(i._sb[Q]);i._sb=[]}else do i.__d=!1,V&&V(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++Fe<25);i.state=i.__s,i.getChildContext!=null&&(_=x(x({},_),i.getChildContext())),d||i.getSnapshotBeforeUpdate==null||($=i.getSnapshotBeforeUpdate(s,y)),Ze(e,ee(ae=p!=null&&p.type===E&&p.key==null?p.props.children:p)?ae:[ae],t,n,_,r,o,u,l,a,c),i.base=t.__e,t.__u&=-161,i.__h.length&&u.push(i),g&&(i.__E=i.__=null)}catch(X){t.__v=null,a||o!=null?(t.__e=l,t.__u|=a?160:32,o[o.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),f.__e(X,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vt(n.__e,t,n,_,r,o,u,a,c);(p=f.diffed)&&p(t)}function Xe(e,t,n){t.__d=void 0;for(var _=0;_<n.length;_++)ve(n[_],n[++_],n[++_]);f.__c&&f.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(o){o.call(r)})}catch(o){f.__e(o,r.__v)}})}function Vt(e,t,n,_,r,o,u,l,a){var c,p,i,d,s,y,$,g=n.props,v=t.props,b=t.type;if(b==="svg"?r="http://www.w3.org/2000/svg":b==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((s=o[c])&&"setAttribute"in s==!!b&&(b?s.localName===b:s.nodeType===3)){e=s,o[c]=null;break}}if(e==null){if(b===null)return document.createTextNode(v);e=document.createElementNS(r,b,v.is&&v),o=null,l=!1}if(b===null)g===v||l&&e.data===v||(e.data=v);else{if(o=o&&B.call(e.childNodes),g=n.props||z,!l&&o!=null)for(g={},c=0;c<e.attributes.length;c++)g[(s=e.attributes[c]).name]=s.value;for(c in g)if(s=g[c],c!="children"){if(c=="dangerouslySetInnerHTML")i=s;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;ne(e,c,null,s,r)}}for(c in v)s=v[c],c=="children"?d=s:c=="dangerouslySetInnerHTML"?p=s:c=="value"?y=s:c=="checked"?$=s:c==="key"||l&&typeof s!="function"||g[c]===s||ne(e,c,s,g[c],r);if(p)l||i&&(p.__html===i.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(i&&(e.innerHTML=""),Ze(e,ee(d)?d:[d],t,n,_,b==="foreignObject"?"http://www.w3.org/1999/xhtml":r,o,u,o?o[0]:n.__k&&U(n,0),l,a),o!=null)for(c=o.length;c--;)o[c]!=null&&qe(o[c]);l||(c="value",y!==void 0&&(y!==e[c]||b==="progress"&&!y||b==="option"&&y!==g[c])&&ne(e,c,y,g[c],r),c="checked",$!==void 0&&$!==e[c]&&ne(e,c,$,g[c],r))}return e}function ve(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(_){f.__e(_,n)}}function me(e,t,n){var _,r;if(f.unmount&&f.unmount(e),(_=e.ref)&&(_.current&&_.current!==e.__e||ve(_,null,t)),(_=e.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(o){f.__e(o,t)}_.base=_.__P=null}if(_=e.__k)for(r=0;r<_.length;r++)_[r]&&me(_[r],t,n||typeof e.type!="function");n||e.__e==null||qe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Bt(e,t,n){return this.constructor(e,n)}function q(e,t,n){var _,r,o,u;f.__&&f.__(e,t),r=(_=typeof n=="function")?null:n&&n.__k||t.__k,o=[],u=[],he(t,e=(!_&&n||t).__k=k(E,null,[e]),r||z,z,t.namespaceURI,!_&&n?[n]:r?null:t.firstChild?B.call(t.childNodes):null,o,!_&&n?n:r?r.__e:t.firstChild,_,u),Xe(o,e,u)}function et(e,t){q(e,t,et)}function zt(e,t,n){var _,r,o,u,l=x({},e.props);for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)o=="key"?_=t[o]:o=="ref"?r=t[o]:l[o]=t[o]===void 0&&u!==void 0?u[o]:t[o];return arguments.length>2&&(l.children=arguments.length>3?B.call(arguments,2):n),j(e.type,l,_||e.key,r||e.ref,null)}function ye(e,t){var n={__c:t="__cC"+ze++,__:e,Consumer:function(_,r){return _.children(r)},Provider:function(_){var r,o;return this.getChildContext||(r=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(u){this.props.value!==u.value&&r.some(function(l){l.__e=!0,de(l)})},this.sub=function(u){r.push(u);var l=u.componentWillUnmount;u.componentWillUnmount=function(){r.splice(r.indexOf(u),1),l&&l.call(u)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}B=je.slice,f={__e:function(e,t,n,_){for(var r,o,u;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(e)),u=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,_||{}),u=r.__d),u)return r.__E=r}catch(l){e=l}throw e}},Ie=0,w.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=x({},this.state),typeof e=="function"&&(e=e(x({},n),this.props)),e&&x(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),de(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),de(this))},w.prototype.render=E,T=[],Be=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ce=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0,se=0,fe=Qe(!1),pe=Qe(!0),ze=0;var jt=0;function qt(e,t,n,_,r,o){t||(t={});var u,l,a=t;if("ref"in a)for(l in a={},t)l=="ref"?u=t[l]:a[l]=t[l];var c={type:e,props:a,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--jt,__i:-1,__u:0,__source:r,__self:o};if(typeof e=="function"&&(u=e.defaultProps))for(l in u)a[l]===void 0&&(a[l]=u[l]);return f.vnode&&f.vnode(c),c}var P,h,ge,tt,O=0,nt=[],_e=[],m=f,_t=m.__b,rt=m.__r,ot=m.diffed,it=m.__c,ut=m.unmount,lt=m.__;function H(e,t){m.__h&&m.__h(h,e,O||t),O=0;var n=h.__H||(h.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:_e}),n.__[e]}function L(e){return O=1,G(ct,e)}function G(e,t,n){var _=H(P++,2);if(_.t=e,!_.__c&&(_.__=[n?n(t):ct(void 0,t),function(l){var a=_.__N?_.__N[0]:_.__[0],c=_.t(a,l);a!==c&&(_.__N=[c,_.__[1]],_.__c.setState({}))}],_.__c=h,!h.u)){var r=function(l,a,c){if(!_.__c.__H)return!0;var p=_.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!o||o.call(this,l,a,c);var i=!1;return p.forEach(function(d){if(d.__N){var s=d.__[0];d.__=d.__N,d.__N=void 0,s!==d.__[0]&&(i=!0)}}),!(!i&&_.__c.props===l)&&(!o||o.call(this,l,a,c))};h.u=!0;var o=h.shouldComponentUpdate,u=h.componentWillUpdate;h.componentWillUpdate=function(l,a,c){if(this.__e){var p=o;o=void 0,r(l,a,c),o=p}u&&u.call(this,l,a,c)},h.shouldComponentUpdate=r}return _.__N||_.__}function Y(e,t){var n=H(P++,3);!m.__s&&Ee(n.__H,t)&&(n.__=e,n.i=t,h.__H.__h.push(n))}function D(e,t){var n=H(P++,4);!m.__s&&Ee(n.__H,t)&&(n.__=e,n.i=t,h.__h.push(n))}function re(e){return O=5,W(function(){return{current:e}},[])}function be(e,t,n){O=6,D(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function W(e,t){var n=H(P++,7);return Ee(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function oe(e,t){return O=8,W(function(){return e},t)}function ie(e){var t=h.context[e.__c],n=H(P++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(h)),t.props.value):e.__}function ke(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function Gt(e){var t=H(P++,10),n=L();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(_,r){t.__&&t.__(_,r),n[1](_)}),[n[0],function(){n[1](void 0)}]}function Ce(){var e=H(P++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Yt(){for(var e;e=nt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach($e),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){h=null,_t&&_t(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lt&&lt(e,t)},m.__r=function(e){rt&&rt(e),P=0;var t=(h=e.__c).__H;t&&(ge===h?(t.__h=[],h.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=_e,n.__N=n.i=void 0})):(t.__h.forEach(ue),t.__h.forEach($e),t.__h=[],P=0)),ge=h},m.diffed=function(e){ot&&ot(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(nt.push(t)!==1&&tt===m.requestAnimationFrame||((tt=m.requestAnimationFrame)||Zt)(Yt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==_e&&(n.__=n.__V),n.i=void 0,n.__V=_e})),ge=h=null},m.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ue),n.__h=n.__h.filter(function(_){return!_.__||$e(_)})}catch(_){t.some(function(r){r.__h&&(r.__h=[])}),t=[],m.__e(_,n.__v)}}),it&&it(e,t)},m.unmount=function(e){ut&&ut(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{ue(_)}catch(r){t=r}}),n.__H=void 0,t&&m.__e(t,n.__v))};var at=typeof requestAnimationFrame=="function";function Zt(e){var t,n=function(){clearTimeout(_),at&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,100);at&&(t=requestAnimationFrame(n))}function ue(e){var t=h,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),h=t}function $e(e){var t=h;e.__c=e.__(),h=t}function Ee(e,t){return!e||e.length!==t.length||t.some(function(n,_){return n!==e[_]})}function ct(e,t){return typeof t=="function"?t(e):t}function st(e,t){for(var n in t)e[n]=t[n];return e}function we(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var _ in t)if(_!=="__source"&&e[_]!==t[_])return!0;return!1}function le(e,t){this.props=e,this.context=t}function ft(e,t){function n(r){var o=this.props.ref,u=o==r.ref;return!u&&o&&(o.call?o(null):o.current=null),t?!t(this.props,r)||!u:we(this.props,r)}function _(r){return this.shouldComponentUpdate=n,k(e,r)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.prototype.isReactComponent=!0,_.__f=!0,_}(le.prototype=new w).isPureReactComponent=!0,le.prototype.shouldComponentUpdate=function(e,t){return we(this.props,e)||we(this.state,t)};var pt=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pt&&pt(e)};var Jt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Se(e){function t(n){var _=st({},n);return delete _.ref,e(_,n.ref||null)}return t.$$typeof=Jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var dt=function(e,t){return e==null?null:N(N(e).map(t))},xe={map:dt,forEach:dt,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:N},Kt=f.__e;f.__e=function(e,t,n,_){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}Kt(e,t,n,_)};var ht=f.unmount;function vt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(_){typeof _.__c=="function"&&_.__c()}),e.__c.__H=null),(e=st({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(_){return vt(_,t,n)})),e}function mt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(_){return mt(_,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Z(){this.__u=0,this.t=null,this.__b=null}function yt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gt(e){var t,n,_;function r(o){if(t||(t=e()).then(function(u){n=u.default||u},function(u){_=u}),_)throw _;if(!n)throw t;return k(n,o)}return r.displayName="Lazy",r.__f=!0,r}function A(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ht&&ht(e)},(Z.prototype=new w).__c=function(e,t){var n=t.__c,_=this;_.t==null&&(_.t=[]),_.t.push(n);var r=yt(_.__v),o=!1,u=function(){o||(o=!0,n.__R=null,r?r(l):l())};n.__R=u;var l=function(){if(!--_.__u){if(_.state.__a){var a=_.state.__a;_.__v.__k[0]=mt(a,a.__c.__P,a.__c.__O)}var c;for(_.setState({__a:_.__b=null});c=_.t.pop();)c.forceUpdate()}};_.__u++||32&t.__u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(u,u)},Z.prototype.componentWillUnmount=function(){this.t=[]},Z.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=vt(this.__b,n,_.__O=_.__P)}this.__b=null}var r=t.__a&&k(E,null,e.fallback);return r&&(r.__u&=-33),[k(E,null,t.__a?null:e.children),r]};var bt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Qt(e){return this.getChildContext=function(){return e.context},e.children}function Xt(e){var t=this,n=e.i;t.componentWillUnmount=function(){q(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(_){this.childNodes.push(_),t.i.appendChild(_)},insertBefore:function(_,r){this.childNodes.push(_),t.i.appendChild(_)},removeChild:function(_){this.childNodes.splice(this.childNodes.indexOf(_)>>>1,1),t.i.removeChild(_)}}),q(k(Qt,{context:t.context},e.__v),t.l)}function kt(e,t){var n=k(Xt,{__v:e,i:t});return n.containerInfo=t,n}(A.prototype=new w).__a=function(e){var t=this,n=yt(t.__v),_=t.o.get(e);return _[0]++,function(r){var o=function(){t.props.revealOrder?(_.push(r),bt(t,e,_)):r()};n?n(o):o()}},A.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},A.prototype.componentDidUpdate=A.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){bt(e,n,t)})};var Ct=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,en=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nn=/[A-Z0-9]/g,_n=typeof document<"u",rn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ne(e,t,n){return t.__k==null&&(t.textContent=""),q(e,t),typeof n=="function"&&n(),e?e.__c:null}function $t(e,t,n){return et(e,t),typeof n=="function"&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Et=f.event;function on(){}function un(){return this.cancelBubble}function ln(){return this.defaultPrevented}f.event=function(e){return Et&&(e=Et(e)),e.persist=on,e.isPropagationStopped=un,e.isDefaultPrevented=ln,e.nativeEvent=e};var Pe,an={enumerable:!1,configurable:!0,get:function(){return this.class}},wt=f.vnode;f.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,_=t.type,r={};for(var o in n){var u=n[o];if(!(o==="value"&&"defaultValue"in n&&u==null||_n&&o==="children"&&_==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&u===!0?u="":l==="translate"&&u==="no"?u=!1:l==="ondoubleclick"?o="ondblclick":l!=="onchange"||_!=="input"&&_!=="textarea"||rn(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":tn.test(o)?o=l:_.indexOf("-")===-1&&en.test(o)?o=o.replace(nn,"-$&").toLowerCase():u===null&&(u=void 0):l=o="oninput",l==="oninput"&&r[o=l]&&(o="oninputCapture"),r[o]=u}}_=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=N(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),_=="select"&&r.defaultValue!=null&&(r.value=N(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",an)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=Ct,wt&&wt(e)};var St=f.__r;f.__r=function(e){St&&St(e),Pe=e.__c};var xt=f.diffed;f.diffed=function(e){xt&&xt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Pe=null};var Nt={ReactCurrentDispatcher:{current:{readContext:function(e){return Pe.__n[e.__c].props.value},useCallback:oe,useContext:ie,useDebugValue:ke,useDeferredValue:He,useEffect:Y,useId:Ce,useImperativeHandle:be,useInsertionEffect:Me,useLayoutEffect:D,useMemo:W,useReducer:G,useRef:re,useState:L,useSyncExternalStore:Oe,useTransition:De}}},cn="17.0.2";function Pt(e){return k.bind(null,e)}function F(e){return!!e&&e.$$typeof===Ct}function Rt(e){return F(e)&&e.type===E}function Tt(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function J(e){return F(e)?zt.apply(null,arguments):e}function Re(e){return!!e.__k&&(q(null,e),!0)}function Ut(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ht=function(e,t){return e(t)},Te=function(e,t){return e(t)},Dt=E;function Ue(e){e()}function He(e){return e}function De(){return[!1,Ue]}var Me=D,Mt=F;function Oe(e,t){var n=t(),_=L({h:{__:n,v:t}}),r=_[0].h,o=_[1];return D(function(){r.__=n,r.v=t,Le(r)&&o({h:r})},[e,n,t]),Y(function(){return Le(r)&&o({h:r}),e(function(){Le(r)&&o({h:r})})},[e]),n}function Le(e){var t,n,_=e.v,r=e.__;try{var o=_();return!((t=r)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Ot={useState:L,useId:Ce,useReducer:G,useEffect:Y,useLayoutEffect:D,useInsertionEffect:Me,useTransition:De,useDeferredValue:He,useSyncExternalStore:Oe,startTransition:Ue,useRef:re,useImperativeHandle:be,useMemo:W,useCallback:oe,useContext:ie,useDebugValue:ke,version:"17.0.2",Children:xe,render:Ne,hydrate:$t,unmountComponentAtNode:Re,createPortal:kt,createElement:k,createContext:ye,createFactory:Pt,cloneElement:J,createRef:Ge,Fragment:E,isValidElement:F,isElement:Mt,isFragment:Rt,isMemo:Tt,findDOMNode:Ut,Component:w,PureComponent:le,memo:ft,forwardRef:Se,flushSync:Te,unstable_batchedUpdates:Ht,StrictMode:Dt,Suspense:Z,SuspenseList:A,lazy:gt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Nt},sn=Object.freeze({__proto__:null,Children:xe,Component:w,Fragment:E,PureComponent:le,StrictMode:Dt,Suspense:Z,SuspenseList:A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Nt,cloneElement:J,createContext:ye,createElement:k,createFactory:Pt,createPortal:kt,createRef:Ge,default:Ot,findDOMNode:Ut,flushSync:Te,forwardRef:Se,hydrate:$t,isElement:Mt,isFragment:Rt,isMemo:Tt,isValidElement:F,lazy:gt,memo:ft,render:Ne,startTransition:Ue,unmountComponentAtNode:Re,unstable_batchedUpdates:Ht,useCallback:oe,useContext:ie,useDebugValue:ke,useDeferredValue:He,useEffect:Y,useErrorBoundary:Gt,useId:Ce,useImperativeHandle:be,useInsertionEffect:Me,useLayoutEffect:D,useMemo:W,useReducer:G,useRef:re,useState:L,useSyncExternalStore:Oe,useTransition:De,version:cn});const Lt=[];function fn(e){const t=new CSSStyleSheet;t.replace(e),Lt.push(t);const n=document.createElement("style");n.appendChild(document.createTextNode(e.replaceAll(/url\(["']?([^"')]+)["']?\)/g,(_,r)=>`url("${import.meta.resolve("./"+r)}")`))),document.head.append(n)}function pn(e){return{render:function(t){Ne(t,e)},unmount:function(){Re(e)}}}var We=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},S=(e,t,n)=>(We(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},M=(e,t,n,_)=>(We(e,t,"write to private field"),t.set(e,n),n),dn=(e,t,n)=>(We(e,t,"access private method"),n);function hn(e,t,n={}){var _,r,o,u,l,a,c;class p extends HTMLElement{constructor(){super(),I(this,a),I(this,_,void 0),I(this,r,void 0),I(this,o,void 0),I(this,u,void 0),I(this,l,void 0),M(this,o,pn(this.attachShadow({mode:"open"}))),this.shadowRoot&&(this.shadowRoot.adoptedStyleSheets=Lt),M(this,_,new MutationObserver(d=>{d.forEach(({attributeName:s})=>{s&&dn(this,a,c).call(this,s,this.getAttribute(s))})})),M(this,r,(n.customEvents??[]).reduce((d,s)=>(d[s]=y=>{this.dispatchEvent(new CustomEvent(vn(s),{bubbles:!0,cancelable:!0,detail:y}))},d),{})),M(this,l,t)}connectedCallback(){S(this,_).observe(this,{attributes:!0}),M(this,u,J(Ae(this,S(this,l)),S(this,r))),S(this,o).render(S(this,u))}disconnectedCallback(){S(this,_).disconnect(),M(this,u,null),S(this,o).unmount()}}_=new WeakMap,r=new WeakMap,o=new WeakMap,u=new WeakMap,l=new WeakMap,a=new WeakSet,c=function(i,d){S(this,u)&&(M(this,u,J(S(this,u),{[Wt(i)]:d===null?void 0:d})),S(this,o).render(S(this,u)))},customElements.get(e)||customElements.define(e,p)}function Ae(e,t,n=!1){if(!(e instanceof Element))return null;const _=!!t,r={};for(const{name:u,value:l}of e.attributes)n&&u==="slot"||u.startsWith("on")||(r[Wt(u)]=l);const o=[];for(const u of e.childNodes)_&&u instanceof Element&&u.slot?r[u.slot]=k("slot",{name:u.slot},Ae(u,void 0,!0)):o.push(u instanceof Text?u.data:Ae(u));return k(t||e.nodeName.toLowerCase(),r,_?k("slot",null,o):o)}const Wt=e=>e.replace(/-(\w)/g,(t,n)=>n.toUpperCase()),vn=e=>e.slice(2).toLowerCase();export{sn as $,D as A,re as F,ye as G,xe as N,ie as P,Ot as R,k as _,Y as a,E as b,F as f,J as h,fn as i,Se as k,Te as m,L as p,W as q,hn as r,qt as u,oe as x,G as y};
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/optimizely-axiom/optiaxiom.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "0.1.0-next.1",
9
+ "version": "0.1.0-next.3",
10
10
  "files": [
11
11
  "dist/**",
12
12
  "LICENSE"
@@ -14,14 +14,29 @@
14
14
  "license": "Apache-2.0",
15
15
  "exports": {
16
16
  ".": "./dist/index.js",
17
+ "./Avatar": "./dist/Avatar.js",
18
+ "./AnimatePresence": "./dist/AnimatePresence.js",
17
19
  "./Box": "./dist/Box.js",
18
20
  "./Button": "./dist/Button.js",
21
+ "./ButtonGroup": "./dist/ButtonGroup.js",
22
+ "./Code": "./dist/Code.js",
23
+ "./Field": "./dist/Field.js",
24
+ "./Flex": "./dist/Flex.js",
25
+ "./Grid": "./dist/Grid.js",
26
+ "./Heading": "./dist/Heading.js",
19
27
  "./Input": "./dist/Input.js",
28
+ "./Kbd": "./dist/Kbd.js",
20
29
  "./Paper": "./dist/Paper.js",
21
- "./Tooltip": "./dist/Tooltip.js"
30
+ "./Progress": "./dist/Progress.js",
31
+ "./Separator": "./dist/Separator.js",
32
+ "./Skeleton": "./dist/Skeleton.js",
33
+ "./Text": "./dist/Text.js",
34
+ "./Tooltip": "./dist/Tooltip.js",
35
+ "./Transition": "./dist/Transition.js"
22
36
  },
23
37
  "types": "dist/index.d.ts",
24
38
  "devDependencies": {
39
+ "@rollup/plugin-json": "^6.1.0",
25
40
  "@rollup/plugin-node-resolve": "^15.2.3",
26
41
  "@types/node": "^20.14.2",
27
42
  "@vitest/browser": "^1.6.0",
@@ -31,7 +46,7 @@
31
46
  "postcss-url": "^10.1.3",
32
47
  "preact": "^10.22.0",
33
48
  "webdriverio": "^8.39.0",
34
- "@optiaxiom/react": "^0.1.0-next.5",
49
+ "@optiaxiom/react": "^0.1.0-next.8",
35
50
  "@optiaxiom/shared": "^0.0.0"
36
51
  },
37
52
  "scripts": {