Comparing version 0.200.1 to 0.201.0
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("effector"),t=require("forest"),r=require("stylis");function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=e.createEvent({loc:{file:"/src/index.ts",line:5,column:17},name:"addStyle",sid:"-dde58y"}),i=e.createStore({map:new Map},{loc:{file:"/src/index.ts",line:6,column:16},name:"$styles",sid:"fw31b8"});i.on(a,(function(e,t){var n=t.id,o=t.styles;return e.map.has(n)?e:(e.map.set(n,function(e,t){return r.serialize(r.compile(".es-".concat(e," { ").concat(t," }")),r.stringify)}(n,o)),{map:e.map})}));var s,c=(s=9005e3,function(){return(++s).toString(36)});function l(e,t){var r=[e[0]];return t.forEach((function(t,n){if("function"==typeof t){if("string"!=typeof t.STYLED_ID)throw new TypeError("Passed not an effector styled component");r.push(".es-".concat(t.STYLED_ID))}else r.push(String(t));r.push(e[n+1])})),r.join("")}var u=function(e){return function(r){for(var n=c(),o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];var u=l(r,i),f=function(r){a({id:n,styles:u}),t.h(e,(function(){t.node((function(e){e.classList.add("es-".concat(n))})),r&&("function"==typeof r?r():(t.spec(r),"function"==typeof r.fn&&r.fn()))}))};return f.STYLED_ID=n,f}};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","marquee","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){u[e]=u(e)}));var f=u;exports.StyledRoot=function(){var e=i.map((function(e){return n(e.map.values()).join(" ")}));t.h("style",{text:e})},exports.styled=f; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("effector"),r=require("forest");function t(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return a(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var n={exports:{}};!function(e){var r="-ms-",t="-moz-",a="-webkit-",n="comm",c="rule",s="decl",o="@page",i="@media",u="@import",l="@charset",f="@viewport",p="@supports",h="@document",d="@namespace",m="@keyframes",b="@font-face",y="@counter-style",g="@font-feature-values",v=Math.abs,w=String.fromCharCode;function $(e,r){return(((r<<2^T(e,0))<<2^T(e,1))<<2^T(e,2))<<2^T(e,3)}function k(e){return e.trim()}function x(e,r){return(e=r.exec(e))?e[0]:e}function E(e,r,t){return e.replace(r,t)}function S(e,r){return e.indexOf(r)}function T(e,r){return 0|e.charCodeAt(r)}function A(e,r,t){return e.slice(r,t)}function O(e){return e.length}function M(e){return e.length}function j(e,r){return r.push(e),e}function C(e,r){return e.map(r).join("")}function I(r,t,a,n,c,s,o){return{value:r,root:t,parent:a,type:n,props:c,children:s,line:e.line,column:e.column,length:o,return:""}}function _(e,r,t){return I(e,r.root,r.parent,t,r.props,r.children,0)}function P(){return e.character}function R(){return e.character=e.position>0?T(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function D(){return e.character=e.position<e.length?T(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function z(){return T(e.characters,e.position)}function L(){return e.position}function N(r,t){return A(e.characters,r,t)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q(r){return e.line=e.column=1,e.length=O(e.characters=r),e.position=0,[]}function F(r){return e.characters="",r}function Y(r){return k(N(e.position-1,B(91===r?r+2:40===r?r+1:r)))}function G(e){return F(V(q(e)))}function K(r){for(;(e.character=z())&&e.character<33;)D();return U(r)>2||U(e.character)>3?"":" "}function V(r){for(;D();)switch(U(e.character)){case 0:j(Z(e.position-1),r);break;case 2:j(Y(e.character),r);break;default:j(w(e.character),r)}return r}function W(r,t){for(;--t&&D()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return N(r,L()+(t<6&&32==z()&&32==D()))}function B(r){for(;D();)switch(e.character){case r:return e.position;case 34:case 39:return B(34===r||39===r?r:e.character);case 40:41===r&&B(r);break;case 92:D()}return e.position}function H(r,t){for(;D()&&r+e.character!==57&&(r+e.character!==84||47!==z()););return"/*"+N(t,e.position-1)+"*"+w(47===r?r:D())}function Z(r){for(;!U(z());)D();return N(r,e.position)}function J(e){return F(Q("",null,null,null,[""],e=q(e),0,[0],e))}function Q(e,r,t,a,n,c,s,o,i){for(var u=0,l=0,f=s,p=0,h=0,d=0,m=1,b=1,y=1,g=0,v="",$=n,k=c,x=a,S=v;b;)switch(d=g,g=D()){case 34:case 39:case 91:case 40:S+=Y(g);break;case 9:case 10:case 13:case 32:S+=K(d);break;case 92:S+=W(L()-1,7);continue;case 47:switch(z()){case 42:case 47:j(ee(H(D(),L()),r,t),i);break;default:S+="/"}break;case 123*m:o[u++]=O(S)*y;case 125*m:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+l:h>0&&O(S)-f&&j(h>32?re(S+";",a,t,f-1):re(E(S," ","")+";",a,t,f-2),i);break;case 59:S+=";";default:if(j(x=X(S,r,t,u,l,n,o,v,$=[],k=[],f),c),123===g)if(0===l)Q(S,r,x,x,$,c,f,o,k);else switch(p){case 100:case 109:case 115:Q(e,x,x,a&&j(X(e,x,x,0,0,n,o,v,n,$=[],f),k),n,k,f,o,a?$:k);break;default:Q(S,x,x,x,[""],k,f,o,k)}}u=l=h=0,m=y=1,v=S="",f=s;break;case 58:f=1+O(S),h=d;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==R())continue;switch(S+=w(g),g*m){case 38:y=l>0?1:(S+="\f",-1);break;case 44:o[u++]=(O(S)-1)*y,y=1;break;case 64:45===z()&&(S+=Y(D())),p=z(),l=O(v=S+=Z(L())),g++;break;case 45:45===d&&2==O(S)&&(m=0)}}return c}function X(e,r,t,a,n,s,o,i,u,l,f){for(var p=n-1,h=0===n?s:[""],d=M(h),m=0,b=0,y=0;m<a;++m)for(var g=0,w=A(e,p+1,p=v(b=o[m])),$=e;g<d;++g)($=k(b>0?h[g]+" "+w:E(w,/&\f/g,h[g])))&&(u[y++]=$);return I(e,r,t,0===n?c:i,u,l,f)}function ee(e,r,t){return I(e,r,t,n,w(P()),A(e,2,-2),0)}function re(e,r,t,a){return I(e,r,t,s,A(e,0,a),A(e,a+1,-1),a)}function te(e,n){switch($(e,n)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+t+e+r+e+e;case 6828:case 4268:return a+e+r+e+e;case 6165:return a+e+r+"flex-"+e+e;case 5187:return a+e+E(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+r+"flex-$1$2")+e;case 5443:return a+e+r+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return a+e+r+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+r+E(e,"shrink","negative")+e;case 5292:return a+e+r+E(e,"basis","preferred-size")+e;case 6060:return a+"box-"+E(e,"-grow","")+a+e+r+E(e,"grow","positive")+e;case 4554:return a+E(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(e)-1-n>6)switch(T(e,n+1)){case 109:if(45!==T(e,n+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+t+(108==T(e,n+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch")?te(E(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==T(e,n+1))break;case 6444:switch(T(e,O(e)-3-(~S(e,"!important")&&10))){case 107:return E(e,":",":"+a)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===T(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+r+"$2box$3")+e}break;case 5936:switch(T(e,n+11)){case 114:return a+e+r+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+r+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+r+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+r+e+e}return e}function ae(e,r){for(var t="",a=M(e),n=0;n<a;n++)t+=r(e[n],n,e,r)||"";return t}function ne(e,r,t,a){switch(e.type){case u:case s:return e.return=e.return||e.value;case n:return"";case c:e.value=e.props.join(",")}return O(t=ae(e.children,a))?e.return=e.value+"{"+t+"}":""}function ce(e){var r=M(e);return function(t,a,n,c){for(var s="",o=0;o<r;o++)s+=e[o](t,a,n,c)||"";return s}}function se(e){return function(r){r.root||(r=r.return)&&e(r)}}function oe(e,n,o,i){if(!e.return)switch(e.type){case s:e.return=te(e.value,e.length);break;case m:return ae([_(E(e.value,"@","@"+a),e,"")],i);case c:if(e.length)return C(e.props,(function(n){switch(x(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ae([_(E(n,/:(read-\w+)/,":"+t+"$1"),e,"")],i);case"::placeholder":return ae([_(E(n,/:(plac\w+)/,":"+a+"input-$1"),e,""),_(E(n,/:(plac\w+)/,":"+t+"$1"),e,""),_(E(n,/:(plac\w+)/,r+"input-$1"),e,"")],i)}return""}))}}function ie(e){e.type===c&&(e.props=e.props.map((function(r){return C(G(r),(function(r,t,a){switch(T(r,0)){case 12:return A(r,1,O(r));case 0:case 40:case 43:case 62:case 126:return r;case 58:"global"===a[++t]&&(a[t]="",a[++t]="\f"+A(a[t],t=1,-1));case 32:return 1===t?"":r;default:switch(t){case 0:return e=r,M(a)>1?"":r;case t=M(a)-1:case 2:return 2===t?r+e+e:r+e;default:return r}}}))})))}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET=l,e.COMMENT=n,e.COUNTER_STYLE=y,e.DECLARATION=s,e.DOCUMENT=h,e.FONT_FACE=b,e.FONT_FEATURE_VALUES=g,e.IMPORT=u,e.KEYFRAMES=m,e.MEDIA=i,e.MOZ=t,e.MS=r,e.NAMESPACE=d,e.PAGE=o,e.RULESET=c,e.SUPPORTS=p,e.VIEWPORT=f,e.WEBKIT=a,e.abs=v,e.alloc=q,e.append=j,e.caret=L,e.char=P,e.charat=T,e.combine=C,e.comment=ee,e.commenter=H,e.compile=J,e.copy=_,e.dealloc=F,e.declaration=re,e.delimit=Y,e.delimiter=B,e.escaping=W,e.from=w,e.hash=$,e.identifier=Z,e.indexof=S,e.match=x,e.middleware=ce,e.namespace=ie,e.next=D,e.node=I,e.parse=Q,e.peek=z,e.prefix=te,e.prefixer=oe,e.prev=R,e.replace=E,e.ruleset=X,e.rulesheet=se,e.serialize=ae,e.sizeof=M,e.slice=N,e.stringify=ne,e.strlen=O,e.substr=A,e.token=U,e.tokenize=G,e.tokenizer=V,e.trim=k,e.whitespace=K,Object.defineProperty(e,"__esModule",{value:!0})}(n.exports);var c=e.createEvent({loc:{file:"/src/index.ts",line:5,column:17},name:"addStyle",sid:"-dde58y"}),s=e.createStore({map:new Map},{loc:{file:"/src/index.ts",line:6,column:16},name:"$styles",sid:"fw31b8"});s.on(c,(function(e,r){var t=r.id,a=r.styles;return e.map.has(t)?e:(e.map.set(t,function(e,r){return n.exports.serialize(n.exports.compile(".es-".concat(e," { ").concat(r," }")),n.exports.stringify)}(t,a)),{map:e.map})}));var o,i=(o=9005e3,function(){return(++o).toString(36)});function u(e,r){var t=[e[0]];return r.forEach((function(r,a){if("function"==typeof r){if("string"!=typeof r.STYLED_ID)throw new TypeError("Passed not an effector styled component");t.push(".es-".concat(r.STYLED_ID))}else t.push(String(r));t.push(e[a+1])})),t.join("")}var l=function(e){return function(t){for(var a=i(),n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];var l=u(t,s),f=function(t){c({id:a,styles:l}),r.h(e,(function(){r.node((function(e){e.classList.add("es-".concat(a))})),t&&("function"==typeof t?t():(r.spec(t),"function"==typeof t.fn&&t.fn()))}))};return f.STYLED_ID=a,f}};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","marquee","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){l[e]=l(e)}));var f=l;exports.StyledRoot=function(){var e=s.map((function(e){return t(e.map.values()).join(" ")}));r.h("style",{text:e})},exports.styled=f; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "foliage", | ||
"version": "0.200.1", | ||
"version": "0.201.0", | ||
"description": "Styled Components for forest", | ||
@@ -87,3 +87,3 @@ "main": "index.js", | ||
"react-dom": "^17.0.2", | ||
"rollup": "^2.56.3", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
@@ -104,4 +104,3 @@ "sharec-sova-config": "^0.1.0", | ||
"postcss": "^8.2.6", | ||
"postcss-nested": "^5.0.3", | ||
"stylis": "^4.0.0" | ||
"postcss-nested": "^5.0.3" | ||
}, | ||
@@ -108,0 +107,0 @@ "peerDependencies": { |
@@ -217,1 +217,9 @@ # foliage 🍃 | ||
``` | ||
## Release process | ||
1. Check out the [draft release](https://github.com/foliage-ui/foliage/releases). | ||
1. All PRs should have correct labels and useful titles. You can [review available labels here](https://github.com/foliage-ui/foliage/blob/master/.github/release-drafter.yml). | ||
1. Update labels for PRs and titles, next [manually run the release drafter action](https://github.com/foliage-ui/foliage/actions/workflows/release-drafter.yml) to regenerate the draft release. | ||
1. Review the new version and press "Publish" | ||
1. If required check "Create discussion for this release" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37367
6
10
114
225
- Removedstylis@^4.0.0
- Removedstylis@4.3.4(transitive)