@bgord/design 0.27.7 → 0.27.8
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.
- package/dist/design.cjs.development.js +7 -0
- package/dist/design.cjs.development.js.map +1 -1
- package/dist/design.cjs.production.min.js +1 -1
- package/dist/design.cjs.production.min.js.map +1 -1
- package/dist/design.esm.js +7 -0
- package/dist/design.esm.js.map +1 -1
- package/dist/main.css +5 -0
- package/dist/main.min.css +1 -1
- package/dist/main.min.css.br +0 -0
- package/dist/main.min.css.gz +0 -0
- package/dist/tokens.d.ts +1 -1
- package/package.json +1 -1
- package/src/tokens.ts +7 -1
- package/src/transforms-generator.ts +5 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("fs");function n(t,n,e,r,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function e(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function s(t){n(i,o,a,s,c,"next",t)}function c(t){n(i,o,a,s,c,"throw",t)}s(void 0)}))}}function r(){return(r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function a(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return o(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=(function(t){var n=function(t){var n=Object.prototype,e=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var o=Object.create((n&&n.prototype instanceof f?n:f).prototype),a=new O(r||[]);return o._invoke=function(t,n,e){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(e.method=o,e.arg=a;;){var i=e.delegate;if(i){var s=m(i,e);if(s){if(s===h)continue;return s}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var c=u(t,n,e);if("normal"===c.type){if(r=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),o}function u(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function f(){}function l(){}function d(){}var p={};p[o]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(k([])));v&&v!==n&&e.call(v,o)&&(p=v);var b=d.prototype=f.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function w(t,n){var r;this._invoke=function(o,a){function i(){return new n((function(r,i){!function r(o,a,i,s){var c=u(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"==typeof f&&e.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):n.resolve(f).then((function(t){h.value=t,i(h)}),(function(t){return r("throw",t,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function m(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,m(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=u(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(e.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:F}}function F(){return{value:void 0,done:!0}}return l.prototype=b.constructor=d,d.constructor=l,l.displayName=s(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===l||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(w.prototype),w.prototype[a]=function(){return this},t.AsyncIterator=w,t.async=function(n,e,r,o,a){void 0===a&&(a=Promise);var i=new w(c(n,e,r,o),a);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(b),s(b,i,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=e.call(a,"catchLoc"),c=e.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=n,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:k(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}(i={exports:{}}),i.exports),c=function(){function n(t){this.path=t}var r=n.prototype;return r.save=function(){var n=e(s.mark((function n(e){return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",t.promises.writeFile(this.path,e));case 1:case"end":return n.stop()}}),n,this)})));return function(t){return n.apply(this,arguments)}}(),r.read=function(){var n=e(s.mark((function n(){return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.promises.readFile(this.path);case 3:return n.abrupt("return",n.sent.toString());case 7:return n.prev=7,n.t0=n.catch(0),n.abrupt("return",null);case 10:case"end":return n.stop()}}),n,this,[[0,7]])})));return function(){return n.apply(this,arguments)}}(),n}(),u=function(){function t(t){this.spacing=t.spacing,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Margins */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.spacing);n<e.length;n++){var r=e[n];t+="*[data-m='"+r[0]+"'] {\n margin: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.spacing);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-mx='"+i[0]+"'] {\n margin-left: "+s+";\n margin-right: "+s+";\n}\n"}for(var c=0,u=Object.entries(this.spacing);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-my='"+h[0]+"'] {\n margin-top: "+f+";\n margin-bottom: "+f+";\n}\n"}for(var l=0,d=Object.entries(this.spacing);l<d.length;l++){var p=d[l];t+="*[data-mt='"+p[0]+"'] {\n margin-top: "+p[1]+";\n}\n"}for(var g=0,v=Object.entries(this.spacing);g<v.length;g++){var b=v[g];t+="*[data-mr='"+b[0]+"'] {\n margin-right: "+b[1]+";\n}\n"}for(var y=0,w=Object.entries(this.spacing);y<w.length;y++){var m=w[y];t+="*[data-mb='"+m[0]+"'] {\n margin-bottom: "+m[1]+";\n}\n"}for(var x=0,j=Object.entries(this.spacing);x<j.length;x++){var O=j[x];t+="*[data-ml='"+O[0]+"'] {\n margin-left: "+O[1]+";\n}\n"}for(var k=0,F=Object.entries(this.breakpoints);k<F.length;k++){var C=F[k],L=C[0];t+="@media (max-width: "+C[1]+"px) {\n";for(var H=0,E=Object.entries(this.spacing);H<E.length;H++){var W=E[H];t+=" *[data-"+L+"-m='"+W[0]+"'] {\n margin: "+W[1]+";\n }\n"}for(var S=0,z=Object.entries(this.spacing);S<z.length;S++){var P=z[S],_=P[1];t+=" *[data-"+L+"-mx='"+P[0]+"'] {\n margin-left: "+_+";\n margin-right: "+_+";\n }\n"}for(var G=0,A=Object.entries(this.spacing);G<A.length;G++){var D=A[G],I=D[1];t+=" *[data-"+L+"-my='"+D[0]+"'] {\n margin-top: "+I+";\n margin-bottom: "+I+";\n }\n"}for(var B=0,N=Object.entries(this.spacing);B<N.length;B++){var T=N[B];t+=" *[data-"+L+"-mt='"+T[0]+"'] {\n margin-top: "+T[1]+";\n }\n"}for(var R=0,M=Object.entries(this.spacing);R<M.length;R++){var Y=M[R];t+=" *[data-"+L+"-mr='"+Y[0]+"'] {\n margin-right: "+Y[1]+";\n }\n"}for(var q=0,U=Object.entries(this.spacing);q<U.length;q++){var $=U[q];t+=" *[data-"+L+"-mb='"+$[0]+"'] {\n margin-bottom: "+$[1]+";\n }\n"}for(var J=0,K=Object.entries(this.spacing);J<K.length;J++){var Q=K[J];t+=" *[data-"+L+"-ml='"+Q[0]+"'] {\n margin-left: "+Q[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),h=function(){function t(t){this.spacing=t.spacing,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Paddings */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.spacing);n<e.length;n++){var r=e[n];t+="*[data-p='"+r[0]+"'] {\n padding: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.spacing);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-px='"+i[0]+"'] {\n padding-left: "+s+";\n padding-right: "+s+";\n}\n"}for(var c=0,u=Object.entries(this.spacing);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-py='"+h[0]+"'] {\n padding-top: "+f+";\n padding-bottom: "+f+";\n}\n"}for(var l=0,d=Object.entries(this.spacing);l<d.length;l++){var p=d[l];t+="*[data-pt='"+p[0]+"'] {\n padding-top: "+p[1]+";\n}\n"}for(var g=0,v=Object.entries(this.spacing);g<v.length;g++){var b=v[g];t+="*[data-pr='"+b[0]+"'] {\n padding-right: "+b[1]+";\n}\n"}for(var y=0,w=Object.entries(this.spacing);y<w.length;y++){var m=w[y];t+="*[data-pb='"+m[0]+"'] {\n padding-bottom: "+m[1]+";\n}\n"}for(var x=0,j=Object.entries(this.spacing);x<j.length;x++){var O=j[x];t+="*[data-pl='"+O[0]+"'] {\n padding-left: "+O[1]+";\n}\n"}for(var k=0,F=Object.entries(this.breakpoints);k<F.length;k++){var C=F[k],L=C[0];t+="@media (max-width: "+C[1]+"px) {\n";for(var H=0,E=Object.entries(this.spacing);H<E.length;H++){var W=E[H];t+=" *[data-"+L+"-p='"+W[0]+"'] {\n padding: "+W[1]+";\n }\n"}for(var S=0,z=Object.entries(this.spacing);S<z.length;S++){var P=z[S],_=P[1];t+=" *[data-"+L+"-px='"+P[0]+"'] {\n padding-left: "+_+";\n padding-right: "+_+";\n }\n"}for(var G=0,A=Object.entries(this.spacing);G<A.length;G++){var D=A[G],I=D[1];t+=" *[data-"+L+"-py='"+D[0]+"'] {\n padding-top: "+I+";\n padding-bottom: "+I+";\n }\n"}for(var B=0,N=Object.entries(this.spacing);B<N.length;B++){var T=N[B];t+=" *[data-"+L+"-pt='"+T[0]+"'] {\n padding-top: "+T[1]+";\n }\n"}for(var R=0,M=Object.entries(this.spacing);R<M.length;R++){var Y=M[R];t+=" *[data-"+L+"-pr='"+Y[0]+"'] {\n padding-right: "+Y[1]+";\n }\n"}for(var q=0,U=Object.entries(this.spacing);q<U.length;q++){var $=U[q];t+=" *[data-"+L+"-pb='"+$[0]+"'] {\n padding-bottom: "+$[1]+";\n }\n"}for(var J=0,K=Object.entries(this.spacing);J<K.length;J++){var Q=K[J];t+=" *[data-"+L+"-pl='"+Q[0]+"'] {\n padding-left: "+Q[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),f=function(){function t(t){this.displays=t.displays}var n=t.prototype;return n.generateHeader=function(){return"/* Displays */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.displays);n<e.length;n++){var r=e[n],o=r[0],a=r[1];t+="flex"===a?"*[data-display='"+o+"'] {\n display: "+a+";\nflex-wrap: wrap;\n}\n":"*[data-display='"+o+"'] {\n display: "+a+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),l=function(){function t(t){this.axisPlacements=t.axisPlacements,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Axis placements */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.axisPlacements);n<e.length;n++){var r=e[n];t+="*[data-main='"+r[0]+"'] {\n justify-content: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.axisPlacements);o<a.length;o++){var i=a[o];t+="*[data-cross='"+i[0]+"'] {\n align-items: "+i[1]+";\n}\n"}for(var s=0,c=Object.entries(this.breakpoints);s<c.length;s++){var u=c[s],h=u[0];t+="@media (max-width: "+u[1]+"px) {\n";for(var f=0,l=Object.entries(this.axisPlacements);f<l.length;f++){var d=l[f];t+=" *[data-"+h+"-main='"+d[0]+"'] {\n justify-content: "+d[1]+";\n }\n"}for(var p=0,g=Object.entries(this.axisPlacements);p<g.length;p++){var v=g[p];t+=" *[data-"+h+"-cross='"+v[0]+"'] {\n align-items: "+v[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),d=function(){function t(t){this.positions=t.positions}var n=t.prototype;return n.generateHeader=function(){return"/* Positions */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.positions);n<e.length;n++){var r=e[n];t+="*[data-position='"+r[0]+"'] {\n position: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),p=function(){function t(t){this.flexWraps=t.flexWraps}var n=t.prototype;return n.generateHeader=function(){return"/* Flex wraps */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexWraps);n<e.length;n++){var r=e[n];t+="*[data-wrap='"+r[0]+"'] {\n flex-wrap: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),g=function(){function t(t){this.zIndexes=t.zIndexes}var n=t.prototype;return n.generateHeader=function(){return"/* Displays */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.zIndexes);n<e.length;n++){var r=e[n];t+="*[data-z='"+r[0]+"'] {\n z-index: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),v=function(){function t(t){this.widhts=t.widths,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.widhts);n<e.length;n++){var r=e[n];t+="*[data-width='"+r[0]+"'] {\n width: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.widhts);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-width='"+h[0]+"'] {\n width: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),b=function(){function t(t){this.fontSizes=t.fontSizes,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.fontSizes);n<e.length;n++){var r=e[n];t+="*[data-fs='"+r[0]+"'] {\n font-size: "+r[1]+"px;\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.fontSizes);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-fs='"+h[0]+"'] {\n font-size: "+h[1]+"px;\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),y=function(){function t(t){this.fontWeights=t.fontWeights}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.fontWeights);n<e.length;n++){var r=e[n];t+="*[data-fw='"+r[0]+"'] {\n font-weight: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),w=function(){function t(t){this.lineHeights=t.lineHeights}var n=t.prototype;return n.generateHeader=function(){return"/* Line heights */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.lineHeights);n<e.length;n++){var r=e[n];t+="*[data-lh='"+r[0]+"'] {\n line-height: "+r[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),m=function(){function t(t){this.flexDirections=t.flexDirections,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Flex directions */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexDirections);n<e.length;n++){var r=e[n];t+="*[data-direction='"+r[0]+"'] {\n flex-direction: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.flexDirections);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-direction='"+h[0]+"'] {\n flex-direction: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),x=function(){function t(t){this.colors=r({},t.grayscale,t.greens,t.reds,t.oranges)}var n=t.prototype;return n.generateHeader=function(){return"/* Backgrounds */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.colors);n<e.length;n++){var r=e[n];t+="*[data-bg='"+r[0]+"'] {\n background-color: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),j=function(){function t(t){this.colors=r({},t.grayscale,t.greens,t.reds,t.oranges)}var n=t.prototype;return n.generateHeader=function(){return"/* Font colors */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.colors);n<e.length;n++){var r=e[n];t+="*[data-color='"+r[0]+"'] {\n color: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),O=function(){function t(t){this.letterSpacings=t.letterSpacings}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.letterSpacings);n<e.length;n++){var r=e[n];t+="*[data-ls='"+r[0]+"'] {\n letter-spacing: "+r[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),k=function(){function t(t){this.flexGrows=t.flexGrows,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Line heights */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexGrows);n<e.length;n++){var r=e[n];t+="*[data-grow='"+r[0]+"'] {\n flex-grow: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.flexGrows);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-grow='"+h[0]+"'] {\n flex-grow: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),F=function(){function t(t){this.borderWidths=t.borderWidths}var n=t.prototype;return n.generateHeader=function(){return"/* Border widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.borderWidths);n<e.length;n++){var r=e[n];t+="*[data-bw='"+r[0]+"'] {\n border-width: "+r[1]+"px;\n}\n"}for(var o=0,a=Object.entries(this.borderWidths);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-bwx='"+i[0]+"'] {\n border-left-width: "+s+"px;\n border-right-width: "+s+"px;\n}\n"}for(var c=0,u=Object.entries(this.borderWidths);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-bwy='"+h[0]+"'] {\n border-top-width: "+f+"px;\n border-bottom-width: "+f+"px;\n}\n"}for(var l=0,d=Object.entries(this.borderWidths);l<d.length;l++){var p=d[l];t+="*[data-bwt='"+p[0]+"'] {\n border-top-width: "+p[1]+"px;\n}\n"}for(var g=0,v=Object.entries(this.borderWidths);g<v.length;g++){var b=v[g];t+="*[data-bwr='"+b[0]+"'] {\n border-right-width: "+b[1]+"px;\n}\n"}for(var y=0,w=Object.entries(this.borderWidths);y<w.length;y++){var m=w[y];t+="*[data-bwb='"+m[0]+"'] {\n border-bottom-width: "+m[1]+"px;\n}\n"}for(var x=0,j=Object.entries(this.borderWidths);x<j.length;x++){var O=j[x];t+="*[data-bwl='"+O[0]+"'] {\n border-left-width: "+O[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),C=function(){function t(t){this.borderColors=t.borderColors,this.greens=t.greens,this.oranges=t.oranges,this.reds=t.reds}var n=t.prototype;return n.generateHeader=function(){return"/* Border colors */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(r({},this.borderColors,this.greens,this.oranges,this.reds));n<e.length;n++){var o=e[n];t+="*[data-bc='"+o[0]+"'] {\n border-color: "+o[1]+";\n border-style: solid;\n}\n"}for(var a=0,i=Object.entries(this.borderColors);a<i.length;a++){var s=i[a],c=s[1];t+="*[data-bcx='"+s[0]+"'] {\n border-right-color: "+c+";\n border-left-color: "+c+";\n border-right-style: solid;\n border-left-style: solid;\n}\n"}for(var u=0,h=Object.entries(this.borderColors);u<h.length;u++){var f=h[u],l=f[1];t+="*[data-bcy='"+f[0]+"'] {\n border-top-color: "+l+";\n border-bottom-color: "+l+";\n border-top-style: solid;\n border-bottom-style: solid;\n}\n"}for(var d=0,p=Object.entries(this.borderColors);d<p.length;d++){var g=p[d];t+="*[data-bct='"+g[0]+"'] {\n border-top-color: "+g[1]+";\n border-top-style: solid;\n}\n"}for(var v=0,b=Object.entries(this.borderColors);v<b.length;v++){var y=b[v];t+="*[data-bcr='"+y[0]+"'] {\n border-right-color: "+y[1]+";\n border-right-style: solid;\n}\n"}for(var w=0,m=Object.entries(this.borderColors);w<m.length;w++){var x=m[w];t+="*[data-bcb='"+x[0]+"'] {\n border-bottom-color: "+x[1]+";\n border-bottom-style: solid;\n}\n"}for(var j=0,O=Object.entries(this.borderColors);j<O.length;j++){var k=O[j];t+="*[data-bcl='"+k[0]+"'] {\n border-left-color: "+k[1]+";\n border-left-style: solid;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),L=function(){function t(t){this.borderRadiuses=t.borderRadiuses}var n=t.prototype;return n.generateHeader=function(){return"/* Border radiuses */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.borderRadiuses);n<e.length;n++){var r=e[n];t+="*[data-br='"+r[0]+"'] {\n border-radius: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),H=function(){function t(t){this.maxWidths=t.maxWidths}var n=t.prototype;return n.generateHeader=function(){return"/* Max widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.maxWidths);n<e.length;n++){var r=e[n];t+="*[data-max-width='"+r[0]+"'] {\n max-width: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),E=function(){function t(t){this.transforms=t.transforms}var n=t.prototype;return n.generateHeader=function(){return"/* Transforms */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.transforms);n<e.length;n++){var r=e[n];t+="*[data-transform='"+r[0]+"'] {\n text-transform: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),W=function(){function t(t){this.overflows=t.overflows}var n=t.prototype;return n.generateHeader=function(){return"/* Overflows */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.overflows);n<e.length;n++){var r=e[n];t+="*[data-overflow='"+r[0]+"'] {\n overflow: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),S={0:"0",3:"3px",6:"6px",12:"12px",24:"24px",36:"36px",48:"48px",72:"72px",auto:"auto",unset:"unset"},z={flex:"flex",block:"block","inline-block":"inline-block",none:"none"},P={start:"flex-start",end:"flex-end",between:"space-between",center:"center",baseline:"baseline"},_={static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky",unset:"unset"},G={nowrap:"nowrap",wrap:"wrap","wrap-reverse":"wrap-reverse",unset:"unset"},A={0:"0",1:"1",2:"2",3:"3"},D={"100%":"100%",auto:"auto",unset:"unset"},I={12:"12",14:"14",16:"16",20:"20",24:"24",32:"32",36:"36"},B={300:"300",400:"400",500:"500",700:"700",900:"900",unset:"unset"},N={12:"12",16:"16",20:"20",24:"24",32:"32",36:"36",unset:"unset"},T={row:"row","row-reverse":"row-reverse",column:"column","column-reverse":"column-reverse"},R={white:"#F9FAFB","gray-100":"#F3F4F6","gray-200":"#E5E7EB","gray-300":"#D1D5DB","gray-400":"#9CA3AF","gray-500":"#6B7280","gray-600":"#4B5563","gray-700":"#374151","gray-800":"#1F2937",black:"#111827"},M={"green-100":"hsl(112, 50%, 85%)","green-200":"hsl(112, 50%, 75%)","green-300":"hsl(112, 50%, 65%)","green-400":"hsl(112, 50%, 55%)","green-500":"hsl(112, 50%, 45%)","green-600":"hsl(112, 50%, 35%)","green-700":"hsl(112, 50%, 25%)","green-800":"hsl(112, 50%, 20%)"},Y={"red-100":"hsl(5, 80%, 90%)","red-200":"hsl(5, 80%, 83%)","red-300":"hsl(5, 80%, 72.5%)","red-400":"hsl(5, 80%, 62.5%)","red-500":"hsl(5, 80%, 52.5%)","red-600":"hsl(5, 80%, 42%)","red-700":"hsl(5, 80%, 32.5%)","red-800":"hsl(5, 80%, 22.5%)"},q={"orange-100":"hsl(25, 88%, 85%)","orange-200":"hsl(25, 88%, 75%)","orange-300":"hsl(25, 88%, 65%)","orange-400":"hsl(25, 88%, 55%)","orange-500":"hsl(25, 88%, 45%)","orange-600":"hsl(25, 88%, 37.5%)","orange-700":"hsl(25, 88%, 27.5%)","orange-800":"hsl(25, 88%, 20%)"},U={md:768},$={.5:.5,1:1,1.5:1.5,2:2},J={1:"1",unset:"unset"},K={1:1,2:2,4:4,6:6,12:12},Q=r({},R,{transparent:"transparent"}),V={0:"0",1:"1px",2:"2px",4:"4px","50%":"50%"},X={"100%":"100%",768:"768px",unset:"unset"},Z={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"none"},tt={auto:"auto",scroll:"scroll",hidden:"hidden"},nt=function(){function t(){}return t.prototype.process=function(){var t=e(s.mark((function t(n){var e,r,o,i;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e="",r=a(n);!(o=r()).done;)e+=(i=o.value).generateHeader(),e+=i.generateCss(),e+=i.generateFooter();return t.t0=e,t.next=5,new c("src/ui/button.css").read();case 5:return e=t.t0+=t.sent,t.t1=e,t.next=9,new c("src/ui/input.css").read();case 9:return e=t.t1+=t.sent,t.t2=e,t.next=13,new c("src/ui/label.css").read();case 13:return e=t.t2+=t.sent,t.t3=e,t.next=17,new c("src/ui/link.css").read();case 17:return e=t.t3+=t.sent,t.t4=e,t.next=21,new c("src/ui/select.css").read();case 21:return e=t.t4+=t.sent,t.t5=e,t.next=25,new c("src/ui/checkbox.css").read();case 25:return e=t.t5+=t.sent,t.next=28,new c("dist/main.css").save(e);case 28:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),t}();function et(){return(et=e(s.mark((function t(){var n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={spacing:S,displays:z,axisPlacements:P,positions:_,flexWraps:G,zIndexes:A,widths:D,fontSizes:I,fontWeights:B,lineHeights:N,flexDirections:T,grayscale:R,greens:M,reds:Y,oranges:q,breakpoints:U,letterSpacings:$,flexGrows:J,borderWidths:K,borderColors:Q,borderRadiuses:V,maxWidths:X,transforms:Z,overflows:tt},t.next=3,(new nt).process([new u(n),new h(n),new f(n),new l(n),new p(n),new m(n),new k(n),new v(n),new d(n),new g(n),new b(n),new y(n),new j(n),new w(n),new O(n),new x(n),new F(n),new C(n),new L(n),new H(n),new E(n),new W(n)]);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){et.apply(this,arguments)}();
|
|
1
|
+
"use strict";var t=require("fs");function n(t,n,e,r,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function e(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function s(t){n(i,o,a,s,c,"next",t)}function c(t){n(i,o,a,s,c,"throw",t)}s(void 0)}))}}function r(){return(r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function a(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return o(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=(function(t){var n=function(t){var n=Object.prototype,e=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var o=Object.create((n&&n.prototype instanceof f?n:f).prototype),a=new O(r||[]);return o._invoke=function(t,n,e){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(e.method=o,e.arg=a;;){var i=e.delegate;if(i){var s=m(i,e);if(s){if(s===h)continue;return s}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var c=u(t,n,e);if("normal"===c.type){if(r=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),o}function u(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function f(){}function l(){}function d(){}var p={};p[o]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(k([])));v&&v!==n&&e.call(v,o)&&(p=v);var b=d.prototype=f.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function w(t,n){var r;this._invoke=function(o,a){function i(){return new n((function(r,i){!function r(o,a,i,s){var c=u(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"==typeof f&&e.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):n.resolve(f).then((function(t){h.value=t,i(h)}),(function(t){return r("throw",t,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function m(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,m(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=u(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(e.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:F}}function F(){return{value:void 0,done:!0}}return l.prototype=b.constructor=d,d.constructor=l,l.displayName=s(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===l||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(w.prototype),w.prototype[a]=function(){return this},t.AsyncIterator=w,t.async=function(n,e,r,o,a){void 0===a&&(a=Promise);var i=new w(c(n,e,r,o),a);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(b),s(b,i,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=e.call(a,"catchLoc"),c=e.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=n,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),h},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),h}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:k(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}(i={exports:{}}),i.exports),c=function(){function n(t){this.path=t}var r=n.prototype;return r.save=function(){var n=e(s.mark((function n(e){return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",t.promises.writeFile(this.path,e));case 1:case"end":return n.stop()}}),n,this)})));return function(t){return n.apply(this,arguments)}}(),r.read=function(){var n=e(s.mark((function n(){return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.promises.readFile(this.path);case 3:return n.abrupt("return",n.sent.toString());case 7:return n.prev=7,n.t0=n.catch(0),n.abrupt("return",null);case 10:case"end":return n.stop()}}),n,this,[[0,7]])})));return function(){return n.apply(this,arguments)}}(),n}(),u=function(){function t(t){this.spacing=t.spacing,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Margins */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.spacing);n<e.length;n++){var r=e[n];t+="*[data-m='"+r[0]+"'] {\n margin: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.spacing);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-mx='"+i[0]+"'] {\n margin-left: "+s+";\n margin-right: "+s+";\n}\n"}for(var c=0,u=Object.entries(this.spacing);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-my='"+h[0]+"'] {\n margin-top: "+f+";\n margin-bottom: "+f+";\n}\n"}for(var l=0,d=Object.entries(this.spacing);l<d.length;l++){var p=d[l];t+="*[data-mt='"+p[0]+"'] {\n margin-top: "+p[1]+";\n}\n"}for(var g=0,v=Object.entries(this.spacing);g<v.length;g++){var b=v[g];t+="*[data-mr='"+b[0]+"'] {\n margin-right: "+b[1]+";\n}\n"}for(var y=0,w=Object.entries(this.spacing);y<w.length;y++){var m=w[y];t+="*[data-mb='"+m[0]+"'] {\n margin-bottom: "+m[1]+";\n}\n"}for(var x=0,j=Object.entries(this.spacing);x<j.length;x++){var O=j[x];t+="*[data-ml='"+O[0]+"'] {\n margin-left: "+O[1]+";\n}\n"}for(var k=0,F=Object.entries(this.breakpoints);k<F.length;k++){var C=F[k],L=C[0];t+="@media (max-width: "+C[1]+"px) {\n";for(var H=0,E=Object.entries(this.spacing);H<E.length;H++){var W=E[H];t+=" *[data-"+L+"-m='"+W[0]+"'] {\n margin: "+W[1]+";\n }\n"}for(var S=0,z=Object.entries(this.spacing);S<z.length;S++){var P=z[S],_=P[1];t+=" *[data-"+L+"-mx='"+P[0]+"'] {\n margin-left: "+_+";\n margin-right: "+_+";\n }\n"}for(var G=0,A=Object.entries(this.spacing);G<A.length;G++){var D=A[G],I=D[1];t+=" *[data-"+L+"-my='"+D[0]+"'] {\n margin-top: "+I+";\n margin-bottom: "+I+";\n }\n"}for(var B=0,N=Object.entries(this.spacing);B<N.length;B++){var T=N[B];t+=" *[data-"+L+"-mt='"+T[0]+"'] {\n margin-top: "+T[1]+";\n }\n"}for(var R=0,M=Object.entries(this.spacing);R<M.length;R++){var Y=M[R];t+=" *[data-"+L+"-mr='"+Y[0]+"'] {\n margin-right: "+Y[1]+";\n }\n"}for(var q=0,U=Object.entries(this.spacing);q<U.length;q++){var $=U[q];t+=" *[data-"+L+"-mb='"+$[0]+"'] {\n margin-bottom: "+$[1]+";\n }\n"}for(var J=0,K=Object.entries(this.spacing);J<K.length;J++){var Q=K[J];t+=" *[data-"+L+"-ml='"+Q[0]+"'] {\n margin-left: "+Q[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),h=function(){function t(t){this.spacing=t.spacing,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Paddings */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.spacing);n<e.length;n++){var r=e[n];t+="*[data-p='"+r[0]+"'] {\n padding: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.spacing);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-px='"+i[0]+"'] {\n padding-left: "+s+";\n padding-right: "+s+";\n}\n"}for(var c=0,u=Object.entries(this.spacing);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-py='"+h[0]+"'] {\n padding-top: "+f+";\n padding-bottom: "+f+";\n}\n"}for(var l=0,d=Object.entries(this.spacing);l<d.length;l++){var p=d[l];t+="*[data-pt='"+p[0]+"'] {\n padding-top: "+p[1]+";\n}\n"}for(var g=0,v=Object.entries(this.spacing);g<v.length;g++){var b=v[g];t+="*[data-pr='"+b[0]+"'] {\n padding-right: "+b[1]+";\n}\n"}for(var y=0,w=Object.entries(this.spacing);y<w.length;y++){var m=w[y];t+="*[data-pb='"+m[0]+"'] {\n padding-bottom: "+m[1]+";\n}\n"}for(var x=0,j=Object.entries(this.spacing);x<j.length;x++){var O=j[x];t+="*[data-pl='"+O[0]+"'] {\n padding-left: "+O[1]+";\n}\n"}for(var k=0,F=Object.entries(this.breakpoints);k<F.length;k++){var C=F[k],L=C[0];t+="@media (max-width: "+C[1]+"px) {\n";for(var H=0,E=Object.entries(this.spacing);H<E.length;H++){var W=E[H];t+=" *[data-"+L+"-p='"+W[0]+"'] {\n padding: "+W[1]+";\n }\n"}for(var S=0,z=Object.entries(this.spacing);S<z.length;S++){var P=z[S],_=P[1];t+=" *[data-"+L+"-px='"+P[0]+"'] {\n padding-left: "+_+";\n padding-right: "+_+";\n }\n"}for(var G=0,A=Object.entries(this.spacing);G<A.length;G++){var D=A[G],I=D[1];t+=" *[data-"+L+"-py='"+D[0]+"'] {\n padding-top: "+I+";\n padding-bottom: "+I+";\n }\n"}for(var B=0,N=Object.entries(this.spacing);B<N.length;B++){var T=N[B];t+=" *[data-"+L+"-pt='"+T[0]+"'] {\n padding-top: "+T[1]+";\n }\n"}for(var R=0,M=Object.entries(this.spacing);R<M.length;R++){var Y=M[R];t+=" *[data-"+L+"-pr='"+Y[0]+"'] {\n padding-right: "+Y[1]+";\n }\n"}for(var q=0,U=Object.entries(this.spacing);q<U.length;q++){var $=U[q];t+=" *[data-"+L+"-pb='"+$[0]+"'] {\n padding-bottom: "+$[1]+";\n }\n"}for(var J=0,K=Object.entries(this.spacing);J<K.length;J++){var Q=K[J];t+=" *[data-"+L+"-pl='"+Q[0]+"'] {\n padding-left: "+Q[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),f=function(){function t(t){this.displays=t.displays}var n=t.prototype;return n.generateHeader=function(){return"/* Displays */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.displays);n<e.length;n++){var r=e[n],o=r[0],a=r[1];t+="flex"===a?"*[data-display='"+o+"'] {\n display: "+a+";\nflex-wrap: wrap;\n}\n":"*[data-display='"+o+"'] {\n display: "+a+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),l=function(){function t(t){this.axisPlacements=t.axisPlacements,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Axis placements */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.axisPlacements);n<e.length;n++){var r=e[n];t+="*[data-main='"+r[0]+"'] {\n justify-content: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.axisPlacements);o<a.length;o++){var i=a[o];t+="*[data-cross='"+i[0]+"'] {\n align-items: "+i[1]+";\n}\n"}for(var s=0,c=Object.entries(this.breakpoints);s<c.length;s++){var u=c[s],h=u[0];t+="@media (max-width: "+u[1]+"px) {\n";for(var f=0,l=Object.entries(this.axisPlacements);f<l.length;f++){var d=l[f];t+=" *[data-"+h+"-main='"+d[0]+"'] {\n justify-content: "+d[1]+";\n }\n"}for(var p=0,g=Object.entries(this.axisPlacements);p<g.length;p++){var v=g[p];t+=" *[data-"+h+"-cross='"+v[0]+"'] {\n align-items: "+v[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),d=function(){function t(t){this.positions=t.positions}var n=t.prototype;return n.generateHeader=function(){return"/* Positions */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.positions);n<e.length;n++){var r=e[n];t+="*[data-position='"+r[0]+"'] {\n position: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),p=function(){function t(t){this.flexWraps=t.flexWraps}var n=t.prototype;return n.generateHeader=function(){return"/* Flex wraps */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexWraps);n<e.length;n++){var r=e[n];t+="*[data-wrap='"+r[0]+"'] {\n flex-wrap: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),g=function(){function t(t){this.zIndexes=t.zIndexes}var n=t.prototype;return n.generateHeader=function(){return"/* Displays */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.zIndexes);n<e.length;n++){var r=e[n];t+="*[data-z='"+r[0]+"'] {\n z-index: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),v=function(){function t(t){this.widhts=t.widths,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.widhts);n<e.length;n++){var r=e[n];t+="*[data-width='"+r[0]+"'] {\n width: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.widhts);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-width='"+h[0]+"'] {\n width: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),b=function(){function t(t){this.fontSizes=t.fontSizes,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.fontSizes);n<e.length;n++){var r=e[n];t+="*[data-fs='"+r[0]+"'] {\n font-size: "+r[1]+"px;\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.fontSizes);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-fs='"+h[0]+"'] {\n font-size: "+h[1]+"px;\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),y=function(){function t(t){this.fontWeights=t.fontWeights}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.fontWeights);n<e.length;n++){var r=e[n];t+="*[data-fw='"+r[0]+"'] {\n font-weight: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),w=function(){function t(t){this.lineHeights=t.lineHeights}var n=t.prototype;return n.generateHeader=function(){return"/* Line heights */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.lineHeights);n<e.length;n++){var r=e[n];t+="*[data-lh='"+r[0]+"'] {\n line-height: "+r[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),m=function(){function t(t){this.flexDirections=t.flexDirections,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Flex directions */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexDirections);n<e.length;n++){var r=e[n];t+="*[data-direction='"+r[0]+"'] {\n flex-direction: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.flexDirections);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-direction='"+h[0]+"'] {\n flex-direction: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),x=function(){function t(t){this.colors=r({},t.grayscale,t.greens,t.reds,t.oranges)}var n=t.prototype;return n.generateHeader=function(){return"/* Backgrounds */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.colors);n<e.length;n++){var r=e[n];t+="*[data-bg='"+r[0]+"'] {\n background-color: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),j=function(){function t(t){this.colors=r({},t.grayscale,t.greens,t.reds,t.oranges)}var n=t.prototype;return n.generateHeader=function(){return"/* Font colors */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.colors);n<e.length;n++){var r=e[n];t+="*[data-color='"+r[0]+"'] {\n color: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),O=function(){function t(t){this.letterSpacings=t.letterSpacings}var n=t.prototype;return n.generateHeader=function(){return"/* Font sizes */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.letterSpacings);n<e.length;n++){var r=e[n];t+="*[data-ls='"+r[0]+"'] {\n letter-spacing: "+r[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),k=function(){function t(t){this.flexGrows=t.flexGrows,this.breakpoints=t.breakpoints}var n=t.prototype;return n.generateHeader=function(){return"/* Line heights */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.flexGrows);n<e.length;n++){var r=e[n];t+="*[data-grow='"+r[0]+"'] {\n flex-grow: "+r[1]+";\n}\n"}for(var o=0,a=Object.entries(this.breakpoints);o<a.length;o++){var i=a[o],s=i[0];t+="@media (max-width: "+i[1]+"px) {\n";for(var c=0,u=Object.entries(this.flexGrows);c<u.length;c++){var h=u[c];t+=" *[data-"+s+"-grow='"+h[0]+"'] {\n flex-grow: "+h[1]+";\n }\n"}t+="}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),F=function(){function t(t){this.borderWidths=t.borderWidths}var n=t.prototype;return n.generateHeader=function(){return"/* Border widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.borderWidths);n<e.length;n++){var r=e[n];t+="*[data-bw='"+r[0]+"'] {\n border-width: "+r[1]+"px;\n}\n"}for(var o=0,a=Object.entries(this.borderWidths);o<a.length;o++){var i=a[o],s=i[1];t+="*[data-bwx='"+i[0]+"'] {\n border-left-width: "+s+"px;\n border-right-width: "+s+"px;\n}\n"}for(var c=0,u=Object.entries(this.borderWidths);c<u.length;c++){var h=u[c],f=h[1];t+="*[data-bwy='"+h[0]+"'] {\n border-top-width: "+f+"px;\n border-bottom-width: "+f+"px;\n}\n"}for(var l=0,d=Object.entries(this.borderWidths);l<d.length;l++){var p=d[l];t+="*[data-bwt='"+p[0]+"'] {\n border-top-width: "+p[1]+"px;\n}\n"}for(var g=0,v=Object.entries(this.borderWidths);g<v.length;g++){var b=v[g];t+="*[data-bwr='"+b[0]+"'] {\n border-right-width: "+b[1]+"px;\n}\n"}for(var y=0,w=Object.entries(this.borderWidths);y<w.length;y++){var m=w[y];t+="*[data-bwb='"+m[0]+"'] {\n border-bottom-width: "+m[1]+"px;\n}\n"}for(var x=0,j=Object.entries(this.borderWidths);x<j.length;x++){var O=j[x];t+="*[data-bwl='"+O[0]+"'] {\n border-left-width: "+O[1]+"px;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),C=function(){function t(t){this.borderColors=t.borderColors,this.greens=t.greens,this.oranges=t.oranges,this.reds=t.reds}var n=t.prototype;return n.generateHeader=function(){return"/* Border colors */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(r({},this.borderColors,this.greens,this.oranges,this.reds));n<e.length;n++){var o=e[n];t+="*[data-bc='"+o[0]+"'] {\n border-color: "+o[1]+";\n border-style: solid;\n}\n"}for(var a=0,i=Object.entries(this.borderColors);a<i.length;a++){var s=i[a],c=s[1];t+="*[data-bcx='"+s[0]+"'] {\n border-right-color: "+c+";\n border-left-color: "+c+";\n border-right-style: solid;\n border-left-style: solid;\n}\n"}for(var u=0,h=Object.entries(this.borderColors);u<h.length;u++){var f=h[u],l=f[1];t+="*[data-bcy='"+f[0]+"'] {\n border-top-color: "+l+";\n border-bottom-color: "+l+";\n border-top-style: solid;\n border-bottom-style: solid;\n}\n"}for(var d=0,p=Object.entries(this.borderColors);d<p.length;d++){var g=p[d];t+="*[data-bct='"+g[0]+"'] {\n border-top-color: "+g[1]+";\n border-top-style: solid;\n}\n"}for(var v=0,b=Object.entries(this.borderColors);v<b.length;v++){var y=b[v];t+="*[data-bcr='"+y[0]+"'] {\n border-right-color: "+y[1]+";\n border-right-style: solid;\n}\n"}for(var w=0,m=Object.entries(this.borderColors);w<m.length;w++){var x=m[w];t+="*[data-bcb='"+x[0]+"'] {\n border-bottom-color: "+x[1]+";\n border-bottom-style: solid;\n}\n"}for(var j=0,O=Object.entries(this.borderColors);j<O.length;j++){var k=O[j];t+="*[data-bcl='"+k[0]+"'] {\n border-left-color: "+k[1]+";\n border-left-style: solid;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),L=function(){function t(t){this.borderRadiuses=t.borderRadiuses}var n=t.prototype;return n.generateHeader=function(){return"/* Border radiuses */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.borderRadiuses);n<e.length;n++){var r=e[n];t+="*[data-br='"+r[0]+"'] {\n border-radius: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),H=function(){function t(t){this.maxWidths=t.maxWidths}var n=t.prototype;return n.generateHeader=function(){return"/* Max widths */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.maxWidths);n<e.length;n++){var r=e[n];t+="*[data-max-width='"+r[0]+"'] {\n max-width: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),E=function(){function t(t){this.transforms=t.transforms}var n=t.prototype;return n.generateHeader=function(){return"/* Transforms */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.transforms);n<e.length;n++){var r=e[n],o=r[0];t+="truncate"!==o?"*[data-transform='"+o+"'] {\n text-transform: "+r[1]+";\n}\n":"*[data-transform='"+o+"'] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),W=function(){function t(t){this.overflows=t.overflows}var n=t.prototype;return n.generateHeader=function(){return"/* Overflows */\n\n"},n.generateCss=function(){for(var t="",n=0,e=Object.entries(this.overflows);n<e.length;n++){var r=e[n];t+="*[data-overflow='"+r[0]+"'] {\n overflow: "+r[1]+";\n}\n"}return t},n.generateFooter=function(){return"/* ===================== */\n\n"},t}(),S={0:"0",3:"3px",6:"6px",12:"12px",24:"24px",36:"36px",48:"48px",72:"72px",auto:"auto",unset:"unset"},z={flex:"flex",block:"block","inline-block":"inline-block",none:"none"},P={start:"flex-start",end:"flex-end",between:"space-between",center:"center",baseline:"baseline"},_={static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky",unset:"unset"},G={nowrap:"nowrap",wrap:"wrap","wrap-reverse":"wrap-reverse",unset:"unset"},A={0:"0",1:"1",2:"2",3:"3"},D={"100%":"100%",auto:"auto",unset:"unset"},I={12:"12",14:"14",16:"16",20:"20",24:"24",32:"32",36:"36"},B={300:"300",400:"400",500:"500",700:"700",900:"900",unset:"unset"},N={12:"12",16:"16",20:"20",24:"24",32:"32",36:"36",unset:"unset"},T={row:"row","row-reverse":"row-reverse",column:"column","column-reverse":"column-reverse"},R={white:"#F9FAFB","gray-100":"#F3F4F6","gray-200":"#E5E7EB","gray-300":"#D1D5DB","gray-400":"#9CA3AF","gray-500":"#6B7280","gray-600":"#4B5563","gray-700":"#374151","gray-800":"#1F2937",black:"#111827"},M={"green-100":"hsl(112, 50%, 85%)","green-200":"hsl(112, 50%, 75%)","green-300":"hsl(112, 50%, 65%)","green-400":"hsl(112, 50%, 55%)","green-500":"hsl(112, 50%, 45%)","green-600":"hsl(112, 50%, 35%)","green-700":"hsl(112, 50%, 25%)","green-800":"hsl(112, 50%, 20%)"},Y={"red-100":"hsl(5, 80%, 90%)","red-200":"hsl(5, 80%, 83%)","red-300":"hsl(5, 80%, 72.5%)","red-400":"hsl(5, 80%, 62.5%)","red-500":"hsl(5, 80%, 52.5%)","red-600":"hsl(5, 80%, 42%)","red-700":"hsl(5, 80%, 32.5%)","red-800":"hsl(5, 80%, 22.5%)"},q={"orange-100":"hsl(25, 88%, 85%)","orange-200":"hsl(25, 88%, 75%)","orange-300":"hsl(25, 88%, 65%)","orange-400":"hsl(25, 88%, 55%)","orange-500":"hsl(25, 88%, 45%)","orange-600":"hsl(25, 88%, 37.5%)","orange-700":"hsl(25, 88%, 27.5%)","orange-800":"hsl(25, 88%, 20%)"},U={md:768},$={.5:.5,1:1,1.5:1.5,2:2},J={1:"1",unset:"unset"},K={1:1,2:2,4:4,6:6,12:12},Q=r({},R,{transparent:"transparent"}),V={0:"0",1:"1px",2:"2px",4:"4px","50%":"50%"},X={"100%":"100%",768:"768px",unset:"unset"},Z={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",truncate:"truncate",none:"none"},tt={auto:"auto",scroll:"scroll",hidden:"hidden"},nt=function(){function t(){}return t.prototype.process=function(){var t=e(s.mark((function t(n){var e,r,o,i;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e="",r=a(n);!(o=r()).done;)e+=(i=o.value).generateHeader(),e+=i.generateCss(),e+=i.generateFooter();return t.t0=e,t.next=5,new c("src/ui/button.css").read();case 5:return e=t.t0+=t.sent,t.t1=e,t.next=9,new c("src/ui/input.css").read();case 9:return e=t.t1+=t.sent,t.t2=e,t.next=13,new c("src/ui/label.css").read();case 13:return e=t.t2+=t.sent,t.t3=e,t.next=17,new c("src/ui/link.css").read();case 17:return e=t.t3+=t.sent,t.t4=e,t.next=21,new c("src/ui/select.css").read();case 21:return e=t.t4+=t.sent,t.t5=e,t.next=25,new c("src/ui/checkbox.css").read();case 25:return e=t.t5+=t.sent,t.next=28,new c("dist/main.css").save(e);case 28:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),t}();function et(){return(et=e(s.mark((function t(){var n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={spacing:S,displays:z,axisPlacements:P,positions:_,flexWraps:G,zIndexes:A,widths:D,fontSizes:I,fontWeights:B,lineHeights:N,flexDirections:T,grayscale:R,greens:M,reds:Y,oranges:q,breakpoints:U,letterSpacings:$,flexGrows:J,borderWidths:K,borderColors:Q,borderRadiuses:V,maxWidths:X,transforms:Z,overflows:tt},t.next=3,(new nt).process([new u(n),new h(n),new f(n),new l(n),new p(n),new m(n),new k(n),new v(n),new d(n),new g(n),new b(n),new y(n),new j(n),new w(n),new O(n),new x(n),new F(n),new C(n),new L(n),new H(n),new E(n),new W(n)]);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){et.apply(this,arguments)}();
|
|
2
2
|
//# sourceMappingURL=design.cjs.production.min.js.map
|