@foris/avocado-suite 0.0.1-beta.3 → 0.0.1-beta.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@foris/avocado-suite",
|
3
|
-
"version": "0.0.1-beta.
|
3
|
+
"version": "0.0.1-beta.5",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -8,13 +8,12 @@
|
|
8
8
|
"files": [
|
9
9
|
"dist"
|
10
10
|
],
|
11
|
-
"main": "./dist/
|
12
|
-
"module": "./dist/avocado-suite.es.js",
|
11
|
+
"main": "./dist/index.es.js",
|
13
12
|
"types": "./dist/index.d.ts",
|
13
|
+
"typings": "./dist/index.d.ts",
|
14
14
|
"exports": {
|
15
15
|
".": {
|
16
|
-
"import": "./dist/
|
17
|
-
"require": "./dist/avocado-suite.umd.js"
|
16
|
+
"import": "./dist/index.es.js"
|
18
17
|
}
|
19
18
|
},
|
20
19
|
"dependencies": {
|
@@ -1,31 +0,0 @@
|
|
1
|
-
(function(w,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(w=typeof globalThis<"u"?globalThis:w||self,x(w["avocado-suite"]={},w.React))})(this,function(w,x){"use strict";var B={},xe={get exports(){return B},set exports(d){B=d}},A={};/**
|
2
|
-
* @license React
|
3
|
-
* react-jsx-runtime.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var re;function je(){if(re)return A;re=1;var d=x,R=Symbol.for("react.element"),h=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,m=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function y(E,c,j){var b,T={},P=null,$=null;j!==void 0&&(P=""+j),c.key!==void 0&&(P=""+c.key),c.ref!==void 0&&($=c.ref);for(b in c)v.call(c,b)&&!l.hasOwnProperty(b)&&(T[b]=c[b]);if(E&&E.defaultProps)for(b in c=E.defaultProps,c)T[b]===void 0&&(T[b]=c[b]);return{$$typeof:R,type:E,key:P,ref:$,props:T,_owner:m.current}}return A.Fragment=h,A.jsx=y,A.jsxs=y,A}var I={};/**
|
10
|
-
* @license React
|
11
|
-
* react-jsx-runtime.development.js
|
12
|
-
*
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
-
*
|
15
|
-
* This source code is licensed under the MIT license found in the
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var te;function ke(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var d=x,R=Symbol.for("react.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),E=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ae="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Ae];return typeof r=="function"?r:null}var k=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];We("error",e,t)}}function We(e,r,t){{var n=k.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ye=!1,$e=!1,Ne=!1,Le=!1,Me=!1,oe;oe=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===l||Me||e===m||e===j||e===b||Le||e===$||Ye||$e||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===T||e.$$typeof===y||e.$$typeof===E||e.$$typeof===c||e.$$typeof===oe||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case h:return"Portal";case l:return"Profiler";case m:return"StrictMode";case j:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ie(r)+".Consumer";case y:var t=e;return ie(t._context)+".Provider";case c:return Ue(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case P:{var i=e,u=i._payload,o=i._init;try{return O(o(u))}catch{return null}}}return null}var C=Object.assign,W=0,ue,se,fe,le,ce,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Be(){{if(W===0){ue=console.log,se=console.info,fe=console.warn,le=console.error,ce=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function qe(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ue}),info:C({},e,{value:se}),warn:C({},e,{value:fe}),error:C({},e,{value:le}),group:C({},e,{value:ce}),groupCollapsed:C({},e,{value:de}),groupEnd:C({},e,{value:ve})})}W<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=k.ReactCurrentDispatcher,z;function N(e,r,t){{if(z===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
|
18
|
-
`+z+e}}var K=!1,L;{var Je=typeof WeakMap=="function"?WeakMap:Map;L=new Je}function _e(e,r){if(!e||K)return"";{var t=L.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=G.current,G.current=null,Be();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(S){n=S}Reflect.construct(e,[],o)}else{try{o.call()}catch(S){n=S}e.call(o.prototype)}}else{try{throw Error()}catch(S){n=S}e()}}catch(S){if(S&&n&&typeof S.stack=="string"){for(var a=S.stack.split(`
|
19
|
-
`),_=n.stack.split(`
|
20
|
-
`),s=a.length-1,f=_.length-1;s>=1&&f>=0&&a[s]!==_[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==_[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==_[f]){var g=`
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,G.current=u,qe(),Error.prepareStackTrace=i}var F=e?e.displayName||e.name:"",Ce=F?N(F):"";return typeof e=="function"&&L.set(e,Ce),Ce}function Ge(e,r,t){return _e(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,ze(e));if(typeof e=="string")return N(e);switch(e){case j:return N("Suspense");case b:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Ge(e.render);case T:return M(e.type,r,t);case P:{var n=e,i=n._payload,u=n._init;try{return M(u(i),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,be={},he=k.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ke(e,r,t,n,i){{var u=Function.call.bind(V);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var _=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(i),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),U(null)),a instanceof Error&&!(a.message in be)&&(be[a.message]=!0,U(i),p("Failed %s type: %s",t,a.message),U(null))}}}var He=Array.isArray;function H(e){return He(e)}function Xe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function me(e){if(Ze(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),ge(e)}var Y=k.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},ye,Ee,X;X={};function er(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=O(Y.current.type);X[t]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(Y.current.type),e.ref),X[t]=!0)}}function nr(e,r){{var t=function(){ye||(ye=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){Ee||(Ee=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,i,u,o){var a={$$typeof:R,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ir(e,r,t,n,i){{var u,o={},a=null,_=null;t!==void 0&&(me(t),a=""+t),rr(r)&&(me(r.key),a=""+r.key),er(r)&&(_=r.ref,tr(r,i));for(u in r)V.call(r,u)&&!Qe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||_){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&nr(o,f),_&&ar(o,f)}return or(e,a,_,i,n,Y.current,o)}}var Z=k.ReactCurrentOwner,Re=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function Te(){{if(Z.current){var e=O(Z.current.type);if(e)return`
|
22
|
-
|
23
|
-
Check the render method of \``+e+"`."}return""}}function ur(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
24
|
-
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var Oe={};function sr(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
26
|
-
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),D(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function we(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Se(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=Ie(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ee(o.value)&&Se(o.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===T))t=r.propTypes;else return;if(t){var n=O(r);Ke(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var i=O(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Pe(e,r,t,n,i,u){{var o=Ve(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 _=ur(i);_?a+=_:a+=Te();var s;e===null?s="null":H(e)?s="array":e!==void 0&&e.$$typeof===R?(s="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=ir(e,r,t,i,u);if(f==null)return f;if(o){var g=r.children;if(g!==void 0)if(n)if(H(g)){for(var F=0;F<g.length;F++)we(g[F],e);Object.freeze&&Object.freeze(g)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(g,e)}return e===v?lr(f):fr(f),f}}function cr(e,r,t){return Pe(e,r,t,!0)}function dr(e,r,t){return Pe(e,r,t,!1)}var vr=dr,pr=cr;I.Fragment=v,I.jsx=vr,I.jsxs=pr}()),I}(function(d){process.env.NODE_ENV==="production"?d.exports=je():d.exports=ke()})(xe);var q={},De={get exports(){return q},set exports(d){q=d}};/*!
|
28
|
-
Copyright (c) 2018 Jed Watson.
|
29
|
-
Licensed under the MIT License (MIT), see
|
30
|
-
http://jedwatson.github.io/classnames
|
31
|
-
*/(function(d){(function(){var R={}.hasOwnProperty;function h(){for(var v=[],m=0;m<arguments.length;m++){var l=arguments[m];if(l){var y=typeof l;if(y==="string"||y==="number")v.push(l);else if(Array.isArray(l)){if(l.length){var E=h.apply(null,l);E&&v.push(E)}}else if(y==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){v.push(l.toString());continue}for(var c in l)R.call(l,c)&&l[c]&&v.push(c)}}}return v.join(" ")}d.exports?(h.default=h,d.exports=h):window.classNames=h})()})(De);const Fe=q,J={button:"_button_1npli_1",button__outline:"_button__outline_1npli_32",button__ghost:"_button__ghost_1npli_48",button__danger:"_button__danger_1npli_63"},ne=d=>{const{children:R,className:h,color:v="primary",variant:m="solid",type:l="button",...y}=d;return B.jsx("button",{className:Fe(J.button,h&&h,v&&J[`button__${v}`],m&&J[`button__${m}`]),type:l,...y,children:R})};ne.prototype={avocado:"Button"},w.Button=ne,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|
File without changes
|