UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

25 lines (24 loc) 908 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withFormatter = withFormatter; var _NumberFormatBase = _interopRequireDefault(require("./NumberFormatBase.js")); var _withComponentMarkers = _interopRequireDefault(require("../../shared/helpers/withComponentMarkers.js")); var _jsxRuntime = require("react/jsx-runtime"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function withFormatter(displayName, formatter, forcedProps = {}) { function NumberFormatVariant(props) { return (0, _jsxRuntime.jsx)(_NumberFormatBase.default, { ...forcedProps, ...props, __format: formatter }); } NumberFormatVariant.displayName = displayName; (0, _withComponentMarkers.default)(NumberFormatVariant, { _supportsSpacingProps: true }); return NumberFormatVariant; } //# sourceMappingURL=withFormatter.js.map