Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
14
node_modules/style-to-js/cjs/index.d.ts
generated
vendored
Normal file
14
node_modules/style-to-js/cjs/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { CamelCaseOptions } from './utilities';
|
||||
type StyleObject = Record<string, string>;
|
||||
interface StyleToJSOptions extends CamelCaseOptions {
|
||||
}
|
||||
/**
|
||||
* Parses CSS inline style to JavaScript object (camelCased).
|
||||
*/
|
||||
declare function StyleToJS(style: string, options?: StyleToJSOptions): StyleObject;
|
||||
declare namespace StyleToJS {
|
||||
var _a: typeof StyleToJS;
|
||||
export { _a as default };
|
||||
}
|
||||
export = StyleToJS;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/style-to-js/cjs/index.d.ts.map
generated
vendored
Normal file
1
node_modules/style-to-js/cjs/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,gBAAgB;CAAG;AAEtD;;GAEG;AACH,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,WAAW,CAezE;kBAfQ,SAAS;;;;AAmBlB,SAAS,SAAS,CAAC"}
|
||||
25
node_modules/style-to-js/cjs/index.js
generated
vendored
Normal file
25
node_modules/style-to-js/cjs/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
var style_to_object_1 = __importDefault(require("style-to-object"));
|
||||
var utilities_1 = require("./utilities");
|
||||
/**
|
||||
* Parses CSS inline style to JavaScript object (camelCased).
|
||||
*/
|
||||
function StyleToJS(style, options) {
|
||||
var output = {};
|
||||
if (!style || typeof style !== 'string') {
|
||||
return output;
|
||||
}
|
||||
(0, style_to_object_1.default)(style, function (property, value) {
|
||||
// skip CSS comment
|
||||
if (property && value) {
|
||||
output[(0, utilities_1.camelCase)(property, options)] = value;
|
||||
}
|
||||
});
|
||||
return output;
|
||||
}
|
||||
StyleToJS.default = StyleToJS;
|
||||
module.exports = StyleToJS;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/style-to-js/cjs/index.js.map
generated
vendored
Normal file
1
node_modules/style-to-js/cjs/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oEAA4C;AAE5C,yCAA0D;AAM1D;;GAEG;AACH,SAAS,SAAS,CAAC,KAAa,EAAE,OAA0B;IAC1D,IAAM,MAAM,GAAgB,EAAE,CAAC;IAE/B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAA,yBAAa,EAAC,KAAK,EAAE,UAAC,QAAQ,EAAE,KAAK;QACnC,mBAAmB;QACnB,IAAI,QAAQ,IAAI,KAAK,EAAE,CAAC;YACtB,MAAM,CAAC,IAAA,qBAAS,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC;QAC/C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC;AAE9B,iBAAS,SAAS,CAAC"}
|
||||
11
node_modules/style-to-js/cjs/utilities.d.ts
generated
vendored
Normal file
11
node_modules/style-to-js/cjs/utilities.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* CamelCase options.
|
||||
*/
|
||||
export interface CamelCaseOptions {
|
||||
reactCompat?: boolean;
|
||||
}
|
||||
/**
|
||||
* CamelCases a CSS property.
|
||||
*/
|
||||
export declare const camelCase: (property: string, options?: CamelCaseOptions) => string;
|
||||
//# sourceMappingURL=utilities.d.ts.map
|
||||
1
node_modules/style-to-js/cjs/utilities.d.ts.map
generated
vendored
Normal file
1
node_modules/style-to-js/cjs/utilities.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,aAAc,MAAM,YAAW,gBAAgB,WAgBpE,CAAC"}
|
||||
47
node_modules/style-to-js/cjs/utilities.js
generated
vendored
Normal file
47
node_modules/style-to-js/cjs/utilities.js
generated
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.camelCase = void 0;
|
||||
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
|
||||
var HYPHEN_REGEX = /-([a-z])/g;
|
||||
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
||||
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
||||
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
||||
/**
|
||||
* Checks whether to skip camelCase.
|
||||
*/
|
||||
var skipCamelCase = function (property) {
|
||||
return !property ||
|
||||
NO_HYPHEN_REGEX.test(property) ||
|
||||
CUSTOM_PROPERTY_REGEX.test(property);
|
||||
};
|
||||
/**
|
||||
* Replacer that capitalizes first character.
|
||||
*/
|
||||
var capitalize = function (match, character) {
|
||||
return character.toUpperCase();
|
||||
};
|
||||
/**
|
||||
* Replacer that removes beginning hyphen of vendor prefix property.
|
||||
*/
|
||||
var trimHyphen = function (match, prefix) { return "".concat(prefix, "-"); };
|
||||
/**
|
||||
* CamelCases a CSS property.
|
||||
*/
|
||||
var camelCase = function (property, options) {
|
||||
if (options === void 0) { options = {}; }
|
||||
if (skipCamelCase(property)) {
|
||||
return property;
|
||||
}
|
||||
property = property.toLowerCase();
|
||||
if (options.reactCompat) {
|
||||
// `-ms` vendor prefix should not be capitalized
|
||||
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
||||
}
|
||||
else {
|
||||
// for non-React, remove first hyphen so vendor prefix is not capitalized
|
||||
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
||||
}
|
||||
return property.replace(HYPHEN_REGEX, capitalize);
|
||||
};
|
||||
exports.camelCase = camelCase;
|
||||
//# sourceMappingURL=utilities.js.map
|
||||
1
node_modules/style-to-js/cjs/utilities.js.map
generated
vendored
Normal file
1
node_modules/style-to-js/cjs/utilities.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";;;AAAA,IAAM,qBAAqB,GAAG,oBAAoB,CAAC;AACnD,IAAM,YAAY,GAAG,WAAW,CAAC;AACjC,IAAM,eAAe,GAAG,SAAS,CAAC;AAClC,IAAM,mBAAmB,GAAG,4BAA4B,CAAC;AACzD,IAAM,sBAAsB,GAAG,SAAS,CAAC;AAEzC;;GAEG;AACH,IAAM,aAAa,GAAG,UAAC,QAAgB;IACrC,OAAA,CAAC,QAAQ;QACT,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9B,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC;AAFpC,CAEoC,CAAC;AAEvC;;GAEG;AACH,IAAM,UAAU,GAAG,UAAC,KAAa,EAAE,SAAiB;IAClD,OAAA,SAAS,CAAC,WAAW,EAAE;AAAvB,CA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