'use strict';

var auto = require('./auto.js');
var index = require('./numbers/index.js');
var units = require('./numbers/units.js');
var test = require('./test.js');

/**
 * A list of value types commonly used for dimensions
 */
const dimensionValueTypes = [index.number, units.px, units.percent, units.degrees, units.vw, units.vh, auto.auto];
/**
 * Tests a dimensional value against the list of dimension ValueTypes
 */
const findDimensionValueType = (v) => dimensionValueTypes.find(test.testValueType(v));

exports.dimensionValueTypes = dimensionValueTypes;
exports.findDimensionValueType = findDimensionValueType;
