UNPKG

zeplin-extension-style-kit

Version:

Models and utilities to generate CSS-like style code in Zeplin extensions.

47 lines (36 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _utils = require("../utils"); var _constants = require("../constants"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var TextFillColor = /*#__PURE__*/function () { function TextFillColor(value) { _classCallCheck(this, TextFillColor); this.value = value; } _createClass(TextFillColor, [{ key: "equals", value: function equals(other) { return this.value === other.value; } }, { key: "getValue", value: function getValue() { return this.value; } }, { key: "name", get: function get() { return _constants.STYLE_PROPS.TEXT_FILL_COLOR; } }]); return TextFillColor; }(); var webKitTextFillColor = (0, _utils.webkit)(TextFillColor); var _default = webKitTextFillColor; exports.default = _default;