Tailwind css added
This commit is contained in:
24
node_modules/postcss-less/LICENSE
generated
vendored
Normal file
24
node_modules/postcss-less/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Andrey Sitnik <andrey@sitnik.ru>
|
||||
Copyright (c) 2016 Denys Kniazevych <webschik@gmail.com>
|
||||
Copyright (c) 2016 Pat Sissons <patricksissons@gmail.com>
|
||||
Copyright (c) 2017 Andrew Powell <andrew@shellscape.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
150
node_modules/postcss-less/README.md
generated
vendored
Normal file
150
node_modules/postcss-less/README.md
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
[tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-less.svg
|
||||
[tests-url]: https://circleci.com/gh/shellscape/postcss-less
|
||||
|
||||
[cover]: https://codecov.io/gh/shellscape/postcss-less/branch/master/graph/badge.svg
|
||||
[cover-url]: https://codecov.io/gh/shellscape/postcss-less
|
||||
|
||||
[size]: https://packagephobia.now.sh/badge?p=postcss-less
|
||||
[size-url]: https://packagephobia.now.sh/result?p=postcss-less
|
||||
|
||||
[PostCSS]: https://github.com/postcss/postcss
|
||||
[PostCSS-SCSS]: https://github.com/postcss/postcss-scss
|
||||
[LESS]: http://lesless.org
|
||||
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
||||
[Stylelint]: http://stylelint.io/
|
||||
|
||||
# postcss-less
|
||||
|
||||
[![tests][tests]][tests-url]
|
||||
[![cover][cover]][cover-url]
|
||||
[![size][size]][size-url]
|
||||
|
||||
A [PostCSS] Syntax for parsing [LESS]
|
||||
|
||||
_Note: This module requires Node v6.14.4+. `poscss-less` is not a LESS compiler. For compiling LESS, please use the official toolset for LESS._
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```console
|
||||
npm install postcss-less --save-dev
|
||||
```
|
||||
|
||||
<a href="https://www.patreon.com/shellscape">
|
||||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
|
||||
</a>
|
||||
|
||||
Please consider [becoming a patron](https://www.patreon.com/shellscape) if you find this module useful.
|
||||
|
||||
## Usage
|
||||
|
||||
The most common use of `postcss-less` is for applying PostCSS transformations directly to LESS source. eg. ia theme written in LESS which uses [Autoprefixer] to add appropriate vendor prefixes.
|
||||
|
||||
```js
|
||||
const syntax = require('postcss-less');
|
||||
postcss(plugins)
|
||||
.process(lessText, { syntax: syntax })
|
||||
.then(function (result) {
|
||||
result.content // LESS with transformations
|
||||
});
|
||||
```
|
||||
|
||||
## LESS Specific Parsing
|
||||
|
||||
### `@import`
|
||||
|
||||
Parsing of LESS-specific `@import` statements and options are supported.
|
||||
|
||||
```less
|
||||
@import (option) 'file.less';
|
||||
```
|
||||
|
||||
The AST will contain an `AtRule` node with:
|
||||
|
||||
- an `import: true` property
|
||||
- a `filename: <String>` property containing the imported filename
|
||||
- an `options: <String>` property containing any [import options](http://lesscss.org/features/#import-atrules-feature-import-options) specified
|
||||
|
||||
### Inline Comments
|
||||
|
||||
Parsing of single-line comments in CSS is supported.
|
||||
|
||||
```less
|
||||
:root {
|
||||
// Main theme color
|
||||
--color: red;
|
||||
}
|
||||
```
|
||||
|
||||
The AST will contain a `Comment` node with an `inline: true` property.
|
||||
|
||||
### Mixins
|
||||
|
||||
Parsing of LESS mixins is supported.
|
||||
|
||||
```less
|
||||
.my-mixin {
|
||||
color: black;
|
||||
}
|
||||
```
|
||||
|
||||
The AST will contain an `AtRule` node with a `mixin: true` property.
|
||||
|
||||
#### `!important`
|
||||
|
||||
Mixins that declare `!important` will contain an `important: true` property on their respective node.
|
||||
|
||||
### Variables
|
||||
|
||||
Parsing of LESS variables is supported.
|
||||
|
||||
```less
|
||||
@link-color: #428bca;
|
||||
```
|
||||
|
||||
The AST will contain an `AtRule` node with a `variable: true` property.
|
||||
|
||||
_Note: LESS variables are strictly parsed - a colon (`:`) must immediately follow a variable name._
|
||||
|
||||
## Stringifying
|
||||
|
||||
To process LESS code without PostCSS transformations, custom stringifier
|
||||
should be provided.
|
||||
|
||||
```js
|
||||
const postcss = require('postcss');
|
||||
const syntax = require('postcss-less');
|
||||
|
||||
const less = `
|
||||
// inline comment
|
||||
|
||||
.container {
|
||||
.mixin-1();
|
||||
.mixin-2;
|
||||
.mixin-3 (@width: 100px) {
|
||||
width: @width;
|
||||
}
|
||||
}
|
||||
|
||||
.rotation(@deg:5deg){
|
||||
.transform(rotate(@deg));
|
||||
}
|
||||
`;
|
||||
|
||||
const result = await postcss().process(less, { syntax });
|
||||
|
||||
// will contain the value of `less`
|
||||
const { content } = result;
|
||||
```
|
||||
|
||||
## Use Cases
|
||||
|
||||
- Lint LESS code with 3rd-party plugins.
|
||||
- Apply PostCSS transformations (such as [Autoprefixer](https://github.com/postcss/autoprefixer)) directly to the LESS source code
|
||||
|
||||
## Meta
|
||||
|
||||
[CONTRIBUTING](./.github/CONTRIBUTING)
|
||||
|
||||
[LICENSE (MIT)](./LICENSE)
|
211
node_modules/postcss-less/lib/LessParser.js
generated
vendored
Normal file
211
node_modules/postcss-less/lib/LessParser.js
generated
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
/* eslint no-param-reassign: off */
|
||||
|
||||
const Comment = require('postcss/lib/comment');
|
||||
const Parser = require('postcss/lib/parser');
|
||||
|
||||
const { isInlineComment } = require('./nodes/inline-comment');
|
||||
const { interpolation } = require('./nodes/interpolation');
|
||||
const { isMixinToken } = require('./nodes/mixin');
|
||||
const importNode = require('./nodes/import');
|
||||
const variableNode = require('./nodes/variable');
|
||||
|
||||
const importantPattern = /(!\s*important)$/i;
|
||||
|
||||
module.exports = class LessParser extends Parser {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
this.lastNode = null;
|
||||
}
|
||||
|
||||
atrule(token) {
|
||||
if (interpolation.bind(this)(token)) {
|
||||
return;
|
||||
}
|
||||
|
||||
super.atrule(token);
|
||||
importNode(this.lastNode);
|
||||
variableNode(this.lastNode);
|
||||
}
|
||||
|
||||
decl(...args) {
|
||||
super.decl(...args);
|
||||
|
||||
// #123: add `extend` decorator to nodes
|
||||
const extendPattern = /extend\(.+\)/i;
|
||||
|
||||
if (extendPattern.test(this.lastNode.value)) {
|
||||
this.lastNode.extend = true;
|
||||
}
|
||||
}
|
||||
|
||||
each(tokens) {
|
||||
// prepend a space so the `name` will be parsed correctly
|
||||
tokens[0][1] = ` ${tokens[0][1]}`;
|
||||
|
||||
const firstParenIndex = tokens.findIndex((t) => t[0] === '(');
|
||||
const lastParen = tokens.reverse().find((t) => t[0] === ')');
|
||||
const lastParenIndex = tokens.reverse().indexOf(lastParen);
|
||||
const paramTokens = tokens.splice(firstParenIndex, lastParenIndex);
|
||||
const params = paramTokens.map((t) => t[1]).join('');
|
||||
|
||||
for (const token of tokens.reverse()) {
|
||||
this.tokenizer.back(token);
|
||||
}
|
||||
|
||||
this.atrule(this.tokenizer.nextToken());
|
||||
this.lastNode.function = true;
|
||||
this.lastNode.params = params;
|
||||
}
|
||||
|
||||
init(node, line, column) {
|
||||
super.init(node, line, column);
|
||||
this.lastNode = node;
|
||||
}
|
||||
|
||||
inlineComment(token) {
|
||||
const node = new Comment();
|
||||
const text = token[1].slice(2);
|
||||
|
||||
this.init(node, token[2], token[3]);
|
||||
|
||||
node.source.end = { line: token[4], column: token[5] };
|
||||
node.inline = true;
|
||||
node.raws.begin = '//';
|
||||
|
||||
if (/^\s*$/.test(text)) {
|
||||
node.text = '';
|
||||
node.raws.left = text;
|
||||
node.raws.right = '';
|
||||
} else {
|
||||
const match = text.match(/^(\s*)([^]*[^\s])(\s*)$/);
|
||||
[, node.raws.left, node.text, node.raws.right] = match;
|
||||
}
|
||||
}
|
||||
|
||||
mixin(tokens) {
|
||||
const [first] = tokens;
|
||||
const identifier = first[1].slice(0, 1);
|
||||
const bracketsIndex = tokens.findIndex((t) => t[0] === 'brackets');
|
||||
const firstParenIndex = tokens.findIndex((t) => t[0] === '(');
|
||||
let important = '';
|
||||
|
||||
// fix for #86. if rulesets are mixin params, they need to be converted to a brackets token
|
||||
if ((bracketsIndex < 0 || bracketsIndex > 3) && firstParenIndex > 0) {
|
||||
const lastParenIndex = tokens.reduce((last, t, i) => (t[0] === ')' ? i : last));
|
||||
|
||||
const contents = tokens.slice(firstParenIndex, lastParenIndex + firstParenIndex);
|
||||
const brackets = contents.map((t) => t[1]).join('');
|
||||
const [paren] = tokens.slice(firstParenIndex);
|
||||
const start = [paren[2], paren[3]];
|
||||
const [last] = tokens.slice(lastParenIndex, lastParenIndex + 1);
|
||||
const end = [last[2], last[3]];
|
||||
const newToken = ['brackets', brackets].concat(start, end);
|
||||
|
||||
const tokensBefore = tokens.slice(0, firstParenIndex);
|
||||
const tokensAfter = tokens.slice(lastParenIndex + 1);
|
||||
tokens = tokensBefore;
|
||||
tokens.push(newToken);
|
||||
tokens = tokens.concat(tokensAfter);
|
||||
}
|
||||
|
||||
const importantTokens = [];
|
||||
|
||||
for (const token of tokens) {
|
||||
if (token[1] === '!' || importantTokens.length) {
|
||||
importantTokens.push(token);
|
||||
}
|
||||
|
||||
if (token[1] === 'important') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (importantTokens.length) {
|
||||
const [bangToken] = importantTokens;
|
||||
const bangIndex = tokens.indexOf(bangToken);
|
||||
const last = importantTokens[importantTokens.length - 1];
|
||||
const start = [bangToken[2], bangToken[3]];
|
||||
const end = [last[4], last[5]];
|
||||
const combined = importantTokens.map((t) => t[1]).join('');
|
||||
const newToken = ['word', combined].concat(start, end);
|
||||
tokens.splice(bangIndex, importantTokens.length, newToken);
|
||||
}
|
||||
|
||||
const importantIndex = tokens.findIndex((t) => importantPattern.test(t[1]));
|
||||
|
||||
if (importantIndex > 0) {
|
||||
[, important] = tokens[importantIndex];
|
||||
tokens.splice(importantIndex, 1);
|
||||
}
|
||||
|
||||
for (const token of tokens.reverse()) {
|
||||
this.tokenizer.back(token);
|
||||
}
|
||||
|
||||
this.atrule(this.tokenizer.nextToken());
|
||||
this.lastNode.mixin = true;
|
||||
this.lastNode.raws.identifier = identifier;
|
||||
|
||||
if (important) {
|
||||
this.lastNode.important = true;
|
||||
this.lastNode.raws.important = important;
|
||||
}
|
||||
}
|
||||
|
||||
other(token) {
|
||||
if (!isInlineComment.bind(this)(token)) {
|
||||
super.other(token);
|
||||
}
|
||||
}
|
||||
|
||||
rule(tokens) {
|
||||
const last = tokens[tokens.length - 1];
|
||||
const prev = tokens[tokens.length - 2];
|
||||
|
||||
if (prev[0] === 'at-word' && last[0] === '{') {
|
||||
this.tokenizer.back(last);
|
||||
if (interpolation.bind(this)(prev)) {
|
||||
const newToken = this.tokenizer.nextToken();
|
||||
|
||||
tokens = tokens.slice(0, tokens.length - 2).concat([newToken]);
|
||||
|
||||
for (const tokn of tokens.reverse()) {
|
||||
this.tokenizer.back(tokn);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
super.rule(tokens);
|
||||
|
||||
// #123: add `extend` decorator to nodes
|
||||
const extendPattern = /:extend\(.+\)/i;
|
||||
|
||||
if (extendPattern.test(this.lastNode.selector)) {
|
||||
this.lastNode.extend = true;
|
||||
}
|
||||
}
|
||||
|
||||
unknownWord(tokens) {
|
||||
// NOTE: keep commented for examining unknown structures
|
||||
// console.log('unknown', tokens);
|
||||
|
||||
const [first] = tokens;
|
||||
|
||||
// #121 support `each` - http://lesscss.org/functions/#list-functions-each
|
||||
if (tokens[0][1] === 'each' && tokens[1][0] === '(') {
|
||||
this.each(tokens);
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: move this into a util function/file
|
||||
if (isMixinToken(first)) {
|
||||
this.mixin(tokens);
|
||||
return;
|
||||
}
|
||||
|
||||
super.unknownWord(tokens);
|
||||
}
|
||||
};
|
42
node_modules/postcss-less/lib/LessStringifier.js
generated
vendored
Normal file
42
node_modules/postcss-less/lib/LessStringifier.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
const Stringifier = require('postcss/lib/stringifier');
|
||||
|
||||
module.exports = class LessStringifier extends Stringifier {
|
||||
atrule(node, semicolon) {
|
||||
if (!node.mixin && !node.variable && !node.function) {
|
||||
super.atrule(node, semicolon);
|
||||
return;
|
||||
}
|
||||
|
||||
const identifier = node.function ? '' : node.raws.identifier || '@';
|
||||
let name = `${identifier}${node.name}`;
|
||||
let params = node.params ? this.rawValue(node, 'params') : '';
|
||||
const important = node.raws.important || '';
|
||||
|
||||
if (node.variable) {
|
||||
params = node.value;
|
||||
}
|
||||
|
||||
if (typeof node.raws.afterName !== 'undefined') {
|
||||
name += node.raws.afterName;
|
||||
} else if (params) {
|
||||
name += ' ';
|
||||
}
|
||||
|
||||
if (node.nodes) {
|
||||
this.block(node, name + params + important);
|
||||
} else {
|
||||
const end = (node.raws.between || '') + important + (semicolon ? ';' : '');
|
||||
this.builder(name + params + end, node);
|
||||
}
|
||||
}
|
||||
|
||||
comment(node) {
|
||||
if (node.inline) {
|
||||
const left = this.raw(node, 'left', 'commentLeft');
|
||||
const right = this.raw(node, 'right', 'commentRight');
|
||||
this.builder(`//${left}${node.text}${right}`, node);
|
||||
} else {
|
||||
super.comment(node);
|
||||
}
|
||||
}
|
||||
};
|
30
node_modules/postcss-less/lib/index.js
generated
vendored
Normal file
30
node_modules/postcss-less/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
const Input = require('postcss/lib/input');
|
||||
|
||||
const LessParser = require('./LessParser');
|
||||
const LessStringifier = require('./LessStringifier');
|
||||
|
||||
module.exports = {
|
||||
parse(less, options) {
|
||||
const input = new Input(less, options);
|
||||
const parser = new LessParser(input);
|
||||
|
||||
parser.parse();
|
||||
|
||||
return parser.root;
|
||||
},
|
||||
|
||||
stringify(node, builder) {
|
||||
const stringifier = new LessStringifier(builder);
|
||||
stringifier.stringify(node);
|
||||
},
|
||||
|
||||
nodeToString(node) {
|
||||
let result = '';
|
||||
|
||||
module.exports.stringify(node, (bit) => {
|
||||
result += bit;
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
29
node_modules/postcss-less/lib/nodes/import.js
generated
vendored
Normal file
29
node_modules/postcss-less/lib/nodes/import.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/* eslint no-param-reassign: off */
|
||||
|
||||
const tokenize = require('postcss/lib/tokenize');
|
||||
|
||||
const urlPattern = /^url\((.+)\)/;
|
||||
|
||||
module.exports = (node) => {
|
||||
const { name, params = '' } = node;
|
||||
|
||||
if (name === 'import' && params.length) {
|
||||
node.import = true;
|
||||
|
||||
const tokenizer = tokenize({ css: params });
|
||||
|
||||
node.filename = params.replace(urlPattern, '$1');
|
||||
|
||||
while (!tokenizer.endOfFile()) {
|
||||
const [type, content] = tokenizer.nextToken();
|
||||
|
||||
if (type === 'word' && content === 'url') {
|
||||
return;
|
||||
} else if (type === 'brackets') {
|
||||
node.options = content;
|
||||
node.filename = params.replace(content, '').trim();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
58
node_modules/postcss-less/lib/nodes/inline-comment.js
generated
vendored
Normal file
58
node_modules/postcss-less/lib/nodes/inline-comment.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
const tokenizer = require('postcss/lib/tokenize');
|
||||
const Input = require('postcss/lib/input');
|
||||
|
||||
module.exports = {
|
||||
isInlineComment(token) {
|
||||
if (token[0] === 'word' && token[1].slice(0, 2) === '//') {
|
||||
const first = token;
|
||||
const bits = [];
|
||||
let last;
|
||||
|
||||
while (token) {
|
||||
if (/\r?\n/.test(token[1])) {
|
||||
// If there are quotes, fix tokenizer creating one token from start quote to end quote
|
||||
if (/['"].*\r?\n/.test(token[1])) {
|
||||
// Add string before newline to inline comment token
|
||||
bits.push(token[1].substring(0, token[1].indexOf('\n')));
|
||||
|
||||
// Get remaining input and retokenize
|
||||
let remainingInput = token[1].substring(token[1].indexOf('\n'));
|
||||
remainingInput += this.input.css.valueOf().substring(this.tokenizer.position());
|
||||
|
||||
// Replace tokenizer to retokenize the rest of the string
|
||||
this.input = new Input(remainingInput);
|
||||
this.tokenizer = tokenizer(this.input);
|
||||
} else {
|
||||
// If the tokenizer went to the next line go back
|
||||
this.tokenizer.back(token);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
bits.push(token[1]);
|
||||
last = token;
|
||||
token = this.tokenizer.nextToken({ ignoreUnclosed: true });
|
||||
}
|
||||
|
||||
const newToken = ['comment', bits.join(''), first[2], first[3], last[2], last[3]];
|
||||
|
||||
this.inlineComment(newToken);
|
||||
return true;
|
||||
} else if (token[1] === '/') {
|
||||
// issue #135
|
||||
const next = this.tokenizer.nextToken({ ignoreUnclosed: true });
|
||||
|
||||
if (next[0] === 'comment' && /^\/\*/.test(next[1])) {
|
||||
next[0] = 'word';
|
||||
next[1] = next[1].slice(1);
|
||||
token[1] = '//';
|
||||
this.tokenizer.back(next);
|
||||
return module.exports.isInlineComment.bind(this)(token);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
34
node_modules/postcss-less/lib/nodes/interpolation.js
generated
vendored
Normal file
34
node_modules/postcss-less/lib/nodes/interpolation.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/* eslint no-param-reassign: off */
|
||||
|
||||
module.exports = {
|
||||
interpolation(token) {
|
||||
let first = token;
|
||||
const tokens = [token];
|
||||
const validTypes = ['word', '{', '}'];
|
||||
|
||||
token = this.tokenizer.nextToken();
|
||||
|
||||
// look for @{ but not @[word]{
|
||||
if (first[1].length > 1 || token[0] !== '{') {
|
||||
this.tokenizer.back(token);
|
||||
return false;
|
||||
}
|
||||
|
||||
while (token && validTypes.includes(token[0])) {
|
||||
tokens.push(token);
|
||||
token = this.tokenizer.nextToken();
|
||||
}
|
||||
|
||||
const words = tokens.map((tokn) => tokn[1]);
|
||||
[first] = tokens;
|
||||
const last = tokens.pop();
|
||||
const start = [first[2], first[3]];
|
||||
const end = [last[4] || last[2], last[5] || last[3]];
|
||||
const newToken = ['word', words.join('')].concat(start, end);
|
||||
|
||||
this.tokenizer.back(token);
|
||||
this.tokenizer.back(newToken);
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
17
node_modules/postcss-less/lib/nodes/mixin.js
generated
vendored
Normal file
17
node_modules/postcss-less/lib/nodes/mixin.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
const hashColorPattern = /^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/;
|
||||
const unpaddedFractionalNumbersPattern = /\.[0-9]/;
|
||||
|
||||
const isMixinToken = (token) => {
|
||||
const [, symbol] = token;
|
||||
const [char] = symbol;
|
||||
|
||||
return (
|
||||
(char === '.' || char === '#') &&
|
||||
// ignore hashes used for colors
|
||||
hashColorPattern.test(symbol) === false &&
|
||||
// ignore dots used for unpadded fractional numbers
|
||||
unpaddedFractionalNumbersPattern.test(symbol) === false
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = { isMixinToken };
|
34
node_modules/postcss-less/lib/nodes/variable.js
generated
vendored
Normal file
34
node_modules/postcss-less/lib/nodes/variable.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/* eslint no-param-reassign: off */
|
||||
|
||||
const afterPattern = /:$/;
|
||||
const beforePattern = /^:(\s+)?/;
|
||||
// const bracketsPattern = /\{/;
|
||||
|
||||
module.exports = (node) => {
|
||||
const { name, params = '' } = node;
|
||||
|
||||
// situations like @page :last { color: red } should default to the built-in AtRule
|
||||
// LESS variables are @name : value; < note that for them to be valid LESS vars, they must end in
|
||||
// a semicolon.
|
||||
|
||||
if (node.name.slice(-1) !== ':') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (afterPattern.test(name)) {
|
||||
const [match] = name.match(afterPattern);
|
||||
|
||||
node.name = name.replace(match, '');
|
||||
node.raws.afterName = match + (node.raws.afterName || '');
|
||||
node.variable = true;
|
||||
node.value = node.params;
|
||||
}
|
||||
|
||||
if (beforePattern.test(params)) {
|
||||
const [match] = params.match(beforePattern);
|
||||
|
||||
node.value = params.replace(match, '');
|
||||
node.raws.afterName = (node.raws.afterName || '') + match;
|
||||
node.variable = true;
|
||||
}
|
||||
};
|
15
node_modules/postcss-less/node_modules/picocolors/LICENSE
generated
vendored
Normal file
15
node_modules/postcss-less/node_modules/picocolors/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
ISC License
|
||||
|
||||
Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
23
node_modules/postcss-less/node_modules/picocolors/README.md
generated
vendored
Normal file
23
node_modules/postcss-less/node_modules/picocolors/README.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# picocolors
|
||||
|
||||
npm install picocolors
|
||||
|
||||
A tinier and faster alternative to [nanocolors](https://github.com/ai/nanocolors). Andrey, are you even trying?
|
||||
|
||||
```javascript
|
||||
import pc from "picocolors";
|
||||
|
||||
console.log(pc.green(`How are ${pc.italic(`you`)} doing?`));
|
||||
```
|
||||
|
||||
- Up to [2x faster and 2x smaller](#benchmarks) than alternatives
|
||||
- 3x faster and 10x smaller than `chalk`
|
||||
- [TypeScript](https://www.typescriptlang.org/) support
|
||||
- [`NO_COLOR`](https://no-color.org/) friendly
|
||||
- Node.js v6+ & browsers support
|
||||
- The same API, but faster, much faster
|
||||
- No `String.prototype` modifications (anyone still doing it?)
|
||||
- No dependencies and the smallest `node_modules` footprint
|
||||
|
||||
## Docs
|
||||
Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.
|
25
node_modules/postcss-less/node_modules/picocolors/package.json
generated
vendored
Normal file
25
node_modules/postcss-less/node_modules/picocolors/package.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "picocolors",
|
||||
"version": "0.2.1",
|
||||
"main": "./picocolors.js",
|
||||
"types": "./picocolors.d.ts",
|
||||
"browser": {
|
||||
"./picocolors.js": "./picocolors.browser.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"description": "The tiniest and the fastest coloring library ever",
|
||||
"files": [
|
||||
"picocolors.*",
|
||||
"types.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"terminal",
|
||||
"colors",
|
||||
"formatting",
|
||||
"cli",
|
||||
"console"
|
||||
],
|
||||
"author": "Alexey Raspopov",
|
||||
"repository": "alexeyraspopov/picocolors",
|
||||
"license": "ISC"
|
||||
}
|
4
node_modules/postcss-less/node_modules/picocolors/picocolors.browser.js
generated
vendored
Normal file
4
node_modules/postcss-less/node_modules/picocolors/picocolors.browser.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var x=String;
|
||||
var create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x}};
|
||||
module.exports=create();
|
||||
module.exports.createColors = create;
|
5
node_modules/postcss-less/node_modules/picocolors/picocolors.d.ts
generated
vendored
Normal file
5
node_modules/postcss-less/node_modules/picocolors/picocolors.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Colors } from "./types"
|
||||
|
||||
declare const picocolors: Colors & { createColors: (enabled: boolean) => Colors }
|
||||
|
||||
export = picocolors
|
60
node_modules/postcss-less/node_modules/picocolors/picocolors.js
generated
vendored
Normal file
60
node_modules/postcss-less/node_modules/picocolors/picocolors.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
let tty = require("tty")
|
||||
|
||||
let isColorSupported =
|
||||
!("NO_COLOR" in process.env || process.argv.includes("--no-color")) &&
|
||||
("FORCE_COLOR" in process.env ||
|
||||
process.argv.includes("--color") ||
|
||||
process.platform === "win32" ||
|
||||
(tty.isatty(1) && process.env.TERM !== "dumb") ||
|
||||
"CI" in process.env)
|
||||
|
||||
function formatter(open, close, replace = open) {
|
||||
return (input) => {
|
||||
let string = "" + input
|
||||
let index = string.indexOf(close, open.length)
|
||||
return !~index
|
||||
? open + string + close
|
||||
: open + replaceClose(string, close, replace, index) + close
|
||||
}
|
||||
}
|
||||
|
||||
function replaceClose(string, close, replace, index) {
|
||||
let start = string.substring(0, index) + replace
|
||||
let end = string.substring(index + close.length)
|
||||
let nextIndex = end.indexOf(close)
|
||||
return !~nextIndex ? start + end : start + replaceClose(end, close, replace, nextIndex)
|
||||
}
|
||||
|
||||
function createColors(enabled = isColorSupported) {
|
||||
return {
|
||||
isColorSupported: enabled,
|
||||
reset: enabled ? (s) => `\x1b[0m${s}\x1b[0m` : String,
|
||||
bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String,
|
||||
dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String,
|
||||
italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String,
|
||||
underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String,
|
||||
inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String,
|
||||
hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String,
|
||||
strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String,
|
||||
black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String,
|
||||
red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String,
|
||||
green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String,
|
||||
yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String,
|
||||
blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String,
|
||||
magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String,
|
||||
cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String,
|
||||
white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String,
|
||||
gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String,
|
||||
bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String,
|
||||
bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String,
|
||||
bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String,
|
||||
bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String,
|
||||
bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String,
|
||||
bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
|
||||
bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
|
||||
bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String,
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = createColors()
|
||||
module.exports.createColors = createColors
|
30
node_modules/postcss-less/node_modules/picocolors/types.ts
generated
vendored
Normal file
30
node_modules/postcss-less/node_modules/picocolors/types.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
export type Formatter = (input: string | number | null | undefined) => string
|
||||
|
||||
export interface Colors {
|
||||
isColorSupported: boolean
|
||||
reset: Formatter
|
||||
bold: Formatter
|
||||
dim: Formatter
|
||||
italic: Formatter
|
||||
underline: Formatter
|
||||
inverse: Formatter
|
||||
hidden: Formatter
|
||||
strikethrough: Formatter
|
||||
black: Formatter
|
||||
red: Formatter
|
||||
green: Formatter
|
||||
yellow: Formatter
|
||||
blue: Formatter
|
||||
magenta: Formatter
|
||||
cyan: Formatter
|
||||
white: Formatter
|
||||
gray: Formatter
|
||||
bgBlack: Formatter
|
||||
bgRed: Formatter
|
||||
bgGreen: Formatter
|
||||
bgYellow: Formatter
|
||||
bgBlue: Formatter
|
||||
bgMagenta: Formatter
|
||||
bgCyan: Formatter
|
||||
bgWhite: Formatter
|
||||
}
|
20
node_modules/postcss-less/node_modules/postcss/LICENSE
generated
vendored
Normal file
20
node_modules/postcss-less/node_modules/postcss/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
43
node_modules/postcss-less/node_modules/postcss/README.md
generated
vendored
Normal file
43
node_modules/postcss-less/node_modules/postcss/README.md
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# PostCSS [![Gitter][chat-img]][chat]
|
||||
|
||||
<img align="right" width="95" height="95"
|
||||
alt="Philosopher’s stone, logo of PostCSS"
|
||||
src="http://postcss.github.io/postcss/logo.svg">
|
||||
|
||||
[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg
|
||||
[chat]: https://gitter.im/postcss/postcss
|
||||
|
||||
PostCSS is a tool for transforming styles with JS plugins.
|
||||
These plugins can lint your CSS, support variables and mixins,
|
||||
transpile future CSS syntax, inline images, and more.
|
||||
|
||||
PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba,
|
||||
and JetBrains. The [Autoprefixer] PostCSS plugin is one of the most popular
|
||||
CSS processors.
|
||||
|
||||
PostCSS takes a CSS file and provides an API to analyze and modify its rules
|
||||
(by transforming them into an [Abstract Syntax Tree]).
|
||||
This API can then be used by [plugins] to do a lot of useful things,
|
||||
e.g. to find errors automatically insert vendor prefixes.
|
||||
|
||||
**Support / Discussion:** [Gitter](https://gitter.im/postcss/postcss)<br>
|
||||
**Twitter account:** [@postcss](https://twitter.com/postcss)<br>
|
||||
**VK.com page:** [postcss](https://vk.com/postcss)<br>
|
||||
**中文翻译**: [`README-cn.md`](./README-cn.md)
|
||||
|
||||
For PostCSS commercial support (consulting, improving the front-end culture
|
||||
of your company, PostCSS plugins), contact [Evil Martians]
|
||||
at <surrender@evilmartians.com>.
|
||||
|
||||
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
|
||||
[Evil Martians]: https://evilmartians.com/?utm_source=postcss
|
||||
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
||||
[plugins]: https://github.com/postcss/postcss#plugins
|
||||
|
||||
<a href="https://evilmartians.com/?utm_source=postcss">
|
||||
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
||||
alt="Sponsored by Evil Martians" width="236" height="54">
|
||||
</a>
|
||||
|
||||
## Docs
|
||||
Read **[full docs](https://github.com/postcss/postcss#readme)** on GitHub.
|
127
node_modules/postcss-less/node_modules/postcss/lib/at-rule.js
generated
vendored
Normal file
127
node_modules/postcss-less/node_modules/postcss/lib/at-rule.js
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _container = _interopRequireDefault(require("./container"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents an at-rule.
|
||||
*
|
||||
* If it’s followed in the CSS by a {} block, this node will have
|
||||
* a nodes property representing its children.
|
||||
*
|
||||
* @extends Container
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@charset "UTF-8"; @media print {}')
|
||||
*
|
||||
* const charset = root.first
|
||||
* charset.type //=> 'atrule'
|
||||
* charset.nodes //=> undefined
|
||||
*
|
||||
* const media = root.last
|
||||
* media.nodes //=> []
|
||||
*/
|
||||
var AtRule = /*#__PURE__*/function (_Container) {
|
||||
_inheritsLoose(AtRule, _Container);
|
||||
|
||||
function AtRule(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Container.call(this, defaults) || this;
|
||||
_this.type = 'atrule';
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = AtRule.prototype;
|
||||
|
||||
_proto.append = function append() {
|
||||
var _Container$prototype$;
|
||||
|
||||
if (!this.nodes) this.nodes = [];
|
||||
|
||||
for (var _len = arguments.length, children = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
children[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children));
|
||||
};
|
||||
|
||||
_proto.prepend = function prepend() {
|
||||
var _Container$prototype$2;
|
||||
|
||||
if (!this.nodes) this.nodes = [];
|
||||
|
||||
for (var _len2 = arguments.length, children = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
children[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children));
|
||||
}
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {string} name The at-rule’s name immediately follows the `@`.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@media print {}')
|
||||
* media.name //=> 'media'
|
||||
* const media = root.first
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {string} params The at-rule’s parameters, the values
|
||||
* that follow the at-rule’s name but precede
|
||||
* any {} block.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@media print, screen {}')
|
||||
* const media = root.first
|
||||
* media.params //=> 'print, screen'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node. It also stores `*`
|
||||
* and `_` symbols before the declaration (IE hack).
|
||||
* * `after`: the space symbols after the last child of the node
|
||||
* to the end of the node.
|
||||
* * `between`: the symbols between the property and value
|
||||
* for declarations, selector and `{` for rules, or last parameter
|
||||
* and `{` for at-rules.
|
||||
* * `semicolon`: contains true if the last child has
|
||||
* an (optional) semicolon.
|
||||
* * `afterName`: the space between the at-rule name and its parameters.
|
||||
*
|
||||
* PostCSS cleans at-rule parameters from comments and extra spaces,
|
||||
* but it stores origin content in raws properties.
|
||||
* As such, if you don’t change a declaration’s value,
|
||||
* PostCSS will use the raw value with comments.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse(' @media\nprint {\n}')
|
||||
* root.first.first.raws //=> { before: ' ',
|
||||
* // between: ' ',
|
||||
* // afterName: '\n',
|
||||
* // after: '\n' }
|
||||
*/
|
||||
;
|
||||
|
||||
return AtRule;
|
||||
}(_container.default);
|
||||
|
||||
var _default = AtRule;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImF0LXJ1bGUuZXM2Il0sIm5hbWVzIjpbIkF0UnVsZSIsImRlZmF1bHRzIiwidHlwZSIsImFwcGVuZCIsIm5vZGVzIiwiY2hpbGRyZW4iLCJwcmVwZW5kIiwiQ29udGFpbmVyIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBa0JNQSxNOzs7QUFDSixrQkFBYUMsUUFBYixFQUF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AgICAgICAgICAgICAgICAgICAgICAvLyAgICAgYWZ0ZXI6ICdcXG4nIH1cbiAgICovXG59XG5cbmV4cG9ydCBkZWZhdWx0IEF0UnVsZVxuIl0sImZpbGUiOiJhdC1ydWxlLmpzIn0=
|
55
node_modules/postcss-less/node_modules/postcss/lib/comment.js
generated
vendored
Normal file
55
node_modules/postcss-less/node_modules/postcss/lib/comment.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _node = _interopRequireDefault(require("./node"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents a comment between declarations or statements (rule and at-rules).
|
||||
*
|
||||
* Comments inside selectors, at-rule parameters, or declaration values
|
||||
* will be stored in the `raws` properties explained above.
|
||||
*
|
||||
* @extends Node
|
||||
*/
|
||||
var Comment = /*#__PURE__*/function (_Node) {
|
||||
_inheritsLoose(Comment, _Node);
|
||||
|
||||
function Comment(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Node.call(this, defaults) || this;
|
||||
_this.type = 'comment';
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @memberof Comment#
|
||||
* @member {string} text The comment’s text.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Comment#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node.
|
||||
* * `left`: the space symbols between `/*` and the comment’s text.
|
||||
* * `right`: the space symbols between the comment’s text.
|
||||
*/
|
||||
|
||||
|
||||
return Comment;
|
||||
}(_node.default);
|
||||
|
||||
var _default = Comment;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbW1lbnQuZXM2Il0sIm5hbWVzIjpbIkNvbW1lbnQiLCJkZWZhdWx0cyIsInR5cGUiLCJOb2RlIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7SUFRTUEsTzs7O0FBQ0osbUJBQWFDLFFBQWIsRUFBdUI7QUFBQTs7QUFDckIsNkJBQU1BLFFBQU47QUFDQSxVQUFLQyxJQUFMLEdBQVksU0FBWjtBQUZxQjtBQUd0QjtBQUVEOzs7OztBQUtBOzs7Ozs7Ozs7Ozs7Ozs7RUFYb0JDLGE7O2VBeUJQSCxPIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE5vZGUgZnJvbSAnLi9ub2RlJ1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBjb21tZW50IGJldHdlZW4gZGVjbGFyYXRpb25zIG9yIHN0YXRlbWVudHMgKHJ1bGUgYW5kIGF0LXJ1bGVzKS5cbiAqXG4gKiBDb21tZW50cyBpbnNpZGUgc2VsZWN0b3JzLCBhdC1ydWxlIHBhcmFtZXRlcnMsIG9yIGRlY2xhcmF0aW9uIHZhbHVlc1xuICogd2lsbCBiZSBzdG9yZWQgaW4gdGhlIGByYXdzYCBwcm9wZXJ0aWVzIGV4cGxhaW5lZCBhYm92ZS5cbiAqXG4gKiBAZXh0ZW5kcyBOb2RlXG4gKi9cbmNsYXNzIENvbW1lbnQgZXh0ZW5kcyBOb2RlIHtcbiAgY29uc3RydWN0b3IgKGRlZmF1bHRzKSB7XG4gICAgc3VwZXIoZGVmYXVsdHMpXG4gICAgdGhpcy50eXBlID0gJ2NvbW1lbnQnXG4gIH1cblxuICAvKipcbiAgICogQG1lbWJlcm9mIENvbW1lbnQjXG4gICAqIEBtZW1iZXIge3N0cmluZ30gdGV4dCBUaGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICovXG5cbiAgLyoqXG4gICAqIEBtZW1iZXJvZiBDb21tZW50I1xuICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgSW5mb3JtYXRpb24gdG8gZ2VuZXJhdGUgYnl0ZS10by1ieXRlIGVxdWFsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICBub2RlIHN0cmluZyBhcyBpdCB3YXMgaW4gdGhlIG9yaWdpbiBpbnB1dC5cbiAgICpcbiAgICogRXZlcnkgcGFyc2VyIHNhdmVzIGl0cyBvd24gcHJvcGVydGllcyxcbiAgICogYnV0IHRoZSBkZWZhdWx0IENTUyBwYXJzZXIgdXNlczpcbiAgICpcbiAgICogKiBgYmVmb3JlYDogdGhlIHNwYWNlIHN5bWJvbHMgYmVmb3JlIHRoZSBub2RlLlxuICAgKiAqIGBsZWZ0YDogdGhlIHNwYWNlIHN5bWJvbHMgYmV0d2VlbiBgLypgIGFuZCB0aGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICogKiBgcmlnaHRgOiB0aGUgc3BhY2Ugc3ltYm9scyBiZXR3ZWVuIHRoZSBjb21tZW504oCZcyB0ZXh0LlxuICAgKi9cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29tbWVudFxuIl0sImZpbGUiOiJjb21tZW50LmpzIn0=
|
774
node_modules/postcss-less/node_modules/postcss/lib/container.js
generated
vendored
Normal file
774
node_modules/postcss-less/node_modules/postcss/lib/container.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
296
node_modules/postcss-less/node_modules/postcss/lib/css-syntax-error.js
generated
vendored
Normal file
296
node_modules/postcss-less/node_modules/postcss/lib/css-syntax-error.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
96
node_modules/postcss-less/node_modules/postcss/lib/declaration.js
generated
vendored
Normal file
96
node_modules/postcss-less/node_modules/postcss/lib/declaration.js
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _node = _interopRequireDefault(require("./node"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents a CSS declaration.
|
||||
*
|
||||
* @extends Node
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.type //=> 'decl'
|
||||
* decl.toString() //=> ' color: black'
|
||||
*/
|
||||
var Declaration = /*#__PURE__*/function (_Node) {
|
||||
_inheritsLoose(Declaration, _Node);
|
||||
|
||||
function Declaration(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Node.call(this, defaults) || this;
|
||||
_this.type = 'decl';
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {string} prop The declaration’s property name.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.prop //=> 'color'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {string} value The declaration’s value.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.value //=> 'black'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {boolean} important `true` if the declaration
|
||||
* has an !important annotation.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black !important; color: red }')
|
||||
* root.first.first.important //=> true
|
||||
* root.first.last.important //=> undefined
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node. It also stores `*`
|
||||
* and `_` symbols before the declaration (IE hack).
|
||||
* * `between`: the symbols between the property and value
|
||||
* for declarations.
|
||||
* * `important`: the content of the important statement,
|
||||
* if it is not just `!important`.
|
||||
*
|
||||
* PostCSS cleans declaration from comments and extra spaces,
|
||||
* but it stores origin content in raws properties.
|
||||
* As such, if you don’t change a declaration’s value,
|
||||
* PostCSS will use the raw value with comments.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a {\n color:black\n}')
|
||||
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
||||
*/
|
||||
|
||||
|
||||
return Declaration;
|
||||
}(_node.default);
|
||||
|
||||
var _default = Declaration;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlY2xhcmF0aW9uLmVzNiJdLCJuYW1lcyI6WyJEZWNsYXJhdGlvbiIsImRlZmF1bHRzIiwidHlwZSIsIk5vZGUiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7Ozs7OztBQUVBOzs7Ozs7Ozs7OztJQVdNQSxXOzs7QUFDSix1QkFBYUMsUUFBYixFQUF1QjtBQUFBOztBQUNyQiw2QkFBTUEsUUFBTjtBQUNBLFVBQUtDLElBQUwsR0FBWSxNQUFaO0FBRnFCO0FBR3RCO0FBRUQ7Ozs7Ozs7Ozs7QUFVQTs7Ozs7Ozs7OztBQVVBOzs7Ozs7Ozs7OztBQVdBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFyQ3dCQyxhOztlQStEWEgsVyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBOb2RlIGZyb20gJy4vbm9kZSdcblxuLyoqXG4gKiBSZXByZXNlbnRzIGEgQ1NTIGRlY2xhcmF0aW9uLlxuICpcbiAqIEBleHRlbmRzIE5vZGVcbiAqXG4gKiBA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gICAqICogYGltcG9ydGFudGA6IHRoZSBjb250ZW50IG9mIHRoZSBpbXBvcnRhbnQgc3RhdGVtZW50LFxuICAgKiAgIGlmIGl0IGlzIG5vdCBqdXN0IGAhaW1wb3J0YW50YC5cbiAgICpcbiAgICogUG9zdENTUyBjbGVhbnMgZGVjbGFyYXRpb24gZnJvbSBjb21tZW50cyBhbmQgZXh0cmEgc3BhY2VzLFxuICAgKiBidXQgaXQgc3RvcmVzIG9yaWdpbiBjb250ZW50IGluIHJhd3MgcHJvcGVydGllcy5cbiAgICogQXMgc3VjaCwgaWYgeW91IGRvbuKAmXQgY2hhbmdlIGEgZGVjbGFyYXRpb27igJlzIHZhbHVlLFxuICAgKiBQb3N0Q1NTIHdpbGwgdXNlIHRoZSByYXcgdmFsdWUgd2l0aCBjb21tZW50cy5cbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2Ege1xcbiAgY29sb3I6YmxhY2tcXG59JylcbiAgICogcm9vdC5maXJzdC5maXJzdC5yYXdzIC8vPT4geyBiZWZvcmU6ICdcXG4gICcsIGJldHdlZW46ICc6JyB9XG4gICAqL1xufVxuXG5leHBvcnQgZGVmYXVsdCBEZWNsYXJhdGlvblxuIl0sImZpbGUiOiJkZWNsYXJhdGlvbi5qcyJ9
|
214
node_modules/postcss-less/node_modules/postcss/lib/input.js
generated
vendored
Normal file
214
node_modules/postcss-less/node_modules/postcss/lib/input.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
437
node_modules/postcss-less/node_modules/postcss/lib/lazy-result.js
generated
vendored
Normal file
437
node_modules/postcss-less/node_modules/postcss/lib/lazy-result.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
93
node_modules/postcss-less/node_modules/postcss/lib/list.js
generated
vendored
Normal file
93
node_modules/postcss-less/node_modules/postcss/lib/list.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
347
node_modules/postcss-less/node_modules/postcss/lib/map-generator.js
generated
vendored
Normal file
347
node_modules/postcss-less/node_modules/postcss/lib/map-generator.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
606
node_modules/postcss-less/node_modules/postcss/lib/node.js
generated
vendored
Normal file
606
node_modules/postcss-less/node_modules/postcss/lib/node.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
40
node_modules/postcss-less/node_modules/postcss/lib/parse.js
generated
vendored
Normal file
40
node_modules/postcss-less/node_modules/postcss/lib/parse.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _parser = _interopRequireDefault(require("./parser"));
|
||||
|
||||
var _input = _interopRequireDefault(require("./input"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function parse(css, opts) {
|
||||
var input = new _input.default(css, opts);
|
||||
var parser = new _parser.default(input);
|
||||
|
||||
try {
|
||||
parser.parse();
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (e.name === 'CssSyntaxError' && opts && opts.from) {
|
||||
if (/\.scss$/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser';
|
||||
} else if (/\.sass/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser';
|
||||
} else if (/\.less$/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw e;
|
||||
}
|
||||
|
||||
return parser.root;
|
||||
}
|
||||
|
||||
var _default = parse;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIn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AgICAgICAgZS5tZXNzYWdlICs9ICdcXG5Zb3UgdHJpZWQgdG8gcGFyc2UgU2FzcyB3aXRoICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndGhlIHN0YW5kYXJkIENTUyBwYXJzZXI7ICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndHJ5IGFnYWluIHdpdGggdGhlIHBvc3Rjc3Mtc2FzcyBwYXJzZXInXG4gICAgICAgIH0gZWxzZSBpZiAoL1xcLmxlc3MkL2kudGVzdChvcHRzLmZyb20pKSB7XG4gICAgICAgICAgZS5tZXNzYWdlICs9ICdcXG5Zb3UgdHJpZWQgdG8gcGFyc2UgTGVzcyB3aXRoICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndGhlIHN0YW5kYXJkIENTUyBwYXJzZXI7ICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndHJ5IGFnYWluIHdpdGggdGhlIHBvc3Rjc3MtbGVzcyBwYXJzZXInXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgdGhyb3cgZVxuICB9XG5cbiAgcmV0dXJuIHBhcnNlci5yb290XG59XG5cbmV4cG9ydCBkZWZhdWx0IHBhcnNlXG4iXSwiZmlsZSI6InBhcnNlLmpzIn0=
|
609
node_modules/postcss-less/node_modules/postcss/lib/parser.js
generated
vendored
Normal file
609
node_modules/postcss-less/node_modules/postcss/lib/parser.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1283
node_modules/postcss-less/node_modules/postcss/lib/postcss.d.ts
generated
vendored
Normal file
1283
node_modules/postcss-less/node_modules/postcss/lib/postcss.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
285
node_modules/postcss-less/node_modules/postcss/lib/postcss.js
generated
vendored
Normal file
285
node_modules/postcss-less/node_modules/postcss/lib/postcss.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
172
node_modules/postcss-less/node_modules/postcss/lib/previous-map.js
generated
vendored
Normal file
172
node_modules/postcss-less/node_modules/postcss/lib/previous-map.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
264
node_modules/postcss-less/node_modules/postcss/lib/processor.js
generated
vendored
Normal file
264
node_modules/postcss-less/node_modules/postcss/lib/processor.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
213
node_modules/postcss-less/node_modules/postcss/lib/result.js
generated
vendored
Normal file
213
node_modules/postcss-less/node_modules/postcss/lib/result.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
122
node_modules/postcss-less/node_modules/postcss/lib/root.js
generated
vendored
Normal file
122
node_modules/postcss-less/node_modules/postcss/lib/root.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
116
node_modules/postcss-less/node_modules/postcss/lib/rule.js
generated
vendored
Normal file
116
node_modules/postcss-less/node_modules/postcss/lib/rule.js
generated
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _container = _interopRequireDefault(require("./container"));
|
||||
|
||||
var _list = _interopRequireDefault(require("./list"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
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; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents a CSS rule: a selector followed by a declaration block.
|
||||
*
|
||||
* @extends Container
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a{}')
|
||||
* const rule = root.first
|
||||
* rule.type //=> 'rule'
|
||||
* rule.toString() //=> 'a{}'
|
||||
*/
|
||||
var Rule = /*#__PURE__*/function (_Container) {
|
||||
_inheritsLoose(Rule, _Container);
|
||||
|
||||
function Rule(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Container.call(this, defaults) || this;
|
||||
_this.type = 'rule';
|
||||
if (!_this.nodes) _this.nodes = [];
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* An array containing the rule’s individual selectors.
|
||||
* Groups of selectors are split at commas.
|
||||
*
|
||||
* @type {string[]}
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a, b { }')
|
||||
* const rule = root.first
|
||||
*
|
||||
* rule.selector //=> 'a, b'
|
||||
* rule.selectors //=> ['a', 'b']
|
||||
*
|
||||
* rule.selectors = ['a', 'strong']
|
||||
* rule.selector //=> 'a, strong'
|
||||
*/
|
||||
|
||||
|
||||
_createClass(Rule, [{
|
||||
key: "selectors",
|
||||
get: function get() {
|
||||
return _list.default.comma(this.selector);
|
||||
},
|
||||
set: function set(values) {
|
||||
var match = this.selector ? this.selector.match(/,\s*/) : null;
|
||||
var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
|
||||
this.selector = values.join(sep);
|
||||
}
|
||||
/**
|
||||
* @memberof Rule#
|
||||
* @member {string} selector The rule’s full selector represented
|
||||
* as a string.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a, b { }')
|
||||
* const rule = root.first
|
||||
* rule.selector //=> 'a, b'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Rule#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node. It also stores `*`
|
||||
* and `_` symbols before the declaration (IE hack).
|
||||
* * `after`: the space symbols after the last child of the node
|
||||
* to the end of the node.
|
||||
* * `between`: the symbols between the property and value
|
||||
* for declarations, selector and `{` for rules, or last parameter
|
||||
* and `{` for at-rules.
|
||||
* * `semicolon`: contains `true` if the last child has
|
||||
* an (optional) semicolon.
|
||||
* * `ownSemicolon`: contains `true` if there is semicolon after rule.
|
||||
*
|
||||
* PostCSS cleans selectors from comments and extra spaces,
|
||||
* but it stores origin content in raws properties.
|
||||
* As such, if you don’t change a declaration’s value,
|
||||
* PostCSS will use the raw value with comments.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a {\n color:black\n}')
|
||||
* root.first.first.raws //=> { before: '', between: ' ', after: '\n' }
|
||||
*/
|
||||
|
||||
}]);
|
||||
|
||||
return Rule;
|
||||
}(_container.default);
|
||||
|
||||
var _default = Rule;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGUuZXM2Il0sIm5hbWVzIjpbIlJ1bGUiLCJkZWZhdWx0cyIsInR5cGUiLCJub2RlcyIsImxpc3QiLCJjb21tYSIsInNlbGVjdG9yIiwidmFsdWVzIiwibWF0Y2giLCJzZXAiLCJyYXciLCJqb2luIiwiQ29udGFpbmVyIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOztBQUNBOzs7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7O0lBV01BLEk7OztBQUNKLGdCQUFhQyxRQUFiLEVBQXVCO0FBQUE7O0FBQ3JCLGtDQUFNQSxRQUFOO0FBQ0EsVUFBS0MsSUFBTCxHQUFZLE1BQVo7QUFDQSxRQUFJLENBQUMsTUFBS0MsS0FBVixFQUFpQixNQUFLQSxLQUFMLEdBQWEsRUFBYjtBQUhJO0FBSXRCO0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3dCQWdCaUI7QUFDZixhQUFPQyxjQUFLQyxLQUFMLENBQVcsS0FBS0MsUUFBaEIsQ0FBUDtBQUNELEs7c0JBRWNDLE0sRUFBUTtBQUNyQixV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ogICBhbmQgYHtgIGZvciBhdC1ydWxlcy5cbiAgICogKiBgc2VtaWNvbG9uYDogY29udGFpbnMgYHRydWVgIGlmIHRoZSBsYXN0IGNoaWxkIGhhc1xuICAgKiAgIGFuIChvcHRpb25hbCkgc2VtaWNvbG9uLlxuICAgKiAqIGBvd25TZW1pY29sb25gOiBjb250YWlucyBgdHJ1ZWAgaWYgdGhlcmUgaXMgc2VtaWNvbG9uIGFmdGVyIHJ1bGUuXG4gICAqXG4gICAqIFBvc3RDU1MgY2xlYW5zIHNlbGVjdG9ycyBmcm9tIGNvbW1lbnRzIGFuZCBleHRyYSBzcGFjZXMsXG4gICAqIGJ1dCBpdCBzdG9yZXMgb3JpZ2luIGNvbnRlbnQgaW4gcmF3cyBwcm9wZXJ0aWVzLlxuICAgKiBBcyBzdWNoLCBpZiB5b3UgZG9u4oCZdCBjaGFuZ2UgYSBkZWNsYXJhdGlvbuKAmXMgdmFsdWUsXG4gICAqIFBvc3RDU1Mgd2lsbCB1c2UgdGhlIHJhdyB2YWx1ZSB3aXRoIGNvbW1lbnRzLlxuICAgKlxuICAgKiBAZXhhbXBsZVxuICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYSB7XFxuICBjb2xvcjpibGFja1xcbn0nKVxuICAgKiByb290LmZpcnN0LmZpcnN0LnJhd3MgLy89PiB7IGJlZm9yZTogJycsIGJldHdlZW46ICcgJywgYWZ0ZXI6ICdcXG4nIH1cbiAgICovXG59XG5cbmV4cG9ydCBkZWZhdWx0IFJ1bGVcbiJdLCJmaWxlIjoicnVsZS5qcyJ9
|
362
node_modules/postcss-less/node_modules/postcss/lib/stringifier.js
generated
vendored
Normal file
362
node_modules/postcss-less/node_modules/postcss/lib/stringifier.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
18
node_modules/postcss-less/node_modules/postcss/lib/stringify.js
generated
vendored
Normal file
18
node_modules/postcss-less/node_modules/postcss/lib/stringify.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _stringifier = _interopRequireDefault(require("./stringifier"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function stringify(node, builder) {
|
||||
var str = new _stringifier.default(builder);
|
||||
str.stringify(node);
|
||||
}
|
||||
|
||||
var _default = stringify;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0cmluZ2lmeS5lczYiXSwibmFtZXMiOlsic3RyaW5naWZ5Iiwibm9kZSIsImJ1aWxkZXIiLCJzdHIiLCJTdHJpbmdpZmllciJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTs7OztBQUVBLFNBQVNBLFNBQVQsQ0FBb0JDLElBQXBCLEVBQTBCQyxPQUExQixFQUFtQztBQUNqQyxNQUFJQyxHQUFHLEdBQUcsSUFBSUMsb0JBQUosQ0FBZ0JGLE9BQWhCLENBQVY7QUFDQUMsRUFBQUEsR0FBRyxDQUFDSCxTQUFKLENBQWNDLElBQWQ7QUFDRDs7ZUFFY0QsUyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBTdHJpbmdpZmllciBmcm9tICcuL3N0cmluZ2lmaWVyJ1xuXG5mdW5jdGlvbiBzdHJpbmdpZnkgKG5vZGUsIGJ1aWxkZXIpIHtcbiAgbGV0IHN0ciA9IG5ldyBTdHJpbmdpZmllcihidWlsZGVyKVxuICBzdHIuc3RyaW5naWZ5KG5vZGUpXG59XG5cbmV4cG9ydCBkZWZhdWx0IHN0cmluZ2lmeVxuIl0sImZpbGUiOiJzdHJpbmdpZnkuanMifQ==
|
84
node_modules/postcss-less/node_modules/postcss/lib/terminal-highlight.js
generated
vendored
Normal file
84
node_modules/postcss-less/node_modules/postcss/lib/terminal-highlight.js
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _picocolors = _interopRequireDefault(require("picocolors"));
|
||||
|
||||
var _tokenize = _interopRequireDefault(require("./tokenize"));
|
||||
|
||||
var _input = _interopRequireDefault(require("./input"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var HIGHLIGHT_THEME = {
|
||||
brackets: _picocolors.default.cyan,
|
||||
'at-word': _picocolors.default.cyan,
|
||||
comment: _picocolors.default.gray,
|
||||
string: _picocolors.default.green,
|
||||
class: _picocolors.default.yellow,
|
||||
call: _picocolors.default.cyan,
|
||||
hash: _picocolors.default.magenta,
|
||||
'(': _picocolors.default.cyan,
|
||||
')': _picocolors.default.cyan,
|
||||
'{': _picocolors.default.yellow,
|
||||
'}': _picocolors.default.yellow,
|
||||
'[': _picocolors.default.yellow,
|
||||
']': _picocolors.default.yellow,
|
||||
':': _picocolors.default.yellow,
|
||||
';': _picocolors.default.yellow
|
||||
};
|
||||
|
||||
function getTokenType(_ref, processor) {
|
||||
var type = _ref[0],
|
||||
value = _ref[1];
|
||||
|
||||
if (type === 'word') {
|
||||
if (value[0] === '.') {
|
||||
return 'class';
|
||||
}
|
||||
|
||||
if (value[0] === '#') {
|
||||
return 'hash';
|
||||
}
|
||||
}
|
||||
|
||||
if (!processor.endOfFile()) {
|
||||
var next = processor.nextToken();
|
||||
processor.back(next);
|
||||
if (next[0] === 'brackets' || next[0] === '(') return 'call';
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
function terminalHighlight(css) {
|
||||
var processor = (0, _tokenize.default)(new _input.default(css), {
|
||||
ignoreErrors: true
|
||||
});
|
||||
var result = '';
|
||||
|
||||
var _loop = function _loop() {
|
||||
var token = processor.nextToken();
|
||||
var color = HIGHLIGHT_THEME[getTokenType(token, processor)];
|
||||
|
||||
if (color) {
|
||||
result += token[1].split(/\r?\n/).map(function (i) {
|
||||
return color(i);
|
||||
}).join('\n');
|
||||
} else {
|
||||
result += token[1];
|
||||
}
|
||||
};
|
||||
|
||||
while (!processor.endOfFile()) {
|
||||
_loop();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
var _default = terminalHighlight;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlcm1pbmFsLWhpZ2hsaWdodC5lczYiXSwibmFtZXMiOlsiSElHSExJR0hUX1RIRU1FIiwiYnJhY2tldHMiLCJwaWNvIiwiY3lhbiIsImNvbW1lbnQiLCJncmF5Iiwic3RyaW5nIiwiZ3JlZW4iLCJjbGFzcyIsInllbGxvdyIsImNhbGwiLCJoYXNoIiwibWFnZW50YSIsImdldFRva2VuVHlwZSIsInByb2Nlc3NvciIsInR5cGUiLCJ2YWx1ZSIsImVuZE9mRmlsZSIsIm5leHQiLCJuZXh0VG9rZW4iLCJiYWNrIiwidGVybWluYWxIaWdobGlnaHQiLCJjc3MiLCJJbnB1dCIsImlnbm9yZUVycm9ycyIsInJlc3VsdCIsInRva2VuIiwiY29sb3IiLCJzcGxpdCIsIm1hcCIsImkiLCJqb2luIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOztBQUVBOztBQUNBOzs7O0FBRUEsSUFBTUEsZUFBZSxHQUFHO0FBQ3RCQyxFQUFBQSxRQUFRLEVBQUVDLG9CQUFLQyxJQURPO0FBRXRCLGFBQVdELG9CQUFLQyxJQUZNO0FBR3RCQyxFQUFBQSxPQUFPLEVBQUVGLG9CQUFLRyxJQUhRO0FBSXRCQyxFQUFBQSxNQUFNLEVBQUVKLG9CQUFLSyxLQUpTO0FBS3RCQyxFQUFBQSxLQUFLLEVBQUVOLG9CQUFLTyxNQUxVO0FBTXRCQyxFQUFBQSxJQUFJLEVBQUVSLG9CQUFLQyxJQU5XO0FBT3RCUSxFQU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uICAgIGxldCBjb2xvciA9IEhJR0hMSUdIVF9USEVNRVtnZXRUb2tlblR5cGUodG9rZW4sIHByb2Nlc3NvcildXG4gICAgaWYgKGNvbG9yKSB7XG4gICAgICByZXN1bHQgKz0gdG9rZW5bMV1cbiAgICAgICAgLnNwbGl0KC9cXHI/XFxuLylcbiAgICAgICAgLm1hcChpID0+IGNvbG9yKGkpKVxuICAgICAgICAuam9pbignXFxuJylcbiAgICB9IGVsc2Uge1xuICAgICAgcmVzdWx0ICs9IHRva2VuWzFdXG4gICAgfVxuICB9XG4gIHJldHVybiByZXN1bHRcbn1cblxuZXhwb3J0IGRlZmF1bHQgdGVybWluYWxIaWdobGlnaHRcbiJdLCJmaWxlIjoidGVybWluYWwtaGlnaGxpZ2h0LmpzIn0=
|
295
node_modules/postcss-less/node_modules/postcss/lib/tokenize.js
generated
vendored
Normal file
295
node_modules/postcss-less/node_modules/postcss/lib/tokenize.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
53
node_modules/postcss-less/node_modules/postcss/lib/vendor.js
generated
vendored
Normal file
53
node_modules/postcss-less/node_modules/postcss/lib/vendor.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Contains helpers for working with vendor prefixes.
|
||||
*
|
||||
* @example
|
||||
* const vendor = postcss.vendor
|
||||
*
|
||||
* @namespace vendor
|
||||
*/
|
||||
var vendor = {
|
||||
/**
|
||||
* Returns the vendor prefix extracted from an input string.
|
||||
*
|
||||
* @param {string} prop String with or without vendor prefix.
|
||||
*
|
||||
* @return {string} vendor prefix or empty string
|
||||
*
|
||||
* @example
|
||||
* postcss.vendor.prefix('-moz-tab-size') //=> '-moz-'
|
||||
* postcss.vendor.prefix('tab-size') //=> ''
|
||||
*/
|
||||
prefix: function prefix(prop) {
|
||||
var match = prop.match(/^(-\w+-)/);
|
||||
|
||||
if (match) {
|
||||
return match[0];
|
||||
}
|
||||
|
||||
return '';
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the input string stripped of its vendor prefix.
|
||||
*
|
||||
* @param {string} prop String with or without vendor prefix.
|
||||
*
|
||||
* @return {string} String name without vendor prefixes.
|
||||
*
|
||||
* @example
|
||||
* postcss.vendor.unprefixed('-moz-tab-size') //=> 'tab-size'
|
||||
*/
|
||||
unprefixed: function unprefixed(prop) {
|
||||
return prop.replace(/^-\w+-/, '');
|
||||
}
|
||||
};
|
||||
var _default = vendor;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZlbmRvci5lczYiXSwibmFtZXMiOlsidmVuZG9yIiwicHJlZml4IiwicHJvcCIsIm1hdGNoIiwidW5wcmVmaXhlZCIsInJlcGxhY2UiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7Ozs7Ozs7O0FBUUEsSUFBSUEsTUFBTSxHQUFHO0FBRVg7Ozs7Ozs7Ozs7O0FBV0FDLEVBQUFBLE1BYlcsa0JBYUhDLElBYkcsRUFhRztBQUNaLFFBQUlDLEtBQUssR0FBR0QsSUFBSSxDQUFDQyxLQUFMLENBQVcsVUFBWCxDQUFaOztBQUNBLFFBQUlBLEtBQUosRUFBVztBQUNULGFBQU9BLEtBQUssQ0FBQyxDQUFELENBQVo7QUFDRDs7QUFFRCxXQUFPLEVBQVA7QUFDRCxHQXBCVTs7QUFzQlg7Ozs7Ozs7Ozs7QUFVQUMsRUFBQUEsVUFoQ1csc0JBZ0NDRixJQWhDRCxFQWdDTztBQUNoQixXQUFPQSxJQUFJLENBQUNHLE9BQUwsQ0FBYSxRQUFiLEVBQXVCLEVBQXZCLENBQVA7QUFDRDtBQWxDVSxDQUFiO2VBc0NlTCxNIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb250YWlucyBoZWxwZXJzIGZvciB3b3JraW5nIHdpdGggd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AgICAgKiBwb3N0Y3NzLnZlbmRvci51bnByZWZpeGVkKCctbW96LXRhYi1zaXplJykgLy89PiAndGFiLXNpemUnXG4gICAgICovXG4gIHVucHJlZml4ZWQgKHByb3ApIHtcbiAgICByZXR1cm4gcHJvcC5yZXBsYWNlKC9eLVxcdystLywgJycpXG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCB2ZW5kb3JcbiJdLCJmaWxlIjoidmVuZG9yLmpzIn0=
|
17
node_modules/postcss-less/node_modules/postcss/lib/warn-once.js
generated
vendored
Normal file
17
node_modules/postcss-less/node_modules/postcss/lib/warn-once.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = warnOnce;
|
||||
var printed = {};
|
||||
|
||||
function warnOnce(message) {
|
||||
if (printed[message]) return;
|
||||
printed[message] = true;
|
||||
|
||||
if (typeof console !== 'undefined' && console.warn) {
|
||||
console.warn(message);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndhcm4tb25jZS5lczYiXSwibmFtZXMiOlsicHJpbnRlZCIsIndhcm5PbmNlIiwibWVzc2FnZSIsImNvbnNvbGUiLCJ3YXJuIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBSUEsT0FBTyxHQUFHLEVBQWQ7O0FBRWUsU0FBU0MsUUFBVCxDQUFtQkMsT0FBbkIsRUFBNEI7QUFDekMsTUFBSUYsT0FBTyxDQUFDRSxPQUFELENBQVgsRUFBc0I7QUFDdEJGLEVBQUFBLE9BQU8sQ0FBQ0UsT0FBRCxDQUFQLEdBQW1CLElBQW5COztBQUVBLE1BQUksT0FBT0MsT0FBUCxLQUFtQixXQUFuQixJQUFrQ0EsT0FBTyxDQUFDQyxJQUE5QyxFQUFvRDtBQUNsREQsSUFBQUEsT0FBTyxDQUFDQyxJQUFSLENBQWFGLE9BQWI7QUFDRDtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsibGV0IHByaW50ZWQgPSB7IH1cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gd2Fybk9uY2UgKG1lc3NhZ2UpIHtcbiAgaWYgKHByaW50ZWRbbWVzc2FnZV0pIHJldHVyblxuICBwcmludGVkW21lc3NhZ2VdID0gdHJ1ZVxuXG4gIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgY29uc29sZS53YXJuKSB7XG4gICAgY29uc29sZS53YXJuKG1lc3NhZ2UpXG4gIH1cbn1cbiJdLCJmaWxlIjoid2Fybi1vbmNlLmpzIn0=
|
131
node_modules/postcss-less/node_modules/postcss/lib/warning.js
generated
vendored
Normal file
131
node_modules/postcss-less/node_modules/postcss/lib/warning.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
37
node_modules/postcss-less/node_modules/postcss/package.json
generated
vendored
Normal file
37
node_modules/postcss-less/node_modules/postcss/package.json
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "postcss",
|
||||
"version": "7.0.39",
|
||||
"description": "Tool for transforming styles with JS plugins",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"rework",
|
||||
"preprocessor",
|
||||
"parser",
|
||||
"source map",
|
||||
"transform",
|
||||
"manipulation",
|
||||
"transpiler"
|
||||
],
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/postcss/"
|
||||
},
|
||||
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://postcss.org/",
|
||||
"repository": "postcss/postcss",
|
||||
"dependencies": {
|
||||
"picocolors": "^0.2.1",
|
||||
"source-map": "^0.6.1"
|
||||
},
|
||||
"main": "lib/postcss",
|
||||
"types": "lib/postcss.d.ts",
|
||||
"browser": {
|
||||
"./lib/terminal-highlight": false,
|
||||
"fs": false
|
||||
}
|
||||
}
|
66
node_modules/postcss-less/package.json
generated
vendored
Normal file
66
node_modules/postcss-less/package.json
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"name": "postcss-less",
|
||||
"version": "3.1.4",
|
||||
"description": "LESS parser for PostCSS",
|
||||
"license": "MIT",
|
||||
"repository": "shellscape/postcss-less",
|
||||
"author": "Denys Kniazevych <webschik@gmail.com>",
|
||||
"maintainer": "Andrew Powell <andrew@shellscape.org>",
|
||||
"homepage": "https://github.com/shellscape/postcss-less",
|
||||
"bugs": "https://github.com/shellscape/postcss-less/issues",
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=6.14.4"
|
||||
},
|
||||
"scripts": {
|
||||
"ci:coverage": "nyc npm run test && nyc report --reporter=text-lcov > coverage.lcov",
|
||||
"ci:lint": "npm run lint && npm run security",
|
||||
"ci:test": "npm run test",
|
||||
"commitlint": "commitlint",
|
||||
"commitmsg": "commitlint -e $GIT_PARAMS",
|
||||
"lint": "eslint --fix --cache lib test",
|
||||
"lint-staged": "lint-staged",
|
||||
"security": "npm audit",
|
||||
"test": "ava"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"dependencies": {
|
||||
"postcss": "^7.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^7.1.2",
|
||||
"@commitlint/config-conventional": "^7.1.2",
|
||||
"ava": "^1.0.0-beta.8",
|
||||
"cheerio": "^1.0.0-rc.2",
|
||||
"eslint": "^5.6.0",
|
||||
"eslint-config-shellscape": "^2.0.2",
|
||||
"eslint-plugin-filenames": "^1.2.0",
|
||||
"is-absolute-url": "^2.1.0",
|
||||
"less": "^3.8.1",
|
||||
"lint-staged": "^8.1.0",
|
||||
"node-fetch": "^2.2.0",
|
||||
"nyc": "^13.3.0",
|
||||
"postcss-parser-tests": "^6.3.1",
|
||||
"pre-commit": "^1.2.2",
|
||||
"standard-version": "^4.4.0",
|
||||
"url-join": "^4.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"postcss-syntax",
|
||||
"parser",
|
||||
"less"
|
||||
],
|
||||
"pre-commit": "lint-staged",
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user