UI for Zipcoin Blue

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. 'use strict';
  2. exports.__esModule = true;
  3. var _container = require('./container');
  4. var _container2 = _interopRequireDefault(_container);
  5. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  8. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  9. /**
  10. * Represents an at-rule.
  11. *
  12. * If it’s followed in the CSS by a {} block, this node will have
  13. * a nodes property representing its children.
  14. *
  15. * @extends Container
  16. *
  17. * @example
  18. * const root = postcss.parse('@charset "UTF-8"; @media print {}');
  19. *
  20. * const charset = root.first;
  21. * charset.type //=> 'atrule'
  22. * charset.nodes //=> undefined
  23. *
  24. * const media = root.last;
  25. * media.nodes //=> []
  26. */
  27. var AtRule = function (_Container) {
  28. _inherits(AtRule, _Container);
  29. function AtRule(defaults) {
  30. _classCallCheck(this, AtRule);
  31. var _this = _possibleConstructorReturn(this, _Container.call(this, defaults));
  32. _this.type = 'atrule';
  33. return _this;
  34. }
  35. AtRule.prototype.append = function append() {
  36. var _Container$prototype$;
  37. if (!this.nodes) this.nodes = [];
  38. for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) {
  39. children[_key] = arguments[_key];
  40. }
  41. return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children));
  42. };
  43. AtRule.prototype.prepend = function prepend() {
  44. var _Container$prototype$2;
  45. if (!this.nodes) this.nodes = [];
  46. for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  47. children[_key2] = arguments[_key2];
  48. }
  49. return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children));
  50. };
  51. /**
  52. * @memberof AtRule#
  53. * @member {string} name - the at-rule’s name immediately follows the `@`
  54. *
  55. * @example
  56. * const root = postcss.parse('@media print {}');
  57. * media.name //=> 'media'
  58. * const media = root.first;
  59. */
  60. /**
  61. * @memberof AtRule#
  62. * @member {string} params - the at-rule’s parameters, the values
  63. * that follow the at-rule’s name but precede
  64. * any {} block
  65. *
  66. * @example
  67. * const root = postcss.parse('@media print, screen {}');
  68. * const media = root.first;
  69. * media.params //=> 'print, screen'
  70. */
  71. /**
  72. * @memberof AtRule#
  73. * @member {object} raws - Information to generate byte-to-byte equal
  74. * node string as it was in the origin input.
  75. *
  76. * Every parser saves its own properties,
  77. * but the default CSS parser uses:
  78. *
  79. * * `before`: the space symbols before the node. It also stores `*`
  80. * and `_` symbols before the declaration (IE hack).
  81. * * `after`: the space symbols after the last child of the node
  82. * to the end of the node.
  83. * * `between`: the symbols between the property and value
  84. * for declarations, selector and `{` for rules, or last parameter
  85. * and `{` for at-rules.
  86. * * `semicolon`: contains true if the last child has
  87. * an (optional) semicolon.
  88. * * `afterName`: the space between the at-rule name and its parameters.
  89. *
  90. * PostCSS cleans at-rule parameters from comments and extra spaces,
  91. * but it stores origin content in raws properties.
  92. * As such, if you don’t change a declaration’s value,
  93. * PostCSS will use the raw value with comments.
  94. *
  95. * @example
  96. * const root = postcss.parse(' @media\nprint {\n}')
  97. * root.first.first.raws //=> { before: ' ',
  98. * // between: ' ',
  99. * // afterName: '\n',
  100. * // after: '\n' }
  101. */
  102. return AtRule;
  103. }(_container2.default);
  104. exports.default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