UNPKG

@renderlesskit/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

30 lines (25 loc) 818 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { getItemId: true }; exports.getItemId = getItemId; var _utils = require("../../utils"); var _useTypeaheadShortcut = require("./useTypeaheadShortcut"); Object.keys(_useTypeaheadShortcut).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _useTypeaheadShortcut[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _useTypeaheadShortcut[key]; } }); }); function getItemId(baseId, value, id) { return id || "".concat(baseId, "-").concat((0, _utils.kebabCase)(value)); } //# sourceMappingURL=index.js.map