favesalon-embed 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{favesalon-embed/_commonjsHelpers-9bc404fc.js → cjs/_commonjsHelpers-5cfcba41.js} +6 -14
- package/dist/cjs/chat-box_5.cjs.entry.js +17439 -0
- package/dist/cjs/chat-button.cjs.entry.js +55 -0
- package/dist/cjs/colors-38421769.js +69 -0
- package/dist/cjs/favesalon-embed.cjs.js +23 -0
- package/dist/cjs/google-map.cjs.entry.js +52 -0
- package/dist/{favesalon-embed/index-ac52896a.js → cjs/index-7f190886.js} +47 -454
- package/dist/cjs/index-dd8176c4.js +1531 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/relativeTime-3721080d.js +9 -0
- package/dist/cjs/salon-booking-modal.cjs.entry.js +30 -0
- package/dist/cjs/salon-booking.cjs.entry.js +51 -0
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +29 -0
- package/dist/cjs/salon-gift-card.cjs.entry.js +51 -0
- package/dist/cjs/salon-info.cjs.entry.js +33 -0
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +97 -0
- package/dist/cjs/salon-latest-styles_3.cjs.entry.js +241 -0
- package/dist/cjs/salon-lookbook.cjs.entry.js +222 -0
- package/dist/cjs/salon-ranking.cjs.entry.js +60 -0
- package/dist/cjs/salon-reviews.cjs.entry.js +193 -0
- package/dist/cjs/salon-services.cjs.entry.js +81 -0
- package/dist/cjs/salon-stylists.cjs.entry.js +118 -0
- package/dist/{favesalon-embed/services-7cb8f2a6.js → cjs/services-d1bdf299.js} +55 -2415
- package/dist/cjs/style-detail.cjs.entry.js +312 -0
- package/dist/cjs/utils-c5a33b3c.js +23 -0
- package/dist/collection/collection-manifest.json +33 -0
- package/dist/collection/components/chat-box/index.css +105 -0
- package/dist/collection/components/chat-box/index.js +138 -0
- package/dist/collection/components/chat-button/index.css +101 -0
- package/dist/collection/components/chat-button/index.js +155 -0
- package/dist/collection/components/chat-form/index.css +40 -0
- package/dist/collection/components/chat-form/index.js +79 -0
- package/dist/collection/components/chat-messages/index.css +48 -0
- package/dist/collection/components/chat-messages/index.js +142 -0
- package/dist/collection/components/chat-rooms/index.css +102 -0
- package/dist/collection/components/chat-rooms/index.js +157 -0
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/dist/collection/components/google-map/index.css +5 -0
- package/dist/collection/components/google-map/index.js +90 -0
- package/dist/collection/components/salon-booking/index.css +30 -0
- package/dist/collection/components/salon-booking/index.js +126 -0
- package/dist/collection/components/salon-booking/salon-booking-modal.js +92 -0
- package/dist/collection/components/salon-gift-card/index.css +30 -0
- package/dist/collection/components/salon-gift-card/index.js +126 -0
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +73 -0
- package/dist/collection/components/salon-info/index.css +1 -0
- package/dist/collection/components/salon-info/index.js +77 -0
- package/dist/collection/components/salon-latest-reviews/index.css +11 -0
- package/dist/collection/components/salon-latest-reviews/index.js +163 -0
- package/dist/collection/components/salon-latest-styles/index.css +12 -0
- package/dist/{favesalon-embed/salon-latest-styles.entry.js → collection/components/salon-latest-styles/index.js} +99 -14
- package/dist/collection/components/salon-locations/index.css +24 -0
- package/dist/{favesalon-embed/salon-locations.entry.js → collection/components/salon-locations/index.js} +95 -15
- package/dist/collection/components/salon-lookbook/index.css +15 -0
- package/dist/collection/components/salon-lookbook/index.js +368 -0
- package/dist/collection/components/salon-ranking/index.css +3 -0
- package/dist/collection/components/salon-ranking/index.js +117 -0
- package/dist/collection/components/salon-reviews/index.css +18 -0
- package/dist/collection/components/salon-reviews/index.js +249 -0
- package/dist/collection/components/salon-schedules/index.css +18 -0
- package/dist/{favesalon-embed/salon-schedules.entry.js → collection/components/salon-schedules/index.js} +95 -14
- package/dist/collection/components/salon-services/index.css +1 -0
- package/dist/collection/components/salon-services/index.js +146 -0
- package/dist/collection/components/salon-stylists/index.css +43 -0
- package/dist/collection/components/salon-stylists/index.js +184 -0
- package/dist/collection/components/style-detail/index.css +76 -0
- package/dist/collection/components/style-detail/index.js +386 -0
- package/dist/collection/components/user-avatar/index.css +0 -0
- package/dist/collection/components/user-avatar/index.js +159 -0
- package/dist/collection/constants/colors.js +65 -0
- package/dist/collection/global/global.js +0 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/mocks/users.js +10 -0
- package/dist/collection/services/services.js +295 -0
- package/dist/collection/types/chat.js +23 -0
- package/dist/collection/types/common.js +11 -0
- package/dist/collection/types/review.js +39 -0
- package/dist/collection/types/salon.js +58 -0
- package/dist/collection/types/service.js +24 -0
- package/dist/collection/types/style.js +128 -0
- package/dist/collection/types/stylist.js +30 -0
- package/dist/collection/types/user.js +10 -0
- package/dist/collection/utils/utils.js +23 -0
- package/dist/custom-elements/index.js +44974 -0
- package/dist/{favesalon-embed/_commonjsHelpers-a4f66ccd.js → esm/_commonjsHelpers-66ac50f5.js} +2 -14
- package/dist/{favesalon-embed/chat-rooms.entry.js → esm/chat-box_5.entry.js} +182 -30
- package/dist/{favesalon-embed → esm}/chat-button.entry.js +3 -3
- package/dist/esm/favesalon-embed.js +18 -0
- package/dist/{favesalon-embed → esm}/google-map.entry.js +1 -1
- package/dist/esm/index-0494771f.js +1504 -0
- package/dist/{favesalon-embed/index-00b83e1c.js → esm/index-a1c7583c.js} +15 -425
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/relativeTime-baa50aa2.js +7 -0
- package/dist/{favesalon-embed → esm}/salon-booking-modal.entry.js +1 -1
- package/dist/{favesalon-embed → esm}/salon-booking.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-gift-card-modal.entry.js +1 -1
- package/dist/{favesalon-embed → esm}/salon-gift-card.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-info.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-latest-reviews.entry.js +4 -4
- package/dist/esm/salon-latest-styles_3.entry.js +235 -0
- package/dist/{favesalon-embed → esm}/salon-lookbook.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-ranking.entry.js +1 -1
- package/dist/{favesalon-embed → esm}/salon-reviews.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-services.entry.js +3 -3
- package/dist/{favesalon-embed → esm}/salon-stylists.entry.js +3 -3
- package/dist/{favesalon-embed/services-7c46a2fd.js → esm/services-257442e2.js} +99 -2467
- package/dist/{favesalon-embed → esm}/style-detail.entry.js +4 -4
- package/dist/{favesalon-embed/utils-2c19db45.js → esm/utils-e97485e0.js} +0 -6
- package/dist/favesalon-embed/favesalon-embed.css +1 -2439
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -148
- package/dist/favesalon-embed/index.esm.js +0 -1
- package/dist/favesalon-embed/p-05a1c88a.entry.js +1 -0
- package/dist/favesalon-embed/p-0acf0447.entry.js +1 -0
- package/dist/favesalon-embed/p-0bc4f624.js +1 -0
- package/dist/favesalon-embed/p-1af1515f.entry.js +1 -0
- package/dist/favesalon-embed/p-1cba5fc9.entry.js +1 -0
- package/dist/favesalon-embed/p-39a4ef15.entry.js +1 -0
- package/dist/favesalon-embed/p-3e2cb05b.entry.js +1 -0
- package/dist/favesalon-embed/p-47e646f8.js +1 -0
- package/dist/favesalon-embed/p-487b311f.entry.js +1 -0
- package/dist/favesalon-embed/p-55387c2f.entry.js +1 -0
- package/dist/favesalon-embed/p-566f05b4.entry.js +1 -0
- package/dist/favesalon-embed/p-862a0de0.entry.js +1 -0
- package/dist/favesalon-embed/p-9fe0cbeb.js +2 -0
- package/dist/favesalon-embed/p-a33331cc.js +1 -0
- package/dist/favesalon-embed/p-aeeb7b5f.entry.js +1 -0
- package/dist/favesalon-embed/p-b08e5b54.js +6 -0
- package/dist/favesalon-embed/p-b5cca5fc.entry.js +1 -0
- package/dist/favesalon-embed/p-c7fb7af5.js +1580 -0
- package/dist/favesalon-embed/p-ccab56d8.js +1 -0
- package/dist/favesalon-embed/p-d6e13053.entry.js +1 -0
- package/dist/favesalon-embed/p-dee42d34.entry.js +1 -0
- package/dist/favesalon-embed/p-e661ca1d.entry.js +1 -0
- package/dist/favesalon-embed/p-eeceab9c.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/dist/favesalon-embed/app-globals-437cc3f3.js +0 -712
- package/dist/favesalon-embed/app-globals-60769a2c.js +0 -712
- package/dist/favesalon-embed/chat-box.entry.js +0 -54
- package/dist/favesalon-embed/chat-form.entry.js +0 -39
- package/dist/favesalon-embed/chat-messages.entry.js +0 -53
- package/dist/favesalon-embed/css-shim-b7d3d95f.js +0 -4
- package/dist/favesalon-embed/dom-64053c71.js +0 -73
- package/dist/favesalon-embed/index-04c09911.js +0 -3371
- package/dist/favesalon-embed/index-888e99e3.js +0 -3371
- package/dist/favesalon-embed/isObject-13b86c17.js +0 -203
- package/dist/favesalon-embed/relativeTime-15477f02.js +0 -7
- package/dist/favesalon-embed/relativeTime-268e64b0.js +0 -7
- package/dist/favesalon-embed/services-55a87166.js +0 -23655
- package/dist/favesalon-embed/shadow-css-98135883.js +0 -387
- package/dist/favesalon-embed/user-avatar.entry.js +0 -50
- /package/dist/{favesalon-embed → esm}/colors-ea36347a.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const _commonjsHelpers = require('./_commonjsHelpers-5cfcba41.js');
|
|
2
4
|
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
5
|
var colorName = {
|
|
6
6
|
"aliceblue": [240, 248, 255],
|
|
7
7
|
"antiquewhite": [250, 235, 215],
|
|
@@ -163,8 +163,7 @@ var isArrayish = function isArrayish(obj) {
|
|
|
163
163
|
(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
var simpleSwizzle = createCommonjsModule(function (module) {
|
|
167
|
-
'use strict';
|
|
166
|
+
var simpleSwizzle = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
168
167
|
|
|
169
168
|
|
|
170
169
|
|
|
@@ -195,7 +194,7 @@ swizzle.wrap = function (fn) {
|
|
|
195
194
|
};
|
|
196
195
|
});
|
|
197
196
|
|
|
198
|
-
var colorString = createCommonjsModule(function (module) {
|
|
197
|
+
var colorString = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
199
198
|
/* MIT license */
|
|
200
199
|
|
|
201
200
|
|
|
@@ -1931,8 +1930,6 @@ object-assign
|
|
|
1931
1930
|
(c) Sindre Sorhus
|
|
1932
1931
|
@license MIT
|
|
1933
1932
|
*/
|
|
1934
|
-
|
|
1935
|
-
'use strict';
|
|
1936
1933
|
/* eslint-disable no-unused-vars */
|
|
1937
1934
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1938
1935
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2017,8 +2014,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
2017
2014
|
return to;
|
|
2018
2015
|
};
|
|
2019
2016
|
|
|
2020
|
-
var sheet = createCommonjsModule(function (module, exports) {
|
|
2021
|
-
'use strict';
|
|
2017
|
+
var sheet = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
2022
2018
|
|
|
2023
2019
|
Object.defineProperty(exports, "__esModule", {
|
|
2024
2020
|
value: true
|
|
@@ -2077,8 +2073,7 @@ function sheetForTag(tag) {
|
|
|
2077
2073
|
}
|
|
2078
2074
|
|
|
2079
2075
|
var isBrowser = typeof window !== 'undefined';
|
|
2080
|
-
var
|
|
2081
|
-
var isTest = "development" === 'test';
|
|
2076
|
+
var isTest = "production" === 'test';
|
|
2082
2077
|
|
|
2083
2078
|
var oldIE = function () {
|
|
2084
2079
|
if (isBrowser) {
|
|
@@ -2100,7 +2095,7 @@ function makeStyleTag() {
|
|
|
2100
2095
|
function StyleSheet() {
|
|
2101
2096
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
2102
2097
|
_ref$speedy = _ref.speedy,
|
|
2103
|
-
speedy = _ref$speedy === undefined ? !
|
|
2098
|
+
speedy = _ref$speedy === undefined ? !isTest : _ref$speedy,
|
|
2104
2099
|
_ref$maxLength = _ref.maxLength,
|
|
2105
2100
|
maxLength = _ref$maxLength === undefined ? isBrowser && oldIE ? 4000 : 65000 : _ref$maxLength;
|
|
2106
2101
|
|
|
@@ -2149,10 +2144,6 @@ function StyleSheet() {
|
|
|
2149
2144
|
var sheet = this.getSheet();
|
|
2150
2145
|
sheet.insertRule(rule, rule.indexOf('@import') !== -1 ? 0 : sheet.cssRules.length);
|
|
2151
2146
|
} catch (e) {
|
|
2152
|
-
if (isDev) {
|
|
2153
|
-
// might need beter dx for this
|
|
2154
|
-
console.warn('whoops, illegal rule inserted', rule); //eslint-disable-line no-console
|
|
2155
|
-
}
|
|
2156
2147
|
}
|
|
2157
2148
|
},
|
|
2158
2149
|
insert: function insert(rule) {
|
|
@@ -2252,78 +2243,7 @@ function StyleSheet() {
|
|
|
2252
2243
|
});
|
|
2253
2244
|
});
|
|
2254
2245
|
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
"use strict";
|
|
2258
|
-
|
|
2259
|
-
/**
|
|
2260
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2261
|
-
*
|
|
2262
|
-
* This source code is licensed under the MIT license found in the
|
|
2263
|
-
* LICENSE file in the root directory of this source tree.
|
|
2264
|
-
*
|
|
2265
|
-
* @typechecks
|
|
2266
|
-
*/
|
|
2267
|
-
|
|
2268
|
-
var _hyphenPattern = /-(.)/g;
|
|
2269
|
-
|
|
2270
|
-
/**
|
|
2271
|
-
* Camelcases a hyphenated string, for example:
|
|
2272
|
-
*
|
|
2273
|
-
* > camelize('background-color')
|
|
2274
|
-
* < "backgroundColor"
|
|
2275
|
-
*
|
|
2276
|
-
* @param {string} string
|
|
2277
|
-
* @return {string}
|
|
2278
|
-
*/
|
|
2279
|
-
function camelize(string) {
|
|
2280
|
-
return string.replace(_hyphenPattern, function (_, character) {
|
|
2281
|
-
return character.toUpperCase();
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
var camelize_1 = camelize;
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2289
|
-
*
|
|
2290
|
-
* This source code is licensed under the MIT license found in the
|
|
2291
|
-
* LICENSE file in the root directory of this source tree.
|
|
2292
|
-
*
|
|
2293
|
-
* @typechecks
|
|
2294
|
-
*/
|
|
2295
|
-
|
|
2296
|
-
'use strict';
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
var msPattern$2 = /^-ms-/;
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* Camelcases a hyphenated CSS property name, for example:
|
|
2304
|
-
*
|
|
2305
|
-
* > camelizeStyleName('background-color')
|
|
2306
|
-
* < "backgroundColor"
|
|
2307
|
-
* > camelizeStyleName('-moz-transition')
|
|
2308
|
-
* < "MozTransition"
|
|
2309
|
-
* > camelizeStyleName('-ms-transition')
|
|
2310
|
-
* < "msTransition"
|
|
2311
|
-
*
|
|
2312
|
-
* As Andi Smith suggests
|
|
2313
|
-
* (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
|
|
2314
|
-
* is converted to lowercase `ms`.
|
|
2315
|
-
*
|
|
2316
|
-
* @param {string} string
|
|
2317
|
-
* @return {string}
|
|
2318
|
-
*/
|
|
2319
|
-
function camelizeStyleName(string) {
|
|
2320
|
-
return camelize_1(string.replace(msPattern$2, 'ms-'));
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
var camelizeStyleName_1 = camelizeStyleName;
|
|
2324
|
-
|
|
2325
|
-
var CSSProperty_1 = createCommonjsModule(function (module, exports) {
|
|
2326
|
-
'use strict';
|
|
2246
|
+
var CSSProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
2327
2247
|
|
|
2328
2248
|
Object.defineProperty(exports, "__esModule", {
|
|
2329
2249
|
value: true
|
|
@@ -2479,110 +2399,7 @@ var CSSProperty = {
|
|
|
2479
2399
|
exports.default = CSSProperty;
|
|
2480
2400
|
});
|
|
2481
2401
|
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
"use strict";
|
|
2485
|
-
|
|
2486
|
-
/**
|
|
2487
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2488
|
-
*
|
|
2489
|
-
* This source code is licensed under the MIT license found in the
|
|
2490
|
-
* LICENSE file in the root directory of this source tree.
|
|
2491
|
-
*
|
|
2492
|
-
*
|
|
2493
|
-
*/
|
|
2494
|
-
|
|
2495
|
-
function makeEmptyFunction(arg) {
|
|
2496
|
-
return function () {
|
|
2497
|
-
return arg;
|
|
2498
|
-
};
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
/**
|
|
2502
|
-
* This function accepts and discards inputs; it has no side effects. This is
|
|
2503
|
-
* primarily useful idiomatically for overridable function endpoints which
|
|
2504
|
-
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
|
2505
|
-
*/
|
|
2506
|
-
var emptyFunction = function emptyFunction() {};
|
|
2507
|
-
|
|
2508
|
-
emptyFunction.thatReturns = makeEmptyFunction;
|
|
2509
|
-
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
2510
|
-
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
2511
|
-
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
2512
|
-
emptyFunction.thatReturnsThis = function () {
|
|
2513
|
-
return this;
|
|
2514
|
-
};
|
|
2515
|
-
emptyFunction.thatReturnsArgument = function (arg) {
|
|
2516
|
-
return arg;
|
|
2517
|
-
};
|
|
2518
|
-
|
|
2519
|
-
var emptyFunction_1 = emptyFunction;
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2523
|
-
*
|
|
2524
|
-
* This source code is licensed under the MIT license found in the
|
|
2525
|
-
* LICENSE file in the root directory of this source tree.
|
|
2526
|
-
*
|
|
2527
|
-
*/
|
|
2528
|
-
|
|
2529
|
-
'use strict';
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
/**
|
|
2534
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
2535
|
-
* This can be used to log issues in development environments in critical
|
|
2536
|
-
* paths. Removing the logging code for production environments will keep the
|
|
2537
|
-
* same logic and follow the same code paths.
|
|
2538
|
-
*/
|
|
2539
|
-
|
|
2540
|
-
var warning = emptyFunction_1;
|
|
2541
|
-
|
|
2542
|
-
if ("development" !== 'production') {
|
|
2543
|
-
var printWarning = function printWarning(format) {
|
|
2544
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2545
|
-
args[_key - 1] = arguments[_key];
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
var argIndex = 0;
|
|
2549
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
2550
|
-
return args[argIndex++];
|
|
2551
|
-
});
|
|
2552
|
-
if (typeof console !== 'undefined') {
|
|
2553
|
-
console.error(message);
|
|
2554
|
-
}
|
|
2555
|
-
try {
|
|
2556
|
-
// --- Welcome to debugging React ---
|
|
2557
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
2558
|
-
// to find the callsite that caused this warning to fire.
|
|
2559
|
-
throw new Error(message);
|
|
2560
|
-
} catch (x) {}
|
|
2561
|
-
};
|
|
2562
|
-
|
|
2563
|
-
warning = function warning(condition, format) {
|
|
2564
|
-
if (format === undefined) {
|
|
2565
|
-
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
if (format.indexOf('Failed Composite propType: ') === 0) {
|
|
2569
|
-
return; // Ignore CompositeComponent proptype check.
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
if (!condition) {
|
|
2573
|
-
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
2574
|
-
args[_key2 - 2] = arguments[_key2];
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
printWarning.apply(undefined, [format].concat(args));
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
var warning_1 = warning;
|
|
2583
|
-
|
|
2584
|
-
var dangerousStyleValue_1 = createCommonjsModule(function (module, exports) {
|
|
2585
|
-
'use strict';
|
|
2402
|
+
var dangerousStyleValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
2586
2403
|
|
|
2587
2404
|
Object.defineProperty(exports, "__esModule", {
|
|
2588
2405
|
value: true
|
|
@@ -2592,10 +2409,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2592
2409
|
|
|
2593
2410
|
var _CSSProperty2 = _interopRequireDefault(CSSProperty_1);
|
|
2594
2411
|
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
var _warning2 = _interopRequireDefault(warning_1);
|
|
2598
|
-
|
|
2599
2412
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2600
2413
|
|
|
2601
2414
|
/**
|
|
@@ -2610,7 +2423,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
2610
2423
|
*/
|
|
2611
2424
|
|
|
2612
2425
|
var isUnitlessNumber = _CSSProperty2.default.isUnitlessNumber;
|
|
2613
|
-
var styleWarnings = {};
|
|
2614
2426
|
|
|
2615
2427
|
/**
|
|
2616
2428
|
* Convert a value into the proper css writable value. The style name `name`
|
|
@@ -2644,28 +2456,6 @@ function dangerousStyleValue(name, value, component) {
|
|
|
2644
2456
|
}
|
|
2645
2457
|
|
|
2646
2458
|
if (typeof value === 'string') {
|
|
2647
|
-
if ("development" !== 'production') {
|
|
2648
|
-
// Allow '0' to pass through without warning. 0 is already special and
|
|
2649
|
-
// doesn't require units, so we don't need to warn about it.
|
|
2650
|
-
if (component && value !== '0') {
|
|
2651
|
-
var owner = component._currentElement._owner;
|
|
2652
|
-
var ownerName = owner ? owner.getName() : null;
|
|
2653
|
-
if (ownerName && !styleWarnings[ownerName]) {
|
|
2654
|
-
styleWarnings[ownerName] = {};
|
|
2655
|
-
}
|
|
2656
|
-
var warned = false;
|
|
2657
|
-
if (ownerName) {
|
|
2658
|
-
var warnings = styleWarnings[ownerName];
|
|
2659
|
-
warned = warnings[name];
|
|
2660
|
-
if (!warned) {
|
|
2661
|
-
warnings[name] = true;
|
|
2662
|
-
}
|
|
2663
|
-
}
|
|
2664
|
-
if (!warned) {
|
|
2665
|
-
"development" !== 'production' ? (0, _warning2.default)(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0;
|
|
2666
|
-
}
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
2459
|
value = value.trim();
|
|
2670
2460
|
}
|
|
2671
2461
|
return value + 'px';
|
|
@@ -2674,10 +2464,6 @@ function dangerousStyleValue(name, value, component) {
|
|
|
2674
2464
|
exports.default = dangerousStyleValue;
|
|
2675
2465
|
});
|
|
2676
2466
|
|
|
2677
|
-
const dangerousStyleValue = /*@__PURE__*/getDefaultExportFromCjs(dangerousStyleValue_1);
|
|
2678
|
-
|
|
2679
|
-
'use strict';
|
|
2680
|
-
|
|
2681
2467
|
/**
|
|
2682
2468
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2683
2469
|
*
|
|
@@ -2707,19 +2493,6 @@ function hyphenate(string) {
|
|
|
2707
2493
|
|
|
2708
2494
|
var hyphenate_1 = hyphenate;
|
|
2709
2495
|
|
|
2710
|
-
/**
|
|
2711
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2712
|
-
*
|
|
2713
|
-
* This source code is licensed under the MIT license found in the
|
|
2714
|
-
* LICENSE file in the root directory of this source tree.
|
|
2715
|
-
*
|
|
2716
|
-
* @typechecks
|
|
2717
|
-
*/
|
|
2718
|
-
|
|
2719
|
-
'use strict';
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
2496
|
var msPattern$1 = /^ms-/;
|
|
2724
2497
|
|
|
2725
2498
|
/**
|
|
@@ -2754,8 +2527,6 @@ var hyphenateStyleName_1 = hyphenateStyleName$2;
|
|
|
2754
2527
|
* @typechecks static-only
|
|
2755
2528
|
*/
|
|
2756
2529
|
|
|
2757
|
-
'use strict';
|
|
2758
|
-
|
|
2759
2530
|
/**
|
|
2760
2531
|
* Memoizes the return value of a function that accepts one string argument.
|
|
2761
2532
|
*/
|
|
@@ -2772,8 +2543,7 @@ function memoizeStringOnly(callback) {
|
|
|
2772
2543
|
|
|
2773
2544
|
var memoizeStringOnly_1 = memoizeStringOnly;
|
|
2774
2545
|
|
|
2775
|
-
var CSSPropertyOperations = createCommonjsModule(function (module, exports) {
|
|
2776
|
-
'use strict';
|
|
2546
|
+
var CSSPropertyOperations = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
2777
2547
|
|
|
2778
2548
|
Object.defineProperty(exports, "__esModule", {
|
|
2779
2549
|
value: true
|
|
@@ -2783,10 +2553,6 @@ exports.createMarkupForStyles = createMarkupForStyles;
|
|
|
2783
2553
|
|
|
2784
2554
|
|
|
2785
2555
|
|
|
2786
|
-
var _camelizeStyleName2 = _interopRequireDefault(camelizeStyleName_1);
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
2556
|
var _dangerousStyleValue2 = _interopRequireDefault(dangerousStyleValue_1);
|
|
2791
2557
|
|
|
2792
2558
|
|
|
@@ -2797,10 +2563,6 @@ var _hyphenateStyleName2 = _interopRequireDefault(hyphenateStyleName_1);
|
|
|
2797
2563
|
|
|
2798
2564
|
var _memoizeStringOnly2 = _interopRequireDefault(memoizeStringOnly_1);
|
|
2799
2565
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
var _warning2 = _interopRequireDefault(warning_1);
|
|
2803
|
-
|
|
2804
2566
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2805
2567
|
|
|
2806
2568
|
var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.default)(_hyphenateStyleName2.default); /**
|
|
@@ -2814,88 +2576,6 @@ var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.defaul
|
|
|
2814
2576
|
* @providesModule CSSPropertyOperations
|
|
2815
2577
|
*/
|
|
2816
2578
|
|
|
2817
|
-
if ("development" !== 'production') {
|
|
2818
|
-
// 'msTransform' is correct, but the other prefixes should be capitalized
|
|
2819
|
-
var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
|
|
2820
|
-
|
|
2821
|
-
// style values shouldn't contain a semicolon
|
|
2822
|
-
var badStyleValueWithSemicolonPattern = /;\s*$/;
|
|
2823
|
-
|
|
2824
|
-
var warnedStyleNames = {};
|
|
2825
|
-
var warnedStyleValues = {};
|
|
2826
|
-
var warnedForNaNValue = false;
|
|
2827
|
-
|
|
2828
|
-
var warnHyphenatedStyleName = function warnHyphenatedStyleName(name, owner) {
|
|
2829
|
-
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
|
|
2830
|
-
return;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
warnedStyleNames[name] = true;
|
|
2834
|
-
"development" !== 'production' ? (0, _warning2.default)(false, 'Unsupported style property %s. Did you mean %s?%s', name, (0, _camelizeStyleName2.default)(name), checkRenderMessage(owner)) : void 0;
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
|
-
var warnBadVendoredStyleName = function warnBadVendoredStyleName(name, owner) {
|
|
2838
|
-
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
|
|
2839
|
-
return;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
warnedStyleNames[name] = true;
|
|
2843
|
-
"development" !== 'production' ? (0, _warning2.default)(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;
|
|
2844
|
-
};
|
|
2845
|
-
|
|
2846
|
-
var warnStyleValueWithSemicolon = function warnStyleValueWithSemicolon(name, value, owner) {
|
|
2847
|
-
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
|
|
2848
|
-
return;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
warnedStyleValues[value] = true;
|
|
2852
|
-
"development" !== 'production' ? (0, _warning2.default)(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
|
|
2853
|
-
};
|
|
2854
|
-
|
|
2855
|
-
var warnStyleValueIsNaN = function warnStyleValueIsNaN(name, value, owner) {
|
|
2856
|
-
if (warnedForNaNValue) {
|
|
2857
|
-
return;
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
warnedForNaNValue = true;
|
|
2861
|
-
"development" !== 'production' ? (0, _warning2.default)(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
|
|
2862
|
-
};
|
|
2863
|
-
|
|
2864
|
-
var checkRenderMessage = function checkRenderMessage(owner) {
|
|
2865
|
-
if (owner) {
|
|
2866
|
-
var name = owner.getName();
|
|
2867
|
-
if (name) {
|
|
2868
|
-
return ' Check the render method of `' + name + '`.';
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
return '';
|
|
2872
|
-
};
|
|
2873
|
-
|
|
2874
|
-
/**
|
|
2875
|
-
* @param {string} name
|
|
2876
|
-
* @param {*} value
|
|
2877
|
-
* @param {ReactDOMComponent} component
|
|
2878
|
-
*/
|
|
2879
|
-
var warnValidStyle = function warnValidStyle(name, value, component) {
|
|
2880
|
-
//eslint-disable-line no-var
|
|
2881
|
-
var owner = void 0;
|
|
2882
|
-
if (component) {
|
|
2883
|
-
owner = component._currentElement._owner;
|
|
2884
|
-
}
|
|
2885
|
-
if (name.indexOf('-') > -1) {
|
|
2886
|
-
warnHyphenatedStyleName(name, owner);
|
|
2887
|
-
} else if (badVendoredStyleNamePattern.test(name)) {
|
|
2888
|
-
warnBadVendoredStyleName(name, owner);
|
|
2889
|
-
} else if (badStyleValueWithSemicolonPattern.test(value)) {
|
|
2890
|
-
warnStyleValueWithSemicolon(name, value, owner);
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
if (typeof value === 'number' && isNaN(value)) {
|
|
2894
|
-
warnStyleValueIsNaN(name, value, owner);
|
|
2895
|
-
}
|
|
2896
|
-
};
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
2579
|
/**
|
|
2900
2580
|
* Serializes a mapping of style properties for use as inline styles:
|
|
2901
2581
|
*
|
|
@@ -2921,9 +2601,6 @@ function createMarkupForStyles(styles, component) {
|
|
|
2921
2601
|
continue;
|
|
2922
2602
|
}
|
|
2923
2603
|
var styleValue = styles[styleName];
|
|
2924
|
-
if ("development" !== 'production' && !isCustomProp) {
|
|
2925
|
-
warnValidStyle(styleName, styleValue, component);
|
|
2926
|
-
}
|
|
2927
2604
|
if (styleValue != null) {
|
|
2928
2605
|
if (isCustomProp) {
|
|
2929
2606
|
serialized += styleName + ':' + styleValue + ';';
|
|
@@ -2937,10 +2614,7 @@ function createMarkupForStyles(styles, component) {
|
|
|
2937
2614
|
}
|
|
2938
2615
|
});
|
|
2939
2616
|
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
var clean_1 = createCommonjsModule(function (module, exports) {
|
|
2943
|
-
'use strict';
|
|
2617
|
+
var clean_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
2944
2618
|
|
|
2945
2619
|
Object.defineProperty(exports, "__esModule", {
|
|
2946
2620
|
value: true
|
|
@@ -2996,10 +2670,7 @@ function clean(input) {
|
|
|
2996
2670
|
}
|
|
2997
2671
|
});
|
|
2998
2672
|
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
var staticData = createCommonjsModule(function (module, exports) {
|
|
3002
|
-
"use strict";
|
|
2673
|
+
var staticData = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3003
2674
|
|
|
3004
2675
|
Object.defineProperty(exports, "__esModule", {
|
|
3005
2676
|
value: true
|
|
@@ -3019,10 +2690,7 @@ exports.default = {
|
|
|
3019
2690
|
module.exports = exports["default"];
|
|
3020
2691
|
});
|
|
3021
2692
|
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
var capitalizeString_1 = createCommonjsModule(function (module, exports) {
|
|
3025
|
-
"use strict";
|
|
2693
|
+
var capitalizeString_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3026
2694
|
|
|
3027
2695
|
Object.defineProperty(exports, "__esModule", {
|
|
3028
2696
|
value: true
|
|
@@ -3034,10 +2702,7 @@ function capitalizeString(str) {
|
|
|
3034
2702
|
module.exports = exports["default"];
|
|
3035
2703
|
});
|
|
3036
2704
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
var prefixProperty_1 = createCommonjsModule(function (module, exports) {
|
|
3040
|
-
'use strict';
|
|
2705
|
+
var prefixProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3041
2706
|
|
|
3042
2707
|
Object.defineProperty(exports, "__esModule", {
|
|
3043
2708
|
value: true
|
|
@@ -3061,10 +2726,7 @@ function prefixProperty(prefixProperties, property, style) {
|
|
|
3061
2726
|
module.exports = exports['default'];
|
|
3062
2727
|
});
|
|
3063
2728
|
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
var prefixValue_1 = createCommonjsModule(function (module, exports) {
|
|
3067
|
-
"use strict";
|
|
2729
|
+
var prefixValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3068
2730
|
|
|
3069
2731
|
Object.defineProperty(exports, "__esModule", {
|
|
3070
2732
|
value: true
|
|
@@ -3084,10 +2746,7 @@ function prefixValue(plugins, property, value, style, metaData) {
|
|
|
3084
2746
|
module.exports = exports["default"];
|
|
3085
2747
|
});
|
|
3086
2748
|
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
var cursor_1 = createCommonjsModule(function (module, exports) {
|
|
3090
|
-
'use strict';
|
|
2749
|
+
var cursor_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3091
2750
|
|
|
3092
2751
|
Object.defineProperty(exports, "__esModule", {
|
|
3093
2752
|
value: true
|
|
@@ -3112,10 +2771,7 @@ function cursor(property, value) {
|
|
|
3112
2771
|
module.exports = exports['default'];
|
|
3113
2772
|
});
|
|
3114
2773
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
var isPrefixedValue_1 = createCommonjsModule(function (module, exports) {
|
|
3118
|
-
'use strict';
|
|
2774
|
+
var isPrefixedValue_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3119
2775
|
|
|
3120
2776
|
Object.defineProperty(exports, "__esModule", {
|
|
3121
2777
|
value: true
|
|
@@ -3129,10 +2785,7 @@ function isPrefixedValue(value) {
|
|
|
3129
2785
|
module.exports = exports['default'];
|
|
3130
2786
|
});
|
|
3131
2787
|
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
var crossFade_1 = createCommonjsModule(function (module, exports) {
|
|
3135
|
-
'use strict';
|
|
2788
|
+
var crossFade_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3136
2789
|
|
|
3137
2790
|
Object.defineProperty(exports, "__esModule", {
|
|
3138
2791
|
value: true
|
|
@@ -3157,10 +2810,7 @@ function crossFade(property, value) {
|
|
|
3157
2810
|
module.exports = exports['default'];
|
|
3158
2811
|
});
|
|
3159
2812
|
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
var filter_1 = createCommonjsModule(function (module, exports) {
|
|
3163
|
-
'use strict';
|
|
2813
|
+
var filter_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3164
2814
|
|
|
3165
2815
|
Object.defineProperty(exports, "__esModule", {
|
|
3166
2816
|
value: true
|
|
@@ -3185,10 +2835,7 @@ function filter(property, value) {
|
|
|
3185
2835
|
module.exports = exports['default'];
|
|
3186
2836
|
});
|
|
3187
2837
|
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
var flex_1 = createCommonjsModule(function (module, exports) {
|
|
3191
|
-
'use strict';
|
|
2838
|
+
var flex_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3192
2839
|
|
|
3193
2840
|
Object.defineProperty(exports, "__esModule", {
|
|
3194
2841
|
value: true
|
|
@@ -3207,10 +2854,7 @@ function flex(property, value) {
|
|
|
3207
2854
|
module.exports = exports['default'];
|
|
3208
2855
|
});
|
|
3209
2856
|
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
var flexboxOld_1 = createCommonjsModule(function (module, exports) {
|
|
3213
|
-
'use strict';
|
|
2857
|
+
var flexboxOld_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3214
2858
|
|
|
3215
2859
|
Object.defineProperty(exports, "__esModule", {
|
|
3216
2860
|
value: true
|
|
@@ -3251,10 +2895,7 @@ function flexboxOld(property, value, style) {
|
|
|
3251
2895
|
module.exports = exports['default'];
|
|
3252
2896
|
});
|
|
3253
2897
|
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
var gradient_1 = createCommonjsModule(function (module, exports) {
|
|
3257
|
-
'use strict';
|
|
2898
|
+
var gradient_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3258
2899
|
|
|
3259
2900
|
Object.defineProperty(exports, "__esModule", {
|
|
3260
2901
|
value: true
|
|
@@ -3281,10 +2922,7 @@ function gradient(property, value) {
|
|
|
3281
2922
|
module.exports = exports['default'];
|
|
3282
2923
|
});
|
|
3283
2924
|
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
var imageSet_1 = createCommonjsModule(function (module, exports) {
|
|
3287
|
-
'use strict';
|
|
2925
|
+
var imageSet_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3288
2926
|
|
|
3289
2927
|
Object.defineProperty(exports, "__esModule", {
|
|
3290
2928
|
value: true
|
|
@@ -3309,10 +2947,7 @@ function imageSet(property, value) {
|
|
|
3309
2947
|
module.exports = exports['default'];
|
|
3310
2948
|
});
|
|
3311
2949
|
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
var position_1 = createCommonjsModule(function (module, exports) {
|
|
3315
|
-
'use strict';
|
|
2950
|
+
var position_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3316
2951
|
|
|
3317
2952
|
Object.defineProperty(exports, "__esModule", {
|
|
3318
2953
|
value: true
|
|
@@ -3326,10 +2961,7 @@ function position(property, value) {
|
|
|
3326
2961
|
module.exports = exports['default'];
|
|
3327
2962
|
});
|
|
3328
2963
|
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
var sizing_1 = createCommonjsModule(function (module, exports) {
|
|
3332
|
-
'use strict';
|
|
2964
|
+
var sizing_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3333
2965
|
|
|
3334
2966
|
Object.defineProperty(exports, "__esModule", {
|
|
3335
2967
|
value: true
|
|
@@ -3364,8 +2996,6 @@ function sizing(property, value) {
|
|
|
3364
2996
|
module.exports = exports['default'];
|
|
3365
2997
|
});
|
|
3366
2998
|
|
|
3367
|
-
const sizing = /*@__PURE__*/getDefaultExportFromCjs(sizing_1);
|
|
3368
|
-
|
|
3369
2999
|
/* eslint-disable no-var, prefer-template */
|
|
3370
3000
|
var uppercasePattern = /[A-Z]/g;
|
|
3371
3001
|
var msPattern = /^ms-/;
|
|
@@ -3389,10 +3019,9 @@ const hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({
|
|
|
3389
3019
|
'default': hyphenateStyleName
|
|
3390
3020
|
});
|
|
3391
3021
|
|
|
3392
|
-
const _hyphenateStyleName = /*@__PURE__*/getAugmentedNamespace(hyphenateStyleName$1);
|
|
3022
|
+
const _hyphenateStyleName = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(hyphenateStyleName$1);
|
|
3393
3023
|
|
|
3394
|
-
var hyphenateProperty_1 = createCommonjsModule(function (module, exports) {
|
|
3395
|
-
'use strict';
|
|
3024
|
+
var hyphenateProperty_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3396
3025
|
|
|
3397
3026
|
Object.defineProperty(exports, "__esModule", {
|
|
3398
3027
|
value: true
|
|
@@ -3411,10 +3040,7 @@ function hyphenateProperty(property) {
|
|
|
3411
3040
|
module.exports = exports['default'];
|
|
3412
3041
|
});
|
|
3413
3042
|
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
var transition_1 = createCommonjsModule(function (module, exports) {
|
|
3417
|
-
'use strict';
|
|
3043
|
+
var transition_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3418
3044
|
|
|
3419
3045
|
Object.defineProperty(exports, "__esModule", {
|
|
3420
3046
|
value: true
|
|
@@ -3509,10 +3135,7 @@ function transition(property, value, style, propertyPrefixMap) {
|
|
|
3509
3135
|
module.exports = exports['default'];
|
|
3510
3136
|
});
|
|
3511
3137
|
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
var prefixer_1 = createCommonjsModule(function (module, exports) {
|
|
3515
|
-
'use strict';
|
|
3138
|
+
var prefixer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3516
3139
|
|
|
3517
3140
|
Object.defineProperty(exports, "__esModule", {
|
|
3518
3141
|
value: true
|
|
@@ -3595,10 +3218,7 @@ function prefixer(style) {
|
|
|
3595
3218
|
}
|
|
3596
3219
|
});
|
|
3597
3220
|
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
var plugins = createCommonjsModule(function (module, exports) {
|
|
3601
|
-
'use strict';
|
|
3221
|
+
var plugins = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3602
3222
|
|
|
3603
3223
|
Object.defineProperty(exports, "__esModule", {
|
|
3604
3224
|
value: true
|
|
@@ -3625,7 +3245,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
3625
3245
|
|
|
3626
3246
|
var isDev = function (x) {
|
|
3627
3247
|
return x === 'development' || !x;
|
|
3628
|
-
}("
|
|
3248
|
+
}("production");
|
|
3629
3249
|
|
|
3630
3250
|
function PluginSet(initial) {
|
|
3631
3251
|
this.fns = initial || [];
|
|
@@ -3706,10 +3326,7 @@ function prefixes(node) {
|
|
|
3706
3326
|
}
|
|
3707
3327
|
});
|
|
3708
3328
|
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
var hash = createCommonjsModule(function (module, exports) {
|
|
3712
|
-
"use strict";
|
|
3329
|
+
var hash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3713
3330
|
|
|
3714
3331
|
Object.defineProperty(exports, "__esModule", {
|
|
3715
3332
|
value: true
|
|
@@ -3781,10 +3398,7 @@ function Umul32(n, m) {
|
|
|
3781
3398
|
}
|
|
3782
3399
|
});
|
|
3783
3400
|
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
3787
|
-
'use strict';
|
|
3401
|
+
var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3788
3402
|
|
|
3789
3403
|
Object.defineProperty(exports, "__esModule", {
|
|
3790
3404
|
value: true
|
|
@@ -3873,8 +3487,6 @@ var _hash2 = _interopRequireDefault(hash);
|
|
|
3873
3487
|
|
|
3874
3488
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3875
3489
|
|
|
3876
|
-
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
|
3877
|
-
|
|
3878
3490
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3879
3491
|
/* stylesheet */
|
|
3880
3492
|
|
|
@@ -3900,8 +3512,7 @@ plugins$1.keyframes = new plugins.PluginSet([plugins.prefixes, plugins.fallbacks
|
|
|
3900
3512
|
|
|
3901
3513
|
// define some constants
|
|
3902
3514
|
|
|
3903
|
-
var isDev =
|
|
3904
|
-
var isTest = "development" === 'test';
|
|
3515
|
+
var isDev = !"production";
|
|
3905
3516
|
var isBrowser = typeof window !== 'undefined';
|
|
3906
3517
|
|
|
3907
3518
|
/**** simulations ****/
|
|
@@ -3940,7 +3551,7 @@ function simulate() {
|
|
|
3940
3551
|
console.warn('can\'t simulate without once calling simulations(true)'); //eslint-disable-line no-console
|
|
3941
3552
|
warned1 = true;
|
|
3942
3553
|
}
|
|
3943
|
-
if (!
|
|
3554
|
+
if (!warned2) {
|
|
3944
3555
|
console.warn('don\'t use simulation outside dev'); //eslint-disable-line no-console
|
|
3945
3556
|
warned2 = true;
|
|
3946
3557
|
}
|
|
@@ -4192,12 +3803,6 @@ function toRule(spec) {
|
|
|
4192
3803
|
return ret;
|
|
4193
3804
|
}
|
|
4194
3805
|
|
|
4195
|
-
function log() {
|
|
4196
|
-
//eslint-disable-line no-unused-vars
|
|
4197
|
-
console.log(this); //eslint-disable-line no-console
|
|
4198
|
-
return this;
|
|
4199
|
-
}
|
|
4200
|
-
|
|
4201
3806
|
function isSelector(key) {
|
|
4202
3807
|
var possibles = [':', '.', '[', '>', ' '],
|
|
4203
3808
|
found = false,
|
|
@@ -4298,9 +3903,7 @@ var prefixedPseudoSelectors = {
|
|
|
4298
3903
|
build(dest, { selector: selector, mq: joinMediaQueries(mq, key), supp: supp, src: _src[key] });
|
|
4299
3904
|
} else if (isSupports(key)) {
|
|
4300
3905
|
build(dest, { selector: selector, mq: mq, supp: joinSupports(supp, key), src: _src[key] });
|
|
4301
|
-
} else if (key === 'composes') {
|
|
4302
|
-
// ignore, we already dealth with it
|
|
4303
|
-
} else {
|
|
3906
|
+
} else if (key === 'composes') ; else {
|
|
4304
3907
|
var _dest = dest;
|
|
4305
3908
|
if (supp) {
|
|
4306
3909
|
_dest[supp] = _dest[supp] || {};
|
|
@@ -4349,8 +3952,6 @@ Object.defineProperty(nullrule, 'toString', {
|
|
|
4349
3952
|
});
|
|
4350
3953
|
|
|
4351
3954
|
var inputCaches = typeof WeakMap !== 'undefined' ? [nullrule, new WeakMap(), new WeakMap(), new WeakMap()] : [nullrule];
|
|
4352
|
-
|
|
4353
|
-
var warnedWeakMapError = false;
|
|
4354
3955
|
function multiIndexCache(fn) {
|
|
4355
3956
|
return function (args) {
|
|
4356
3957
|
if (inputCaches[args.length]) {
|
|
@@ -4383,13 +3984,6 @@ function multiIndexCache(fn) {
|
|
|
4383
3984
|
try {
|
|
4384
3985
|
_coi.set(args[_ctr], value);
|
|
4385
3986
|
} catch (err) {
|
|
4386
|
-
if (isDev && !warnedWeakMapError) {
|
|
4387
|
-
var _console;
|
|
4388
|
-
|
|
4389
|
-
warnedWeakMapError = true;
|
|
4390
|
-
(_console = console).warn.apply(_console, ['failed setting the WeakMap cache for args:'].concat(_toConsumableArray(args))); // eslint-disable-line no-console
|
|
4391
|
-
console.warn('this should NOT happen, please file a bug on the github repo.'); // eslint-disable-line no-console
|
|
4392
|
-
}
|
|
4393
3987
|
}
|
|
4394
3988
|
}
|
|
4395
3989
|
return value;
|
|
@@ -4428,7 +4022,7 @@ css.insert = function (css) {
|
|
|
4428
4022
|
}
|
|
4429
4023
|
};
|
|
4430
4024
|
|
|
4431
|
-
|
|
4025
|
+
exports.insertRule = css.insert;
|
|
4432
4026
|
|
|
4433
4027
|
css.global = function (selector, style) {
|
|
4434
4028
|
style = (0, _clean2.default)(style);
|
|
@@ -4437,7 +4031,7 @@ css.global = function (selector, style) {
|
|
|
4437
4031
|
}
|
|
4438
4032
|
};
|
|
4439
4033
|
|
|
4440
|
-
|
|
4034
|
+
exports.insertGlobal = css.global;
|
|
4441
4035
|
|
|
4442
4036
|
function insertKeyframe(spec) {
|
|
4443
4037
|
if (!inserted[spec.id]) {
|
|
@@ -4489,8 +4083,8 @@ css.fontFace = function (font) {
|
|
|
4489
4083
|
return font.fontFamily;
|
|
4490
4084
|
};
|
|
4491
4085
|
|
|
4492
|
-
|
|
4493
|
-
|
|
4086
|
+
exports.fontFace = css.fontFace;
|
|
4087
|
+
exports.keyframes = css.keyframes;
|
|
4494
4088
|
|
|
4495
4089
|
function insertFontFace(spec) {
|
|
4496
4090
|
if (!inserted[spec.id]) {
|
|
@@ -4521,7 +4115,7 @@ function flush() {
|
|
|
4521
4115
|
styleSheet.inject();
|
|
4522
4116
|
}
|
|
4523
4117
|
|
|
4524
|
-
|
|
4118
|
+
exports.presets = {
|
|
4525
4119
|
mobile: '(min-width: 400px)',
|
|
4526
4120
|
Mobile: '@media (min-width: 400px)',
|
|
4527
4121
|
phablet: '(min-width: 550px)',
|
|
@@ -4546,7 +4140,7 @@ function select(selector) {
|
|
|
4546
4140
|
}
|
|
4547
4141
|
return css(_defineProperty({}, selector, styles));
|
|
4548
4142
|
}
|
|
4549
|
-
|
|
4143
|
+
exports.$ = select;
|
|
4550
4144
|
|
|
4551
4145
|
function parent(selector) {
|
|
4552
4146
|
for (var _len4 = arguments.length, styles = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
@@ -4556,8 +4150,8 @@ function parent(selector) {
|
|
|
4556
4150
|
return css(_defineProperty({}, selector + ' &', styles));
|
|
4557
4151
|
}
|
|
4558
4152
|
|
|
4559
|
-
|
|
4560
|
-
|
|
4153
|
+
exports.merge = css;
|
|
4154
|
+
exports.compose = css;
|
|
4561
4155
|
|
|
4562
4156
|
function media(query) {
|
|
4563
4157
|
for (var _len5 = arguments.length, rules = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
|
@@ -4798,6 +4392,5 @@ function attribsFor() {
|
|
|
4798
4392
|
}
|
|
4799
4393
|
});
|
|
4800
4394
|
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
export { color as c, lib as l };
|
|
4395
|
+
exports.color = color;
|
|
4396
|
+
exports.lib = lib;
|