UNPKG

create-fomantic-icons

Version:

A simple CLI to generate the icon.variables and icon.html.eco files for FUI

43 lines (42 loc) 1.31 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); // static var categories_json_1 = __importDefault(require("../static/categories.json")); var Category = /** @class */ (function () { function Category(data) { this.data = data; } Object.defineProperty(Category.prototype, "rawName", { get: function () { return this.data.name; }, enumerable: false, configurable: true }); Object.defineProperty(Category.prototype, "name", { get: function () { return this.data.label; }, enumerable: false, configurable: true }); Object.defineProperty(Category.prototype, "description", { get: function () { return categories_json_1.default[this.rawName]; }, enumerable: false, configurable: true }); Object.defineProperty(Category.prototype, "icons", { get: function () { return this.data.icons; }, enumerable: false, configurable: true }); return Category; }()); exports.default = Category;