UNPKG

rn-web-cli

Version:

React Native for Web

1 lines 1.81 kB
{"version":3,"sources":["node_modules\\inline-style-prefixer\\static\\plugins\\sizing.js"],"names":["Object","defineProperty","exports","value","default","sizing","prefixes","properties","maxHeight","maxWidth","width","height","columnWidth","minWidth","minHeight","values","property","hasOwnProperty","map","prefix","module"],"mappings":"AAAA;;AAEAA,OAAOC,cAAP,CAAsBC,OAAtB,CAA+B,YAA/B,CAA6C;AAC3CC,MAAO,IADoC,CAA7C;;AAGAD,QAAQE,OAAR,CAAkBC,MAAlB;AACA,GAAIC,UAAW,CAAC,UAAD,CAAa,OAAb,CAAsB,EAAtB,CAAf;;AAEA,GAAIC,YAAa;AACfC,UAAW,IADI;AAEfC,SAAU,IAFK;AAGfC,MAAO,IAHQ;AAIfC,OAAQ,IAJO;AAKfC,YAAa,IALE;AAMfC,SAAU,IANK;AAOfC,UAAW,IAPI,CAAjB;;AASA,GAAIC,QAAS;AACX,cAAe,IADJ;AAEX,cAAe,IAFJ;AAGX,iBAAkB,IAHP;AAIX,cAAe,IAJJ;AAKX,iBAAkB,IALP,CAAb;;;AAQA,QAASV,OAAT,CAAgBW,QAAhB,CAA0Bb,KAA1B,CAAiC;AAC/B,GAAII,WAAWU,cAAX,CAA0BD,QAA1B,GAAuCD,OAAOE,cAAP,CAAsBd,KAAtB,CAA3C,CAAyE;AACvE,MAAOG,UAASY,GAAT,CAAa,SAAUC,MAAV,CAAkB;AACpC,MAAOA,QAAShB,KAAhB;AACD,CAFM,CAAP;AAGD;AACF;AACDiB,OAAOlB,OAAP,CAAiBA,QAAQ,SAAR,CAAjB","file":"sizing.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = sizing;\nvar prefixes = ['-webkit-', '-moz-', ''];\n\nvar properties = {\n maxHeight: true,\n maxWidth: true,\n width: true,\n height: true,\n columnWidth: true,\n minWidth: true,\n minHeight: true\n};\nvar values = {\n 'min-content': true,\n 'max-content': true,\n 'fill-available': true,\n 'fit-content': true,\n 'contain-floats': true\n};\n\nfunction sizing(property, value) {\n if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {\n return prefixes.map(function (prefix) {\n return prefix + value;\n });\n }\n}\nmodule.exports = exports['default'];"]}