Repository URL to install this package:
|
Version:
1.7.1-fork.6 ▾
|
"use strict";
const camelCase = require('lodash/camelCase');
const variables = require('./variables');
const {
desktopOrLarger,
tabletOrLarger,
phoneOrLarger,
desktopOrSmaller,
tabletOrSmaller,
phoneOrSmaller,
vw,
rem,
container,
row,
font,
qa
} = require('./functions');
const remapped = {};
function remapKeys(key) {
const camelKey = camelCase(key);
remapped[camelKey] = variables[key]; // if required, add kebab as well
// but this is handled in spread exports
// remapped[key] = remapped[key]
}
Object.keys(variables).forEach(remapKeys);
module.exports = {
desktopOrLarger,
tabletOrLarger,
phoneOrLarger,
desktopOrSmaller,
tabletOrSmaller,
phoneOrSmaller,
vw,
rem,
container,
row,
font,
qa,
...variables,
// add these new names
remapped,
...remapped
};