primevue-mirror/components/lib/props/style/padding/index.js

49 lines
1.0 KiB
JavaScript

import x from './modules/x';
import y from './modules/y';
import bottom from './properties/bottom';
import left from './properties/left';
import right from './properties/right';
import top from './properties/top';
export default {
// properties
...bottom,
...left,
...right,
...top,
// modules
...x,
...y
};
/* const { styleClass } = require('../../utils');
const bottom = require('./properties/bottom');
const left = require('./properties/left');
const right = require('./properties/right');
const top = require('./properties/top');
const x = require('./modules/x');
const y = require('./modules/y');
module.exports = (root, opts) => {
const scales = opts.spacing;
let paddings = {};
for (const i in scales) {
paddings['p-' + i] = scales[i] + 'rem';
}
styleClass('padding', paddings, root, opts, true);
// properties
bottom(root, opts);
left(root, opts);
right(root, opts);
top(root, opts);
// modules
x(root, opts);
y(root, opts);
};
*/