@uifabric/merge-styles
Advanced tools
Comparing version 5.13.0 to 5.14.0
@@ -5,2 +5,16 @@ { | ||
{ | ||
"version": "5.14.0", | ||
"tag": "@uifabric/merge-styles_v5.14.0", | ||
"date": "Sun, 25 Mar 2018 03:08:03 GMT", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"author": "David Zearing <dzearing@microsoft.com>", | ||
"commit": "38089072c6e7f877d572cd2248b8d67adfefb963", | ||
"comment": "Updating to webpack 4 for producting bundles. Adding appropriate `module` and `sideEffects` fl" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "5.13.0", | ||
@@ -7,0 +21,0 @@ "tag": "@uifabric/merge-styles_v5.13.0", |
# Change Log - @uifabric/merge-styles | ||
This log was last generated on Fri, 02 Mar 2018 11:25:35 GMT and should not be manually modified. | ||
This log was last generated on Sun, 25 Mar 2018 03:08:03 GMT and should not be manually modified. | ||
## 5.14.0 | ||
Sun, 25 Mar 2018 03:08:03 GMT | ||
### Minor changes | ||
- Updating to webpack 4 for producting bundles. Adding appropriate `module` and `sideEffects` fl | ||
## 5.13.0 | ||
@@ -6,0 +13,0 @@ Fri, 02 Mar 2018 11:25:35 GMT |
@@ -48,2 +48,7 @@ var MergeStyles = | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
@@ -64,8 +69,224 @@ /******/ __webpack_require__.n = function(module) { | ||
/******/ | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 4); | ||
/******/ return __webpack_require__(__webpack_require__.s = "./lib/index.js"); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/******/ ({ | ||
/***/ "../../common/temp/node_modules/tslib/tslib.es6.js": | ||
/*!************************************************************************!*\ | ||
!*** D:/agent/1/_work/7/s/common/temp/node_modules/tslib/tslib.es6.js ***! | ||
\************************************************************************/ | ||
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var __assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
} | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
return t; | ||
} | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
var i, p; | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator]; | ||
return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
/***/ }), | ||
/***/ "./lib/Stylesheet.js": | ||
/*!***************************!*\ | ||
!*** ./lib/Stylesheet.js ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -76,3 +297,3 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = __webpack_require__(6); | ||
var tslib_1 = __webpack_require__(/*! tslib */ "../../common/temp/node_modules/tslib/tslib.es6.js"); | ||
/** | ||
@@ -247,3 +468,8 @@ * Injection mode for the stylesheet. | ||
/***/ }), | ||
/* 1 */ | ||
/***/ "./lib/concatStyleSets.js": | ||
/*!********************************!*\ | ||
!*** ./lib/concatStyleSets.js ***! | ||
\********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -254,7 +480,343 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(0); | ||
var kebabRules_1 = __webpack_require__(7); | ||
var prefixRules_1 = __webpack_require__(8); | ||
var provideUnits_1 = __webpack_require__(10); | ||
var rtlifyRules_1 = __webpack_require__(11); | ||
/** | ||
* Combine a set of styles together (but does not register css classes.) | ||
* @public | ||
*/ | ||
function concatStyleSets() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
// tslint:disable-next-line:no-any | ||
var mergedSet = {}; | ||
for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { | ||
var currentSet = args_1[_a]; | ||
if (currentSet) { | ||
for (var prop in currentSet) { | ||
if (currentSet.hasOwnProperty(prop)) { | ||
var mergedValue = mergedSet[prop]; | ||
var currentValue = currentSet[prop]; | ||
if (mergedValue === undefined) { | ||
mergedSet[prop] = currentValue; | ||
} | ||
else { | ||
mergedSet[prop] = (Array.isArray(mergedValue) ? mergedValue : [mergedValue]).concat((Array.isArray(currentValue) ? currentValue : [currentValue])); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return mergedSet; | ||
} | ||
exports.concatStyleSets = concatStyleSets; | ||
/***/ }), | ||
/***/ "./lib/extractStyleParts.js": | ||
/*!**********************************!*\ | ||
!*** ./lib/extractStyleParts.js ***! | ||
\**********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./lib/Stylesheet.js"); | ||
/** | ||
* Separates the classes and style objects. Any classes that are pre-registered | ||
* args are auto expanded into objects. | ||
*/ | ||
function extractStyleParts() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var classes = []; | ||
var objects = []; | ||
var stylesheet = Stylesheet_1.Stylesheet.getInstance(); | ||
function _processArgs(argsList) { | ||
for (var _i = 0, argsList_1 = argsList; _i < argsList_1.length; _i++) { | ||
var arg = argsList_1[_i]; | ||
if (arg) { | ||
if (typeof arg === 'string') { | ||
if (arg.indexOf(' ') >= 0) { | ||
_processArgs(arg.split(' ')); | ||
} | ||
else { | ||
var translatedArgs = stylesheet.argsFromClassName(arg); | ||
if (translatedArgs) { | ||
_processArgs(translatedArgs); | ||
} | ||
else { | ||
// Avoid adding the same class twice. | ||
if (classes.indexOf(arg) === -1) { | ||
classes.push(arg); | ||
} | ||
} | ||
} | ||
} | ||
else if (Array.isArray(arg)) { | ||
_processArgs(arg); | ||
} | ||
else if (typeof arg === 'object') { | ||
objects.push(arg); | ||
} | ||
} | ||
} | ||
} | ||
_processArgs(args); | ||
return { | ||
classes: classes, | ||
objects: objects | ||
}; | ||
} | ||
exports.extractStyleParts = extractStyleParts; | ||
/***/ }), | ||
/***/ "./lib/fontFace.js": | ||
/*!*************************!*\ | ||
!*** ./lib/fontFace.js ***! | ||
\*************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./lib/Stylesheet.js"); | ||
var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./lib/styleToClassName.js"); | ||
/** | ||
* Registers a font face. | ||
* @public | ||
*/ | ||
function fontFace(font) { | ||
Stylesheet_1.Stylesheet.getInstance().insertRule("@font-face{" + styleToClassName_1.serializeRuleEntries(font) + "}"); | ||
} | ||
exports.fontFace = fontFace; | ||
/***/ }), | ||
/***/ "./lib/getVendorSettings.js": | ||
/*!**********************************!*\ | ||
!*** ./lib/getVendorSettings.js ***! | ||
\**********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _vendorSettings; | ||
function getVendorSettings() { | ||
if (!_vendorSettings) { | ||
var doc = typeof document !== 'undefined' ? document : undefined; | ||
var nav = typeof navigator !== 'undefined' ? navigator : undefined; | ||
var userAgent = nav ? nav.userAgent.toLowerCase() : undefined; | ||
if (!doc) { | ||
_vendorSettings = { | ||
isWebkit: true, | ||
isMoz: true, | ||
isOpera: true, | ||
isMs: true | ||
}; | ||
} | ||
else { | ||
_vendorSettings = { | ||
isWebkit: !!(doc && 'WebkitAppearance' in doc.documentElement.style), | ||
isMoz: !!(userAgent && userAgent.indexOf('firefox') > -1), | ||
isOpera: !!(userAgent && userAgent.indexOf('opera') > -1), | ||
isMs: !!(nav && (/rv:11.0/i.test(nav.userAgent) || /Edge\/\d./i.test(navigator.userAgent))) | ||
}; | ||
} | ||
} | ||
return _vendorSettings; | ||
} | ||
exports.getVendorSettings = getVendorSettings; | ||
/** | ||
* Sets the vendor settings for prefixing and vendor specific operations. | ||
*/ | ||
function setVendorSettings(vendorSettings) { | ||
_vendorSettings = vendorSettings; | ||
} | ||
exports.setVendorSettings = setVendorSettings; | ||
/***/ }), | ||
/***/ "./lib/index.js": | ||
/*!**********************!*\ | ||
!*** ./lib/index.js ***! | ||
\**********************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var mergeStyles_1 = __webpack_require__(/*! ./mergeStyles */ "./lib/mergeStyles.js"); | ||
exports.mergeStyles = mergeStyles_1.mergeStyles; | ||
var mergeStyleSets_1 = __webpack_require__(/*! ./mergeStyleSets */ "./lib/mergeStyleSets.js"); | ||
exports.mergeStyleSets = mergeStyleSets_1.mergeStyleSets; | ||
var concatStyleSets_1 = __webpack_require__(/*! ./concatStyleSets */ "./lib/concatStyleSets.js"); | ||
exports.concatStyleSets = concatStyleSets_1.concatStyleSets; | ||
var fontFace_1 = __webpack_require__(/*! ./fontFace */ "./lib/fontFace.js"); | ||
exports.fontFace = fontFace_1.fontFace; | ||
var keyframes_1 = __webpack_require__(/*! ./keyframes */ "./lib/keyframes.js"); | ||
exports.keyframes = keyframes_1.keyframes; | ||
var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./lib/Stylesheet.js"); | ||
exports.InjectionMode = Stylesheet_1.InjectionMode; | ||
exports.Stylesheet = Stylesheet_1.Stylesheet; | ||
/***/ }), | ||
/***/ "./lib/keyframes.js": | ||
/*!**************************!*\ | ||
!*** ./lib/keyframes.js ***! | ||
\**************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./lib/Stylesheet.js"); | ||
var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./lib/styleToClassName.js"); | ||
/** | ||
* Registers keyframe definitions. | ||
* | ||
* @public | ||
*/ | ||
function keyframes(timeline) { | ||
var stylesheet = Stylesheet_1.Stylesheet.getInstance(); | ||
var name = stylesheet.getClassName(); | ||
var rulesArray = []; | ||
for (var prop in timeline) { | ||
if (timeline.hasOwnProperty(prop)) { | ||
rulesArray.push(prop, '{', styleToClassName_1.serializeRuleEntries(timeline[prop]), '}'); | ||
} | ||
} | ||
var rules = rulesArray.join(''); | ||
stylesheet.insertRule("@keyframes " + name + "{" + rules + "}"); | ||
// If needed later, we would add vendor prefixes here. | ||
return name; | ||
} | ||
exports.keyframes = keyframes; | ||
/***/ }), | ||
/***/ "./lib/mergeStyleSets.js": | ||
/*!*******************************!*\ | ||
!*** ./lib/mergeStyleSets.js ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var extractStyleParts_1 = __webpack_require__(/*! ./extractStyleParts */ "./lib/extractStyleParts.js"); | ||
var concatStyleSets_1 = __webpack_require__(/*! ./concatStyleSets */ "./lib/concatStyleSets.js"); | ||
var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./lib/styleToClassName.js"); | ||
/** | ||
* Allows you to pass in 1 or more sets of areas which will return a merged | ||
* set of classes. | ||
* | ||
* @public | ||
*/ | ||
function mergeStyleSets() { | ||
var cssSets = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
cssSets[_i] = arguments[_i]; | ||
} | ||
// tslint:disable-next-line:no-any | ||
var classNameSet = {}; | ||
var classMap = {}; | ||
var cssSet = cssSets[0]; | ||
if (cssSet) { | ||
if (cssSets.length > 1) { | ||
cssSet = concatStyleSets_1.concatStyleSets.apply(void 0, cssSets); | ||
} | ||
var registrations = []; | ||
for (var prop in cssSet) { | ||
if (cssSet.hasOwnProperty(prop)) { | ||
var args = cssSet[prop]; | ||
// tslint:disable-next-line:no-any | ||
var _a = extractStyleParts_1.extractStyleParts(args), classes = _a.classes, objects = _a.objects; | ||
var registration = styleToClassName_1.styleToRegistration({ displayName: prop }, objects); | ||
registrations.push(registration); | ||
if (registration) { | ||
classMap[prop] = registration.className; | ||
classNameSet[prop] = classes.concat([registration.className]).join(' '); | ||
} | ||
} | ||
} | ||
for (var _b = 0, registrations_1 = registrations; _b < registrations_1.length; _b++) { | ||
var registration = registrations_1[_b]; | ||
if (registration) { | ||
styleToClassName_1.applyRegistration(registration, classMap); | ||
} | ||
} | ||
} | ||
return classNameSet; | ||
} | ||
exports.mergeStyleSets = mergeStyleSets; | ||
/***/ }), | ||
/***/ "./lib/mergeStyles.js": | ||
/*!****************************!*\ | ||
!*** ./lib/mergeStyles.js ***! | ||
\****************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./lib/styleToClassName.js"); | ||
var extractStyleParts_1 = __webpack_require__(/*! ./extractStyleParts */ "./lib/extractStyleParts.js"); | ||
/** | ||
* Concatination helper, which can merge class names together. Skips over falsey values. | ||
* | ||
* @public | ||
*/ | ||
function mergeStyles() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var _a = extractStyleParts_1.extractStyleParts(args), classes = _a.classes, objects = _a.objects; | ||
if (objects.length) { | ||
classes.push(styleToClassName_1.styleToClassName(objects)); | ||
} | ||
return classes.join(' '); | ||
} | ||
exports.mergeStyles = mergeStyles; | ||
/***/ }), | ||
/***/ "./lib/styleToClassName.js": | ||
/*!*********************************!*\ | ||
!*** ./lib/styleToClassName.js ***! | ||
\*********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./lib/Stylesheet.js"); | ||
var kebabRules_1 = __webpack_require__(/*! ./transforms/kebabRules */ "./lib/transforms/kebabRules.js"); | ||
var prefixRules_1 = __webpack_require__(/*! ./transforms/prefixRules */ "./lib/transforms/prefixRules.js"); | ||
var provideUnits_1 = __webpack_require__(/*! ./transforms/provideUnits */ "./lib/transforms/provideUnits.js"); | ||
var rtlifyRules_1 = __webpack_require__(/*! ./transforms/rtlifyRules */ "./lib/transforms/rtlifyRules.js"); | ||
var DISPLAY_NAME = 'displayName'; | ||
@@ -447,62 +1009,8 @@ function getDisplayName(rules) { | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(0); | ||
/** | ||
* Separates the classes and style objects. Any classes that are pre-registered | ||
* args are auto expanded into objects. | ||
*/ | ||
function extractStyleParts() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var classes = []; | ||
var objects = []; | ||
var stylesheet = Stylesheet_1.Stylesheet.getInstance(); | ||
function _processArgs(argsList) { | ||
for (var _i = 0, argsList_1 = argsList; _i < argsList_1.length; _i++) { | ||
var arg = argsList_1[_i]; | ||
if (arg) { | ||
if (typeof arg === 'string') { | ||
if (arg.indexOf(' ') >= 0) { | ||
_processArgs(arg.split(' ')); | ||
} | ||
else { | ||
var translatedArgs = stylesheet.argsFromClassName(arg); | ||
if (translatedArgs) { | ||
_processArgs(translatedArgs); | ||
} | ||
else { | ||
// Avoid adding the same class twice. | ||
if (classes.indexOf(arg) === -1) { | ||
classes.push(arg); | ||
} | ||
} | ||
} | ||
} | ||
else if (Array.isArray(arg)) { | ||
_processArgs(arg); | ||
} | ||
else if (typeof arg === 'object') { | ||
objects.push(arg); | ||
} | ||
} | ||
} | ||
} | ||
_processArgs(args); | ||
return { | ||
classes: classes, | ||
objects: objects | ||
}; | ||
} | ||
exports.extractStyleParts = extractStyleParts; | ||
/***/ }), | ||
/* 3 */ | ||
/***/ "./lib/transforms/kebabRules.js": | ||
/*!**************************************!*\ | ||
!*** ./lib/transforms/kebabRules.js ***! | ||
\**************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -513,297 +1021,2 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Combine a set of styles together (but does not register css classes.) | ||
* @public | ||
*/ | ||
function concatStyleSets() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
// tslint:disable-next-line:no-any | ||
var mergedSet = {}; | ||
for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { | ||
var currentSet = args_1[_a]; | ||
if (currentSet) { | ||
for (var prop in currentSet) { | ||
if (currentSet.hasOwnProperty(prop)) { | ||
var mergedValue = mergedSet[prop]; | ||
var currentValue = currentSet[prop]; | ||
if (mergedValue === undefined) { | ||
mergedSet[prop] = currentValue; | ||
} | ||
else { | ||
mergedSet[prop] = (Array.isArray(mergedValue) ? mergedValue : [mergedValue]).concat((Array.isArray(currentValue) ? currentValue : [currentValue])); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return mergedSet; | ||
} | ||
exports.concatStyleSets = concatStyleSets; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var mergeStyles_1 = __webpack_require__(5); | ||
exports.mergeStyles = mergeStyles_1.mergeStyles; | ||
var mergeStyleSets_1 = __webpack_require__(12); | ||
exports.mergeStyleSets = mergeStyleSets_1.mergeStyleSets; | ||
var concatStyleSets_1 = __webpack_require__(3); | ||
exports.concatStyleSets = concatStyleSets_1.concatStyleSets; | ||
var fontFace_1 = __webpack_require__(13); | ||
exports.fontFace = fontFace_1.fontFace; | ||
var keyframes_1 = __webpack_require__(14); | ||
exports.keyframes = keyframes_1.keyframes; | ||
var Stylesheet_1 = __webpack_require__(0); | ||
exports.InjectionMode = Stylesheet_1.InjectionMode; | ||
exports.Stylesheet = Stylesheet_1.Stylesheet; | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var styleToClassName_1 = __webpack_require__(1); | ||
var extractStyleParts_1 = __webpack_require__(2); | ||
/** | ||
* Concatination helper, which can merge class names together. Skips over falsey values. | ||
* | ||
* @public | ||
*/ | ||
function mergeStyles() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
var _a = extractStyleParts_1.extractStyleParts(args), classes = _a.classes, objects = _a.objects; | ||
if (objects.length) { | ||
classes.push(styleToClassName_1.styleToClassName(objects)); | ||
} | ||
return classes.join(' '); | ||
} | ||
exports.mergeStyles = mergeStyles; | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
/* harmony export (immutable) */ __webpack_exports__["__extends"] = __extends; | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); | ||
/* harmony export (immutable) */ __webpack_exports__["__rest"] = __rest; | ||
/* harmony export (immutable) */ __webpack_exports__["__decorate"] = __decorate; | ||
/* harmony export (immutable) */ __webpack_exports__["__param"] = __param; | ||
/* harmony export (immutable) */ __webpack_exports__["__metadata"] = __metadata; | ||
/* harmony export (immutable) */ __webpack_exports__["__awaiter"] = __awaiter; | ||
/* harmony export (immutable) */ __webpack_exports__["__generator"] = __generator; | ||
/* harmony export (immutable) */ __webpack_exports__["__exportStar"] = __exportStar; | ||
/* harmony export (immutable) */ __webpack_exports__["__values"] = __values; | ||
/* harmony export (immutable) */ __webpack_exports__["__read"] = __read; | ||
/* harmony export (immutable) */ __webpack_exports__["__spread"] = __spread; | ||
/* harmony export (immutable) */ __webpack_exports__["__await"] = __await; | ||
/* harmony export (immutable) */ __webpack_exports__["__asyncGenerator"] = __asyncGenerator; | ||
/* harmony export (immutable) */ __webpack_exports__["__asyncDelegator"] = __asyncDelegator; | ||
/* harmony export (immutable) */ __webpack_exports__["__asyncValues"] = __asyncValues; | ||
/* harmony export (immutable) */ __webpack_exports__["__makeTemplateObject"] = __makeTemplateObject; | ||
/* harmony export (immutable) */ __webpack_exports__["__importStar"] = __importStar; | ||
/* harmony export (immutable) */ __webpack_exports__["__importDefault"] = __importDefault; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var __assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
} | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
return t; | ||
} | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
var i, p; | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator]; | ||
return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function kebabRules(rulePairs, index) { | ||
@@ -816,3 +1029,8 @@ rulePairs[index] = rulePairs[index].replace(/([A-Z])/g, '-$1').toLowerCase(); | ||
/***/ }), | ||
/* 8 */ | ||
/***/ "./lib/transforms/prefixRules.js": | ||
/*!***************************************!*\ | ||
!*** ./lib/transforms/prefixRules.js ***! | ||
\***************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -823,3 +1041,3 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var getVendorSettings_1 = __webpack_require__(9); | ||
var getVendorSettings_1 = __webpack_require__(/*! ../getVendorSettings */ "./lib/getVendorSettings.js"); | ||
var autoPrefixNames = { | ||
@@ -853,45 +1071,8 @@ 'user-select': 1 | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _vendorSettings; | ||
function getVendorSettings() { | ||
if (!_vendorSettings) { | ||
var doc = typeof document !== 'undefined' ? document : undefined; | ||
var nav = typeof navigator !== 'undefined' ? navigator : undefined; | ||
var userAgent = nav ? nav.userAgent.toLowerCase() : undefined; | ||
if (!doc) { | ||
_vendorSettings = { | ||
isWebkit: true, | ||
isMoz: true, | ||
isOpera: true, | ||
isMs: true | ||
}; | ||
} | ||
else { | ||
_vendorSettings = { | ||
isWebkit: !!(doc && 'WebkitAppearance' in doc.documentElement.style), | ||
isMoz: !!(userAgent && userAgent.indexOf('firefox') > -1), | ||
isOpera: !!(userAgent && userAgent.indexOf('opera') > -1), | ||
isMs: !!(nav && (/rv:11.0/i.test(nav.userAgent) || /Edge\/\d./i.test(navigator.userAgent))) | ||
}; | ||
} | ||
} | ||
return _vendorSettings; | ||
} | ||
exports.getVendorSettings = getVendorSettings; | ||
/** | ||
* Sets the vendor settings for prefixing and vendor specific operations. | ||
*/ | ||
function setVendorSettings(vendorSettings) { | ||
_vendorSettings = vendorSettings; | ||
} | ||
exports.setVendorSettings = setVendorSettings; | ||
/***/ }), | ||
/* 10 */ | ||
/***/ "./lib/transforms/provideUnits.js": | ||
/*!****************************************!*\ | ||
!*** ./lib/transforms/provideUnits.js ***! | ||
\****************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -927,3 +1108,8 @@ | ||
/***/ }), | ||
/* 11 */ | ||
/***/ "./lib/transforms/rtlifyRules.js": | ||
/*!***************************************!*\ | ||
!*** ./lib/transforms/rtlifyRules.js ***! | ||
\***************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1036,109 +1222,5 @@ | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ }) | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var extractStyleParts_1 = __webpack_require__(2); | ||
var concatStyleSets_1 = __webpack_require__(3); | ||
var styleToClassName_1 = __webpack_require__(1); | ||
/** | ||
* Allows you to pass in 1 or more sets of areas which will return a merged | ||
* set of classes. | ||
* | ||
* @public | ||
*/ | ||
function mergeStyleSets() { | ||
var cssSets = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
cssSets[_i] = arguments[_i]; | ||
} | ||
// tslint:disable-next-line:no-any | ||
var classNameSet = {}; | ||
var classMap = {}; | ||
var cssSet = cssSets[0]; | ||
if (cssSet) { | ||
if (cssSets.length > 1) { | ||
cssSet = concatStyleSets_1.concatStyleSets.apply(void 0, cssSets); | ||
} | ||
var registrations = []; | ||
for (var prop in cssSet) { | ||
if (cssSet.hasOwnProperty(prop)) { | ||
var args = cssSet[prop]; | ||
// tslint:disable-next-line:no-any | ||
var _a = extractStyleParts_1.extractStyleParts(args), classes = _a.classes, objects = _a.objects; | ||
var registration = styleToClassName_1.styleToRegistration({ displayName: prop }, objects); | ||
registrations.push(registration); | ||
if (registration) { | ||
classMap[prop] = registration.className; | ||
classNameSet[prop] = classes.concat([registration.className]).join(' '); | ||
} | ||
} | ||
} | ||
for (var _b = 0, registrations_1 = registrations; _b < registrations_1.length; _b++) { | ||
var registration = registrations_1[_b]; | ||
if (registration) { | ||
styleToClassName_1.applyRegistration(registration, classMap); | ||
} | ||
} | ||
} | ||
return classNameSet; | ||
} | ||
exports.mergeStyleSets = mergeStyleSets; | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(0); | ||
var styleToClassName_1 = __webpack_require__(1); | ||
/** | ||
* Registers a font face. | ||
* @public | ||
*/ | ||
function fontFace(font) { | ||
Stylesheet_1.Stylesheet.getInstance().insertRule("@font-face{" + styleToClassName_1.serializeRuleEntries(font) + "}"); | ||
} | ||
exports.fontFace = fontFace; | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Stylesheet_1 = __webpack_require__(0); | ||
var styleToClassName_1 = __webpack_require__(1); | ||
/** | ||
* Registers keyframe definitions. | ||
* | ||
* @public | ||
*/ | ||
function keyframes(timeline) { | ||
var stylesheet = Stylesheet_1.Stylesheet.getInstance(); | ||
var name = stylesheet.getClassName(); | ||
var rulesArray = []; | ||
for (var prop in timeline) { | ||
if (timeline.hasOwnProperty(prop)) { | ||
rulesArray.push(prop, '{', styleToClassName_1.serializeRuleEntries(timeline[prop]), '}'); | ||
} | ||
} | ||
var rules = rulesArray.join(''); | ||
stylesheet.insertRule("@keyframes " + name + "{" + rules + "}"); | ||
// If needed later, we would add vendor prefixes here. | ||
return name; | ||
} | ||
exports.keyframes = keyframes; | ||
/***/ }) | ||
/******/ ]); | ||
/******/ }); | ||
//# sourceMappingURL=merge-styles.js.map |
@@ -1,2 +0,3 @@ | ||
var MergeStyles=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,r){"use strict";function n(e){var t=document.createElement("style");return t.setAttribute("data-merge-styles","true"),t.type="text/css",e&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}Object.defineProperty(t,"__esModule",{value:!0});var o=r(6);!function(e){e[e.none=0]="none",e[e.insertNode=1]="insertNode",e[e.appendChild=2]="appendChild"}(t.InjectionMode||(t.InjectionMode={}));var i,s=function(){function e(e){this._config=o.__assign({injectionMode:1,defaultPrefix:"css"},e),this.reset()}return e.getInstance=function(){var t="undefined"!=typeof window?window:{};if(!(i=t.__stylesheet__)){var r=t&&t.FabricConfig||{};i=t.__stylesheet__=new e(r.mergeStyles)}return i},e.prototype.setConfig=function(e){this._config=o.__assign({},this._config,e)},e.prototype.getClassName=function(e){return(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,r,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:r,rules:n}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e){var t=this._getElement();switch(t?this._config.injectionMode:0){case 1:var r=t.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case 2:n(e);break;default:this._rules.push(e)}this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(){return(this._rules.join("")||"")+(this._rulesToInsert.join("")||"")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._timerId&&(clearTimeout(this._timerId),this._timerId=0)},e.prototype._getElement=function(){return this._styleElement||"undefined"==typeof document||(this._styleElement=n()),this._styleElement},e}();t.Stylesheet=s},function(e,t,r){"use strict";function n(e){var t=e&&e["&"];return t?t.displayName:void 0}function o(e,t,r){void 0===t&&(t={__order:[]}),void 0===r&&(r="&");var n=f.Stylesheet.getInstance(),s=t[r];s||(s={},t[r]=s,t.__order.push(r));for(var a=0,u=e;a<u.length;a++){var c=u[a];if("string"==typeof c){var l=n.argsFromClassName(c);l&&o(l,t,r)}else if(Array.isArray(c))o(c,t,r);else for(var p in c)if("selectors"===p){var y=c.selectors;for(var d in y)if(y.hasOwnProperty(d)){var v=y[d];0===d.indexOf(":global(")?d=d.replace(/:global\(|\)$/g,""):0===d.indexOf("@media")?d=d+"{"+r:0===d.indexOf(":")?d=r+d:d.indexOf("&")<0&&(d=r+" "+d),o([v],t,d)}}else"margin"===p||"padding"===p?i(s,p,c[p]):s[p]=c[p]}return t}function i(e,t,r){var n="string"==typeof r?r.split(" "):[r];e[t+"Top"]=n[0],e[t+"Right"]=n[1]||n[0],e[t+"Bottom"]=n[2]||n[0],e[t+"Left"]=n[3]||n[1]||n[0]}function s(e){for(var t=[],r=!1,n=0,o=e.__order;n<o.length;n++){var i=o[n];t.push(i);var s=e[i];for(var a in s)s.hasOwnProperty(a)&&void 0!==s[a]&&(r=!0,t.push(a,s[a]))}return r?t.join(""):void 0}function a(e){if(!e)return"";var t=[];for(var r in e)e.hasOwnProperty(r)&&r!==h&&void 0!==e[r]&&t.push(r,e[r]);for(var n=0;n<t.length;n+=2)p.kebabRules(t,n),d.provideUnits(t,n),v.rtlifyRules(t,n),y.prefixRules(t,n);for(var n=1;n<t.length;n+=4)t.splice(n,1,":",t[n],";");return t.join("")}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o(e),i=s(r);if(i){var u=f.Stylesheet.getInstance(),c={className:u.classNameFromKey(i),key:i,args:e};if(!c.className){c.className=u.getClassName(n(r));for(var l=[],p=0,y=r.__order;p<y.length;p++){var d=y[p];l.push(d,a(r[d]))}c.rulesToInsert=l}return c}}function c(e,t){var r=f.Stylesheet.getInstance(),n=e.className,o=e.key,i=e.args,s=e.rulesToInsert;if(s){for(var a=0;a<s.length;a+=2){var u=s[a+1];if(u){var c=s[a];c=c.replace(/(&)|\$([\w-]+)\b/g,function(r,n,o){return n?"."+e.className:o?"."+(t&&t[o]||o):""});var l=c+"{"+u+"}"+(0===c.indexOf("@media")?"}":"");r.insertRule(l)}}r.cacheClassName(n,o,i,s)}}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.apply(void 0,e);return r?(c(r),r.className):""}Object.defineProperty(t,"__esModule",{value:!0});var f=r(0),p=r(7),y=r(8),d=r(10),v=r(11),h="displayName";t.serializeRuleEntries=a,t.styleToRegistration=u,t.applyRegistration=c,t.styleToClassName=l},function(e,t,r){"use strict";function n(){function e(t){for(var r=0,o=t;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)e(a.split(" "));else{var u=s.argsFromClassName(a);u?e(u):-1===n.indexOf(a)&&n.push(a)}else Array.isArray(a)?e(a):"object"==typeof a&&i.push(a)}}for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=[],i=[],s=o.Stylesheet.getInstance();return e(t),{classes:n,objects:i}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.extractStyleParts=n},function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=0,o=e;n<o.length;n++){var i=o[n];if(i)for(var s in i)if(i.hasOwnProperty(s)){var a=r[s],u=i[s];r[s]=void 0===a?u:(Array.isArray(a)?a:[a]).concat(Array.isArray(u)?u:[u])}}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.concatStyleSets=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5);t.mergeStyles=n.mergeStyles;var o=r(12);t.mergeStyleSets=o.mergeStyleSets;var i=r(3);t.concatStyleSets=i.concatStyleSets;var s=r(13);t.fontFace=s.fontFace;var a=r(14);t.keyframes=a.keyframes;var u=r(0);t.InjectionMode=u.InjectionMode,t.Stylesheet=u.Stylesheet},function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.extractStyleParts(e),n=r.classes,s=r.objects;return s.length&&n.push(o.styleToClassName(s)),n.join(" ")}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(2);t.mergeStyles=n},function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r}function i(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function s(e,t){return function(r,n){t(r,n,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(s,a)}u((n=n.apply(e,t||[])).next())})}function c(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[0,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){u.label=r[1];break}if(6===r[0]&&u.label<s[1]){u.label=s[1],s=r;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(r);break}s[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}var o,i,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}function l(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function f(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function v(e,t,r){function n(e){l[e]&&(c[e]=function(t){return new Promise(function(r,n){f.push([e,t,r,n])>1||o(e,t)})})}function o(e,t){try{i(l[e](t))}catch(e){u(f[0][3],e)}}function i(e){e.value instanceof d?Promise.resolve(e.value.v).then(s,a):u(f[0][2],e)}function s(e){o("next",e)}function a(e){o("throw",e)}function u(e,t){e(t),f.shift(),f.length&&o(f[0][0],f[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,l=r.apply(e,t||[]),f=[];return c={},n("next"),n("throw"),n("return"),c[Symbol.asyncIterator]=function(){return this},c}function h(e){function t(t,o){e[t]&&(r[t]=function(r){return(n=!n)?{value:d(e[t](r)),done:"return"===t}:o?o(r):r})}var r,n;return r={},t("next"),t("throw",function(e){throw e}),t("return"),r[Symbol.iterator]=function(){return this},r}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof f?f(e):e[Symbol.iterator]()}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=n,r.d(t,"__assign",function(){return w}),t.__rest=o,t.__decorate=i,t.__param=s,t.__metadata=a,t.__awaiter=u,t.__generator=c,t.__exportStar=l,t.__values=f,t.__read=p,t.__spread=y,t.__await=d,t.__asyncGenerator=v,t.__asyncDelegator=h,t.__asyncValues=_,t.__makeTemplateObject=g,t.__importStar=m,t.__importDefault=b;/*! ***************************************************************************** | ||
var MergeStyles=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=14)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);!function(e){e[e.none=0]="none",e[e.insertNode=1]="insertNode",e[e.appendChild=2]="appendChild"}(t.InjectionMode||(t.InjectionMode={}));var o,i=function(){function e(e){this._config=n.__assign({injectionMode:1,defaultPrefix:"css"},e),this.reset()}return e.getInstance=function(){var t="undefined"!=typeof window?window:{};if(!(o=t.__stylesheet__)){var r=t&&t.FabricConfig||{};o=t.__stylesheet__=new e(r.mergeStyles)}return o},e.prototype.setConfig=function(e){this._config=n.__assign({},this._config,e)},e.prototype.getClassName=function(e){return(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,r,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:r,rules:n}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e){var t=this._getElement();switch(t?this._config.injectionMode:0){case 1:var r=t.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case 2:s(e);break;default:this._rules.push(e)}this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(){return(this._rules.join("")||"")+(this._rulesToInsert.join("")||"")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._timerId&&(clearTimeout(this._timerId),this._timerId=0)},e.prototype._getElement=function(){return this._styleElement||"undefined"==typeof document||(this._styleElement=s()),this._styleElement},e}();function s(e){var t=document.createElement("style");return t.setAttribute("data-merge-styles","true"),t.type="text/css",e&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}t.Stylesheet=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(11),i=r(10),s=r(8),a=r(7),u="displayName";function c(e,t,r){var n="string"==typeof r?r.split(" "):[r];e[t+"Top"]=n[0],e[t+"Right"]=n[1]||n[0],e[t+"Bottom"]=n[2]||n[0],e[t+"Left"]=n[3]||n[1]||n[0]}function f(e){if(!e)return"";var t=[];for(var r in e)e.hasOwnProperty(r)&&r!==u&&void 0!==e[r]&&t.push(r,e[r]);for(var n=0;n<t.length;n+=2)o.kebabRules(t,n),s.provideUnits(t,n),a.rtlifyRules(t,n),i.prefixRules(t,n);for(n=1;n<t.length;n+=4)t.splice(n,1,":",t[n],";");return t.join("")}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function e(t,r,o){void 0===r&&(r={__order:[]}),void 0===o&&(o="&");var i=n.Stylesheet.getInstance(),s=r[o];s||(s={},r[o]=s,r.__order.push(o));for(var a=0,u=t;a<u.length;a++){var f=u[a];if("string"==typeof f){var l=i.argsFromClassName(f);l&&e(l,r,o)}else if(Array.isArray(f))e(f,r,o);else for(var p in f)if("selectors"===p){var d=f.selectors;for(var y in d)if(d.hasOwnProperty(y)){var v=d[y];0===y.indexOf(":global(")?y=y.replace(/:global\(|\)$/g,""):0===y.indexOf("@media")?y=y+"{"+o:0===y.indexOf(":")?y=o+y:y.indexOf("&")<0&&(y=o+" "+y),e([v],r,y)}}else"margin"===p||"padding"===p?c(s,p,f[p]):s[p]=f[p]}return r}(e),o=function(e){for(var t=[],r=!1,n=0,o=e.__order;n<o.length;n++){var i=o[n];t.push(i);var s=e[i];for(var a in s)s.hasOwnProperty(a)&&void 0!==s[a]&&(r=!0,t.push(a,s[a]))}return r?t.join(""):void 0}(r);if(o){var i=n.Stylesheet.getInstance(),s={className:i.classNameFromKey(o),key:o,args:e};if(!s.className){s.className=i.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var a=[],u=0,l=r.__order;u<l.length;u++){var p=l[u];a.push(p,f(r[p]))}s.rulesToInsert=a}return s}}function p(e,t){var r=n.Stylesheet.getInstance(),o=e.className,i=e.key,s=e.args,a=e.rulesToInsert;if(a){for(var u=0;u<a.length;u+=2){var c=a[u+1];if(c){var f=a[u],l=(f=f.replace(/(&)|\$([\w-]+)\b/g,function(r,n,o){return n?"."+e.className:o?"."+(t&&t[o]||o):""}))+"{"+c+"}"+(0===f.indexOf("@media")?"}":"");r.insertRule(l)}}r.cacheClassName(o,i,s,a)}}t.serializeRuleEntries=f,t.styleToRegistration=l,t.applyRegistration=p,t.styleToClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.apply(void 0,e);return r?(p(r),r.className):""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatStyleSets=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=0,o=e;n<o.length;n++){var i=o[n];if(i)for(var s in i)if(i.hasOwnProperty(s)){var a=r[s],u=i[s];r[s]=void 0===a?u:(Array.isArray(a)?a:[a]).concat(Array.isArray(u)?u:[u])}}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.extractStyleParts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=[],o=[],i=n.Stylesheet.getInstance();return function e(t){for(var n=0,s=t;n<s.length;n++){var a=s[n];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)e(a.split(" "));else{var u=i.argsFromClassName(a);u?e(u):-1===r.indexOf(a)&&r.push(a)}else Array.isArray(a)?e(a):"object"==typeof a&&o.push(a)}}(e),{classes:r,objects:o}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(1);t.keyframes=function(e){var t=n.Stylesheet.getInstance(),r=t.getClassName(),i=[];for(var s in e)e.hasOwnProperty(s)&&i.push(s,"{",o.serializeRuleEntries(e[s]),"}");var a=i.join("");return t.insertRule("@keyframes "+r+"{"+a+"}"),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(1);t.fontFace=function(e){n.Stylesheet.getInstance().insertRule("@font-face{"+o.serializeRuleEntries(e)+"}")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),o=r(2),i=r(1);t.mergeStyleSets=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r={},s={},a=e[0];if(a){e.length>1&&(a=o.concatStyleSets.apply(void 0,e));var u=[];for(var c in a)if(a.hasOwnProperty(c)){var f=a[c],l=n.extractStyleParts(f),p=l.classes,d=l.objects,y=i.styleToRegistration({displayName:c},d);u.push(y),y&&(s[c]=y.className,r[c]=p.concat([y.className]).join(" "))}for(var v=0,h=u;v<h.length;v++)(y=h[v])&&i.applyRegistration(y,s)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o="left",i="right",s="@noflip",a=((n={})[o]=i,n[i]=o,n),u={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},c=f();function f(){return void 0===c&&(c="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),c}t.setRTL=function(e){c=e},t.getRTL=f,t.rtlifyRules=function(e,t){if(f()){var r=e[t];if(!r)return;var n=e[t+1];if("string"==typeof n&&n.indexOf(s)>=0)e[t+1]=n.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(o)>=0)e[t]=r.replace(o,i);else if(r.indexOf(i)>=0)e[t]=r.replace(i,o);else if(String(n).indexOf(o)>=0)e[t+1]=n.replace(o,i);else if(String(n).indexOf(i)>=0)e[t+1]=n.replace(i,o);else if(a[r])e[t]=a[r];else if(u[n])e[t+1]=u[n];else switch(r){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(n);break;case"box-shadow":e[t+1]=function(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(-1*n)),r.join(" ")}(n,0)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];t.provideUnits=function(e,t){var r=e[t],o=e[t+1];if("number"==typeof o){var i=-1===n.indexOf(r)?"px":"";e[t+1]=""+o+i}}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getVendorSettings=function(){if(!n){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,r=t?t.userAgent.toLowerCase():void 0;n=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return n},t.setVendorSettings=function(e){n=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),o={"user-select":1};t.prefixRules=function(e,t){var r=n.getVendorSettings(),i=e[t];if(o[i]){var s=e[t+1];o[i]&&(r.isWebkit&&e.push("-webkit-"+i,s),r.isMoz&&e.push("-moz-"+i,s),r.isMs&&e.push("-ms-"+i,s),r.isOpera&&e.push("-o-"+i,s))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kebabRules=function(e,t){e[t]=e[t].replace(/([A-Z])/g,"-$1").toLowerCase()}},function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",function(){return o}),r.d(t,"__assign",function(){return i}),r.d(t,"__rest",function(){return s}),r.d(t,"__decorate",function(){return a}),r.d(t,"__param",function(){return u}),r.d(t,"__metadata",function(){return c}),r.d(t,"__awaiter",function(){return f}),r.d(t,"__generator",function(){return l}),r.d(t,"__exportStar",function(){return p}),r.d(t,"__values",function(){return d}),r.d(t,"__read",function(){return y}),r.d(t,"__spread",function(){return v}),r.d(t,"__await",function(){return h}),r.d(t,"__asyncGenerator",function(){return _}),r.d(t,"__asyncDelegator",function(){return g}),r.d(t,"__asyncValues",function(){return m}),r.d(t,"__makeTemplateObject",function(){return b}),r.d(t,"__importStar",function(){return O}),r.d(t,"__importDefault",function(){return w}); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
@@ -15,2 +16,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
***************************************************************************** */ | ||
var O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}},function(e,t,r){"use strict";function n(e,t){e[t]=e[t].replace(/([A-Z])/g,"-$1").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.kebabRules=n},function(e,t,r){"use strict";function n(e,t){var r=o.getVendorSettings(),n=e[t];if(i[n]){var s=e[t+1];i[n]&&(r.isWebkit&&e.push("-webkit-"+n,s),r.isMoz&&e.push("-moz-"+n,s),r.isMs&&e.push("-ms-"+n,s),r.isOpera&&e.push("-o-"+n,s))}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(9),i={"user-select":1};t.prefixRules=n},function(e,t,r){"use strict";function n(){if(!i){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,r=t?t.userAgent.toLowerCase():void 0;i=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return i}function o(e){i=e}Object.defineProperty(t,"__esModule",{value:!0});var i;t.getVendorSettings=n,t.setVendorSettings=o},function(e,t,r){"use strict";function n(e,t){var r=e[t],n=e[t+1];if("number"==typeof n){var i=-1===o.indexOf(r)?"px":"";e[t+1]=""+n+i}}Object.defineProperty(t,"__esModule",{value:!0});var o=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];t.provideUnits=n},function(e,t,r){"use strict";function n(e){y=e}function o(){return void 0===y&&(y="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),y}function i(e,t){if(o()){var r=e[t];if(!r)return;var n=e[t+1];if("string"==typeof n&&n.indexOf(l)>=0)e[t+1]=n.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(u)>=0)e[t]=r.replace(u,c);else if(r.indexOf(c)>=0)e[t]=r.replace(c,u);else if(String(n).indexOf(u)>=0)e[t+1]=n.replace(u,c);else if(String(n).indexOf(c)>=0)e[t+1]=n.replace(c,u);else if(f[r])e[t]=f[r];else if(p[n])e[t+1]=p[n];else switch(r){case"margin":case"padding":e[t+1]=a(n);break;case"box-shadow":e[t+1]=s(n,0)}}}function s(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(-1*n)),r.join(" ")}function a(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}Object.defineProperty(t,"__esModule",{value:!0});var u="left",c="right",l="@noflip",f=(d={},d[u]=c,d[c]=u,d),p={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},y=o();t.setRTL=n,t.getRTL=o,t.rtlifyRules=i;var d},function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r={},n={},a=e[0];if(a){e.length>1&&(a=i.concatStyleSets.apply(void 0,e));var u=[];for(var c in a)if(a.hasOwnProperty(c)){var l=a[c],f=o.extractStyleParts(l),p=f.classes,y=f.objects,d=s.styleToRegistration({displayName:c},y);u.push(d),d&&(n[c]=d.className,r[c]=p.concat([d.className]).join(" "))}for(var v=0,h=u;v<h.length;v++){var d=h[v];d&&s.applyRegistration(d,n)}}return r}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(3),s=r(1);t.mergeStyleSets=n},function(e,t,r){"use strict";function n(e){o.Stylesheet.getInstance().insertRule("@font-face{"+i.serializeRuleEntries(e)+"}")}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=r(1);t.fontFace=n},function(e,t,r){"use strict";function n(e){var t=o.Stylesheet.getInstance(),r=t.getClassName(),n=[];for(var s in e)e.hasOwnProperty(s)&&n.push(s,"{",i.serializeRuleEntries(e[s]),"}");var a=n.join("");return t.insertRule("@keyframes "+r+"{"+a+"}"),r}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=r(1);t.keyframes=n}]); | ||
var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(s,a)}u((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function p(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function _(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{(r=o[e](t)).value instanceof h?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){e[n]&&(t[n]=function(t){return(r=!r)?{value:h(e[n](t)),done:"return"===n}:o?o(t):t})}}function m(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):d(e)}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(3);t.mergeStyles=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.extractStyleParts(e),i=r.classes,s=r.objects;return s.length&&i.push(n.styleToClassName(s)),i.join(" ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13);t.mergeStyles=n.mergeStyles;var o=r(6);t.mergeStyleSets=o.mergeStyleSets;var i=r(2);t.concatStyleSets=i.concatStyleSets;var s=r(5);t.fontFace=s.fontFace;var a=r(4);t.keyframes=a.keyframes;var u=r(0);t.InjectionMode=u.InjectionMode,t.Stylesheet=u.Stylesheet}]); | ||
//# sourceMappingURL=merge-styles.min.js.map |
@@ -5,10 +5,10 @@ { | ||
"packages/merge-styles/.npmrc": "825c83e09df4dad076d980d1236c532d689edf75", | ||
"packages/merge-styles/CHANGELOG.json": "40961ce315edda256bc01efc39ff6849ef37072b", | ||
"packages/merge-styles/CHANGELOG.md": "360e0937b2fffe20af92088793075c8863d9cfb8", | ||
"packages/merge-styles/CHANGELOG.json": "cceb41e4a2c840b3fffcdbba8f1eee7012cec30b", | ||
"packages/merge-styles/CHANGELOG.md": "57e1c2f1a72fcea89048ac93ab37cbcb8e78645e", | ||
"packages/merge-styles/LICENSE": "310f6231e35c591f17680ffd2f5d4daea754e1f6", | ||
"packages/merge-styles/README.md": "cfab2d1d51b855c569910cc67df8099cb52f8e08", | ||
"packages/merge-styles/README.md": "e76ef60d0f5c8c4a4decd7379ed29bbe877d9340", | ||
"packages/merge-styles/api/merge-styles.api.ts": "eb475fd14c0c8dd11f2ff40a75a4f06d2095f2b7", | ||
"packages/merge-styles/config/api-extractor.json": "9c294e8c13388f8d28d5aa10408fc68cf74723be", | ||
"packages/merge-styles/jest.config.js": "a92c71220a900a5366be5af2cb98d273f3b697d4", | ||
"packages/merge-styles/package.json": "e33db84fbf4e5ad7050f8791ade7e849fa57e20a", | ||
"packages/merge-styles/package.json": "63a56a9f8061a8c414ed08fff9bbbffaa27b80ad", | ||
"packages/merge-styles/src/IRawStyleBase.ts": "c0a2414ee3dcd827a82c1cc9072f9b218da8bf5f", | ||
@@ -47,5 +47,6 @@ "packages/merge-styles/src/IStyle.ts": "770aa641a178f4ade3e75c36c663919cb65d00f9", | ||
"packages/merge-styles/tslint.json": "621ee6ba046052113aa7042fb5bb5323594253ff", | ||
"packages/merge-styles/webpack.config.js": "837a9532ca54effe65c3627c35c7f70611c792cc" | ||
"packages/merge-styles/webpack.config.js": "837a9532ca54effe65c3627c35c7f70611c792cc", | ||
"common/config/rush/npm-shrinkwrap.json": "6508c0add6657f2e29a7984d18f0bb9dda51f1c1" | ||
}, | ||
"arguments": "node ../../scripts/build.js --production" | ||
} |
{ | ||
"name": "@uifabric/merge-styles", | ||
"version": "5.13.0", | ||
"version": "5.14.0", | ||
"description": "Office UI Fabric style loading utilities.", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"module": "lib-es2015/index.js", | ||
"typings": "lib-es2015/index.d.ts", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -8,0 +10,0 @@ "type": "git", |
@@ -207,3 +207,3 @@ # [merge-styles](http://dev.office.com/fabric) | ||
selectors: { | ||
':global(button): { | ||
':global(button)': { | ||
overflow: 'visible' | ||
@@ -213,2 +213,3 @@ } | ||
} | ||
``` | ||
@@ -215,0 +216,0 @@ ### Media queries |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1068991
177
9376
429