parseTrbl.js 357 B

1234567891011121314151617
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _postcss = require('postcss');
  6. exports.default = v => {
  7. const s = typeof v === 'string' ? _postcss.list.space(v) : v;
  8. return [s[0], // top
  9. s[1] || s[0], // right
  10. s[2] || s[0], // bottom
  11. s[3] || s[1] || s[0]];
  12. };
  13. module.exports = exports['default'];