UNPKG

@schema-render/core-react

Version:

Through a set of simple JSON Schema, efficiently build a set of forms.

26 lines (25 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { normalizeStyleValue: function() { return normalizeStyleValue; }, stringifyPath: function() { return stringifyPath; } }); var _checking = require("./checking"); function stringifyPath(path) { return path.join('.'); } function normalizeStyleValue(value) { return (0, _checking.isNumber)(value) ? "".concat(String(value), "px") : value; }