Skip to content

Commit

Permalink
fix: Drop module.exports
Browse files Browse the repository at this point in the history
  • Loading branch information
DimChtz committed Mar 14, 2024
1 parent bcd0bae commit 6d7bf3a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";var e={matchAlignValues:/^(_|(!?(center|start|end|between|around)))(\/(_|(!?(center|start|end|between|around))))?$/,matchWrapValues:/^!?(wrap|nowrap)$/,matchDirValues:/^!?-?(row|col)$/,matchGapValues:/^(_|(!?(\d+[a-z]+)))(\/(_|(!?(\d+[a-z]+))))?$/,valuesMapper:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",wrap:"wrap",nowrap:"nowrap",row:"row",col:"col","-row":"row-reverse","-col":"column-reverse"},baseStyles:["display: flex;"]};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a=t((function(e){return e.startsWith("!")?[!0,e.slice(1)]:[!1,e]}));function r(t,r,n,s=!0){const[o,l]=a(t),c=o?" !important":"",u=s?e.valuesMapper[l]:l;return n.push(`${r}: ${u}${c};`),n}function n(e,t,a,n=!0){return 1==e.length?(a=r(e[0],t[0],a,n),a=r(e[0],t[1],a,n)):("_"!==e[0]&&(a=r(e[0],t[0],a,n)),"_"!==e[1]&&(a=r(e[1],t[1],a,n)),a)}module.exports.postcss=!0,module.exports=function(){return{postcssPlugin:"postcss-flexup",Declaration:{flexup:t=>{t.parent.append(function(t){let a=[...e.baseStyles];return t.split(" ").forEach((t=>{"_"==t||(t.match(e.matchAlignValues)?a=n(t.split("/"),["justify-content","align-items"],a,!0):t.match(e.matchWrapValues)?a=r(t,"flex-wrap",a):t.match(e.matchDirValues)?a=r(t,"flex-direction",a):t.match(e.matchGapValues)&&(a=n(t.split("/"),["column-gap","row-gap"],a,!1)))})),"\n"+a.join("\n")}(t.toString())),t.remove()}}}};
"use strict";var e={matchAlignValues:/^(_|(!?(center|start|end|between|around)))(\/(_|(!?(center|start|end|between|around))))?$/,matchWrapValues:/^!?(wrap|nowrap)$/,matchDirValues:/^!?-?(row|col)$/,matchGapValues:/^(_|(!?(\d+[a-z]+)))(\/(_|(!?(\d+[a-z]+))))?$/,valuesMapper:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",wrap:"wrap",nowrap:"nowrap",row:"row",col:"col","-row":"row-reverse","-col":"column-reverse"},baseStyles:["display: flex;"]};function t(t,a,r,n=!0){const[s,c]=function(e){return e.startsWith("!")?[!0,e.slice(1)]:[!1,e]}(t),l=s?" !important":"",o=n?e.valuesMapper[c]:c;return r.push(`${a}: ${o}${l};`),r}function a(e,a,r,n=!0){return 1==e.length?(r=t(e[0],a[0],r,n),r=t(e[0],a[1],r,n)):("_"!==e[0]&&(r=t(e[0],a[0],r,n)),"_"!==e[1]&&(r=t(e[1],a[1],r,n)),r)}function r(){return{postcssPlugin:"postcss-flexup",Declaration:{flexup:r=>{r.parent.append(function(r){let n=[...e.baseStyles];return r.split(" ").forEach((r=>{"_"==r||(r.match(e.matchAlignValues)?n=a(r.split("/"),["justify-content","align-items"],n,!0):r.match(e.matchWrapValues)?n=t(r,"flex-wrap",n):r.match(e.matchDirValues)?n=t(r,"flex-direction",n):r.match(e.matchGapValues)&&(n=a(r.split("/"),["column-gap","row-gap"],n,!1)))})),"\n"+n.join("\n")}(r.toString())),r.remove()}}}}r.postcss=!0,module.exports=r;
//# sourceMappingURL=index.cjs.map
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
var e={matchAlignValues:/^(_|(!?(center|start|end|between|around)))(\/(_|(!?(center|start|end|between|around))))?$/,matchWrapValues:/^!?(wrap|nowrap)$/,matchDirValues:/^!?-?(row|col)$/,matchGapValues:/^(_|(!?(\d+[a-z]+)))(\/(_|(!?(\d+[a-z]+))))?$/,valuesMapper:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",wrap:"wrap",nowrap:"nowrap",row:"row",col:"col","-row":"row-reverse","-col":"column-reverse"},baseStyles:["display: flex;"]};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a=t((function(e){return e.startsWith("!")?[!0,e.slice(1)]:[!1,e]}));function r(t,r,n,s=!0){const[l,o]=a(t),c=l?" !important":"",p=s?e.valuesMapper[o]:o;return n.push(`${r}: ${p}${c};`),n}function n(e,t,a,n=!0){return 1==e.length?(a=r(e[0],t[0],a,n),a=r(e[0],t[1],a,n)):("_"!==e[0]&&(a=r(e[0],t[0],a,n)),"_"!==e[1]&&(a=r(e[1],t[1],a,n)),a)}function s(){return{postcssPlugin:"postcss-flexup",Declaration:{flexup:t=>{t.parent.append(function(t){let a=[...e.baseStyles];return t.split(" ").forEach((t=>{"_"==t||(t.match(e.matchAlignValues)?a=n(t.split("/"),["justify-content","align-items"],a,!0):t.match(e.matchWrapValues)?a=r(t,"flex-wrap",a):t.match(e.matchDirValues)?a=r(t,"flex-direction",a):t.match(e.matchGapValues)&&(a=n(t.split("/"),["column-gap","row-gap"],a,!1)))})),"\n"+a.join("\n")}(t.toString())),t.remove()}}}}module.exports.postcss=!0;export{s as default};
var e={matchAlignValues:/^(_|(!?(center|start|end|between|around)))(\/(_|(!?(center|start|end|between|around))))?$/,matchWrapValues:/^!?(wrap|nowrap)$/,matchDirValues:/^!?-?(row|col)$/,matchGapValues:/^(_|(!?(\d+[a-z]+)))(\/(_|(!?(\d+[a-z]+))))?$/,valuesMapper:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",wrap:"wrap",nowrap:"nowrap",row:"row",col:"col","-row":"row-reverse","-col":"column-reverse"},baseStyles:["display: flex;"]};function t(t,a,r,n=!0){const[s,c]=function(e){return e.startsWith("!")?[!0,e.slice(1)]:[!1,e]}(t),l=s?" !important":"",o=n?e.valuesMapper[c]:c;return r.push(`${a}: ${o}${l};`),r}function a(e,a,r,n=!0){return 1==e.length?(r=t(e[0],a[0],r,n),r=t(e[0],a[1],r,n)):("_"!==e[0]&&(r=t(e[0],a[0],r,n)),"_"!==e[1]&&(r=t(e[1],a[1],r,n)),r)}function r(){return{postcssPlugin:"postcss-flexup",Declaration:{flexup:r=>{r.parent.append(function(r){let n=[...e.baseStyles];return r.split(" ").forEach((r=>{"_"==r||(r.match(e.matchAlignValues)?n=a(r.split("/"),["justify-content","align-items"],n,!0):r.match(e.matchWrapValues)?n=t(r,"flex-wrap",n):r.match(e.matchDirValues)?n=t(r,"flex-direction",n):r.match(e.matchGapValues)&&(n=a(r.split("/"),["column-gap","row-gap"],n,!1)))})),"\n"+n.join("\n")}(r.toString())),r.remove()}}}}r.postcss=!0;export{r as default};
//# sourceMappingURL=index.mjs.map
Loading

0 comments on commit 6d7bf3a

Please sign in to comment.