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,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, g as getAugmentedNamespace } from './_commonjsHelpers-66ac50f5.js';
|
|
2
2
|
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
3
|
var colorName = {
|
|
6
4
|
"aliceblue": [240, 248, 255],
|
|
7
5
|
"antiquewhite": [250, 235, 215],
|
|
@@ -164,7 +162,6 @@ var isArrayish = function isArrayish(obj) {
|
|
|
164
162
|
};
|
|
165
163
|
|
|
166
164
|
var simpleSwizzle = createCommonjsModule(function (module) {
|
|
167
|
-
'use strict';
|
|
168
165
|
|
|
169
166
|
|
|
170
167
|
|
|
@@ -1931,8 +1928,6 @@ object-assign
|
|
|
1931
1928
|
(c) Sindre Sorhus
|
|
1932
1929
|
@license MIT
|
|
1933
1930
|
*/
|
|
1934
|
-
|
|
1935
|
-
'use strict';
|
|
1936
1931
|
/* eslint-disable no-unused-vars */
|
|
1937
1932
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1938
1933
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2018,7 +2013,6 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
2018
2013
|
};
|
|
2019
2014
|
|
|
2020
2015
|
var sheet = createCommonjsModule(function (module, exports) {
|
|
2021
|
-
'use strict';
|
|
2022
2016
|
|
|
2023
2017
|
Object.defineProperty(exports, "__esModule", {
|
|
2024
2018
|
value: true
|
|
@@ -2077,8 +2071,7 @@ function sheetForTag(tag) {
|
|
|
2077
2071
|
}
|
|
2078
2072
|
|
|
2079
2073
|
var isBrowser = typeof window !== 'undefined';
|
|
2080
|
-
var
|
|
2081
|
-
var isTest = "development" === 'test';
|
|
2074
|
+
var isTest = "production" === 'test';
|
|
2082
2075
|
|
|
2083
2076
|
var oldIE = function () {
|
|
2084
2077
|
if (isBrowser) {
|
|
@@ -2100,7 +2093,7 @@ function makeStyleTag() {
|
|
|
2100
2093
|
function StyleSheet() {
|
|
2101
2094
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
2102
2095
|
_ref$speedy = _ref.speedy,
|
|
2103
|
-
speedy = _ref$speedy === undefined ? !
|
|
2096
|
+
speedy = _ref$speedy === undefined ? !isTest : _ref$speedy,
|
|
2104
2097
|
_ref$maxLength = _ref.maxLength,
|
|
2105
2098
|
maxLength = _ref$maxLength === undefined ? isBrowser && oldIE ? 4000 : 65000 : _ref$maxLength;
|
|
2106
2099
|
|
|
@@ -2149,10 +2142,6 @@ function StyleSheet() {
|
|
|
2149
2142
|
var sheet = this.getSheet();
|
|
2150
2143
|
sheet.insertRule(rule, rule.indexOf('@import') !== -1 ? 0 : sheet.cssRules.length);
|
|
2151
2144
|
} 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
2145
|
}
|
|
2157
2146
|
},
|
|
2158
2147
|
insert: function insert(rule) {
|
|
@@ -2252,78 +2241,7 @@ function StyleSheet() {
|
|
|
2252
2241
|
});
|
|
2253
2242
|
});
|
|
2254
2243
|
|
|
2255
|
-
const sheet$1 = /*@__PURE__*/getDefaultExportFromCjs(sheet);
|
|
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
2244
|
var CSSProperty_1 = createCommonjsModule(function (module, exports) {
|
|
2326
|
-
'use strict';
|
|
2327
2245
|
|
|
2328
2246
|
Object.defineProperty(exports, "__esModule", {
|
|
2329
2247
|
value: true
|
|
@@ -2479,110 +2397,7 @@ var CSSProperty = {
|
|
|
2479
2397
|
exports.default = CSSProperty;
|
|
2480
2398
|
});
|
|
2481
2399
|
|
|
2482
|
-
const CSSProperty = /*@__PURE__*/getDefaultExportFromCjs(CSSProperty_1);
|
|
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
2400
|
var dangerousStyleValue_1 = createCommonjsModule(function (module, exports) {
|
|
2585
|
-
'use strict';
|
|
2586
2401
|
|
|
2587
2402
|
Object.defineProperty(exports, "__esModule", {
|
|
2588
2403
|
value: true
|
|
@@ -2592,10 +2407,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2592
2407
|
|
|
2593
2408
|
var _CSSProperty2 = _interopRequireDefault(CSSProperty_1);
|
|
2594
2409
|
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
var _warning2 = _interopRequireDefault(warning_1);
|
|
2598
|
-
|
|
2599
2410
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2600
2411
|
|
|
2601
2412
|
/**
|
|
@@ -2610,7 +2421,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
2610
2421
|
*/
|
|
2611
2422
|
|
|
2612
2423
|
var isUnitlessNumber = _CSSProperty2.default.isUnitlessNumber;
|
|
2613
|
-
var styleWarnings = {};
|
|
2614
2424
|
|
|
2615
2425
|
/**
|
|
2616
2426
|
* Convert a value into the proper css writable value. The style name `name`
|
|
@@ -2644,28 +2454,6 @@ function dangerousStyleValue(name, value, component) {
|
|
|
2644
2454
|
}
|
|
2645
2455
|
|
|
2646
2456
|
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
2457
|
value = value.trim();
|
|
2670
2458
|
}
|
|
2671
2459
|
return value + 'px';
|
|
@@ -2674,10 +2462,6 @@ function dangerousStyleValue(name, value, component) {
|
|
|
2674
2462
|
exports.default = dangerousStyleValue;
|
|
2675
2463
|
});
|
|
2676
2464
|
|
|
2677
|
-
const dangerousStyleValue = /*@__PURE__*/getDefaultExportFromCjs(dangerousStyleValue_1);
|
|
2678
|
-
|
|
2679
|
-
'use strict';
|
|
2680
|
-
|
|
2681
2465
|
/**
|
|
2682
2466
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2683
2467
|
*
|
|
@@ -2707,19 +2491,6 @@ function hyphenate(string) {
|
|
|
2707
2491
|
|
|
2708
2492
|
var hyphenate_1 = hyphenate;
|
|
2709
2493
|
|
|
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
2494
|
var msPattern$1 = /^ms-/;
|
|
2724
2495
|
|
|
2725
2496
|
/**
|
|
@@ -2754,8 +2525,6 @@ var hyphenateStyleName_1 = hyphenateStyleName$2;
|
|
|
2754
2525
|
* @typechecks static-only
|
|
2755
2526
|
*/
|
|
2756
2527
|
|
|
2757
|
-
'use strict';
|
|
2758
|
-
|
|
2759
2528
|
/**
|
|
2760
2529
|
* Memoizes the return value of a function that accepts one string argument.
|
|
2761
2530
|
*/
|
|
@@ -2773,7 +2542,6 @@ function memoizeStringOnly(callback) {
|
|
|
2773
2542
|
var memoizeStringOnly_1 = memoizeStringOnly;
|
|
2774
2543
|
|
|
2775
2544
|
var CSSPropertyOperations = createCommonjsModule(function (module, exports) {
|
|
2776
|
-
'use strict';
|
|
2777
2545
|
|
|
2778
2546
|
Object.defineProperty(exports, "__esModule", {
|
|
2779
2547
|
value: true
|
|
@@ -2783,10 +2551,6 @@ exports.createMarkupForStyles = createMarkupForStyles;
|
|
|
2783
2551
|
|
|
2784
2552
|
|
|
2785
2553
|
|
|
2786
|
-
var _camelizeStyleName2 = _interopRequireDefault(camelizeStyleName_1);
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
2554
|
var _dangerousStyleValue2 = _interopRequireDefault(dangerousStyleValue_1);
|
|
2791
2555
|
|
|
2792
2556
|
|
|
@@ -2797,10 +2561,6 @@ var _hyphenateStyleName2 = _interopRequireDefault(hyphenateStyleName_1);
|
|
|
2797
2561
|
|
|
2798
2562
|
var _memoizeStringOnly2 = _interopRequireDefault(memoizeStringOnly_1);
|
|
2799
2563
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
var _warning2 = _interopRequireDefault(warning_1);
|
|
2803
|
-
|
|
2804
2564
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2805
2565
|
|
|
2806
2566
|
var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.default)(_hyphenateStyleName2.default); /**
|
|
@@ -2814,88 +2574,6 @@ var processStyleName = exports.processStyleName = (0, _memoizeStringOnly2.defaul
|
|
|
2814
2574
|
* @providesModule CSSPropertyOperations
|
|
2815
2575
|
*/
|
|
2816
2576
|
|
|
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
2577
|
/**
|
|
2900
2578
|
* Serializes a mapping of style properties for use as inline styles:
|
|
2901
2579
|
*
|
|
@@ -2921,9 +2599,6 @@ function createMarkupForStyles(styles, component) {
|
|
|
2921
2599
|
continue;
|
|
2922
2600
|
}
|
|
2923
2601
|
var styleValue = styles[styleName];
|
|
2924
|
-
if ("development" !== 'production' && !isCustomProp) {
|
|
2925
|
-
warnValidStyle(styleName, styleValue, component);
|
|
2926
|
-
}
|
|
2927
2602
|
if (styleValue != null) {
|
|
2928
2603
|
if (isCustomProp) {
|
|
2929
2604
|
serialized += styleName + ':' + styleValue + ';';
|
|
@@ -2937,10 +2612,7 @@ function createMarkupForStyles(styles, component) {
|
|
|
2937
2612
|
}
|
|
2938
2613
|
});
|
|
2939
2614
|
|
|
2940
|
-
const index$1 = /*@__PURE__*/getDefaultExportFromCjs(CSSPropertyOperations);
|
|
2941
|
-
|
|
2942
2615
|
var clean_1 = createCommonjsModule(function (module, exports) {
|
|
2943
|
-
'use strict';
|
|
2944
2616
|
|
|
2945
2617
|
Object.defineProperty(exports, "__esModule", {
|
|
2946
2618
|
value: true
|
|
@@ -2996,10 +2668,7 @@ function clean(input) {
|
|
|
2996
2668
|
}
|
|
2997
2669
|
});
|
|
2998
2670
|
|
|
2999
|
-
const clean = /*@__PURE__*/getDefaultExportFromCjs(clean_1);
|
|
3000
|
-
|
|
3001
2671
|
var staticData = createCommonjsModule(function (module, exports) {
|
|
3002
|
-
"use strict";
|
|
3003
2672
|
|
|
3004
2673
|
Object.defineProperty(exports, "__esModule", {
|
|
3005
2674
|
value: true
|
|
@@ -3019,10 +2688,7 @@ exports.default = {
|
|
|
3019
2688
|
module.exports = exports["default"];
|
|
3020
2689
|
});
|
|
3021
2690
|
|
|
3022
|
-
const staticData$1 = /*@__PURE__*/getDefaultExportFromCjs(staticData);
|
|
3023
|
-
|
|
3024
2691
|
var capitalizeString_1 = createCommonjsModule(function (module, exports) {
|
|
3025
|
-
"use strict";
|
|
3026
2692
|
|
|
3027
2693
|
Object.defineProperty(exports, "__esModule", {
|
|
3028
2694
|
value: true
|
|
@@ -3034,10 +2700,7 @@ function capitalizeString(str) {
|
|
|
3034
2700
|
module.exports = exports["default"];
|
|
3035
2701
|
});
|
|
3036
2702
|
|
|
3037
|
-
const capitalizeString = /*@__PURE__*/getDefaultExportFromCjs(capitalizeString_1);
|
|
3038
|
-
|
|
3039
2703
|
var prefixProperty_1 = createCommonjsModule(function (module, exports) {
|
|
3040
|
-
'use strict';
|
|
3041
2704
|
|
|
3042
2705
|
Object.defineProperty(exports, "__esModule", {
|
|
3043
2706
|
value: true
|
|
@@ -3061,10 +2724,7 @@ function prefixProperty(prefixProperties, property, style) {
|
|
|
3061
2724
|
module.exports = exports['default'];
|
|
3062
2725
|
});
|
|
3063
2726
|
|
|
3064
|
-
const prefixProperty = /*@__PURE__*/getDefaultExportFromCjs(prefixProperty_1);
|
|
3065
|
-
|
|
3066
2727
|
var prefixValue_1 = createCommonjsModule(function (module, exports) {
|
|
3067
|
-
"use strict";
|
|
3068
2728
|
|
|
3069
2729
|
Object.defineProperty(exports, "__esModule", {
|
|
3070
2730
|
value: true
|
|
@@ -3084,10 +2744,7 @@ function prefixValue(plugins, property, value, style, metaData) {
|
|
|
3084
2744
|
module.exports = exports["default"];
|
|
3085
2745
|
});
|
|
3086
2746
|
|
|
3087
|
-
const prefixValue = /*@__PURE__*/getDefaultExportFromCjs(prefixValue_1);
|
|
3088
|
-
|
|
3089
2747
|
var cursor_1 = createCommonjsModule(function (module, exports) {
|
|
3090
|
-
'use strict';
|
|
3091
2748
|
|
|
3092
2749
|
Object.defineProperty(exports, "__esModule", {
|
|
3093
2750
|
value: true
|
|
@@ -3112,10 +2769,7 @@ function cursor(property, value) {
|
|
|
3112
2769
|
module.exports = exports['default'];
|
|
3113
2770
|
});
|
|
3114
2771
|
|
|
3115
|
-
const cursor = /*@__PURE__*/getDefaultExportFromCjs(cursor_1);
|
|
3116
|
-
|
|
3117
2772
|
var isPrefixedValue_1 = createCommonjsModule(function (module, exports) {
|
|
3118
|
-
'use strict';
|
|
3119
2773
|
|
|
3120
2774
|
Object.defineProperty(exports, "__esModule", {
|
|
3121
2775
|
value: true
|
|
@@ -3129,10 +2783,7 @@ function isPrefixedValue(value) {
|
|
|
3129
2783
|
module.exports = exports['default'];
|
|
3130
2784
|
});
|
|
3131
2785
|
|
|
3132
|
-
const isPrefixedValue = /*@__PURE__*/getDefaultExportFromCjs(isPrefixedValue_1);
|
|
3133
|
-
|
|
3134
2786
|
var crossFade_1 = createCommonjsModule(function (module, exports) {
|
|
3135
|
-
'use strict';
|
|
3136
2787
|
|
|
3137
2788
|
Object.defineProperty(exports, "__esModule", {
|
|
3138
2789
|
value: true
|
|
@@ -3157,10 +2808,7 @@ function crossFade(property, value) {
|
|
|
3157
2808
|
module.exports = exports['default'];
|
|
3158
2809
|
});
|
|
3159
2810
|
|
|
3160
|
-
const crossFade = /*@__PURE__*/getDefaultExportFromCjs(crossFade_1);
|
|
3161
|
-
|
|
3162
2811
|
var filter_1 = createCommonjsModule(function (module, exports) {
|
|
3163
|
-
'use strict';
|
|
3164
2812
|
|
|
3165
2813
|
Object.defineProperty(exports, "__esModule", {
|
|
3166
2814
|
value: true
|
|
@@ -3185,10 +2833,7 @@ function filter(property, value) {
|
|
|
3185
2833
|
module.exports = exports['default'];
|
|
3186
2834
|
});
|
|
3187
2835
|
|
|
3188
|
-
const filter = /*@__PURE__*/getDefaultExportFromCjs(filter_1);
|
|
3189
|
-
|
|
3190
2836
|
var flex_1 = createCommonjsModule(function (module, exports) {
|
|
3191
|
-
'use strict';
|
|
3192
2837
|
|
|
3193
2838
|
Object.defineProperty(exports, "__esModule", {
|
|
3194
2839
|
value: true
|
|
@@ -3207,10 +2852,7 @@ function flex(property, value) {
|
|
|
3207
2852
|
module.exports = exports['default'];
|
|
3208
2853
|
});
|
|
3209
2854
|
|
|
3210
|
-
const flex = /*@__PURE__*/getDefaultExportFromCjs(flex_1);
|
|
3211
|
-
|
|
3212
2855
|
var flexboxOld_1 = createCommonjsModule(function (module, exports) {
|
|
3213
|
-
'use strict';
|
|
3214
2856
|
|
|
3215
2857
|
Object.defineProperty(exports, "__esModule", {
|
|
3216
2858
|
value: true
|
|
@@ -3251,10 +2893,7 @@ function flexboxOld(property, value, style) {
|
|
|
3251
2893
|
module.exports = exports['default'];
|
|
3252
2894
|
});
|
|
3253
2895
|
|
|
3254
|
-
const flexboxOld = /*@__PURE__*/getDefaultExportFromCjs(flexboxOld_1);
|
|
3255
|
-
|
|
3256
2896
|
var gradient_1 = createCommonjsModule(function (module, exports) {
|
|
3257
|
-
'use strict';
|
|
3258
2897
|
|
|
3259
2898
|
Object.defineProperty(exports, "__esModule", {
|
|
3260
2899
|
value: true
|
|
@@ -3281,10 +2920,7 @@ function gradient(property, value) {
|
|
|
3281
2920
|
module.exports = exports['default'];
|
|
3282
2921
|
});
|
|
3283
2922
|
|
|
3284
|
-
const gradient = /*@__PURE__*/getDefaultExportFromCjs(gradient_1);
|
|
3285
|
-
|
|
3286
2923
|
var imageSet_1 = createCommonjsModule(function (module, exports) {
|
|
3287
|
-
'use strict';
|
|
3288
2924
|
|
|
3289
2925
|
Object.defineProperty(exports, "__esModule", {
|
|
3290
2926
|
value: true
|
|
@@ -3309,10 +2945,7 @@ function imageSet(property, value) {
|
|
|
3309
2945
|
module.exports = exports['default'];
|
|
3310
2946
|
});
|
|
3311
2947
|
|
|
3312
|
-
const imageSet = /*@__PURE__*/getDefaultExportFromCjs(imageSet_1);
|
|
3313
|
-
|
|
3314
2948
|
var position_1 = createCommonjsModule(function (module, exports) {
|
|
3315
|
-
'use strict';
|
|
3316
2949
|
|
|
3317
2950
|
Object.defineProperty(exports, "__esModule", {
|
|
3318
2951
|
value: true
|
|
@@ -3326,10 +2959,7 @@ function position(property, value) {
|
|
|
3326
2959
|
module.exports = exports['default'];
|
|
3327
2960
|
});
|
|
3328
2961
|
|
|
3329
|
-
const position = /*@__PURE__*/getDefaultExportFromCjs(position_1);
|
|
3330
|
-
|
|
3331
2962
|
var sizing_1 = createCommonjsModule(function (module, exports) {
|
|
3332
|
-
'use strict';
|
|
3333
2963
|
|
|
3334
2964
|
Object.defineProperty(exports, "__esModule", {
|
|
3335
2965
|
value: true
|
|
@@ -3364,8 +2994,6 @@ function sizing(property, value) {
|
|
|
3364
2994
|
module.exports = exports['default'];
|
|
3365
2995
|
});
|
|
3366
2996
|
|
|
3367
|
-
const sizing = /*@__PURE__*/getDefaultExportFromCjs(sizing_1);
|
|
3368
|
-
|
|
3369
2997
|
/* eslint-disable no-var, prefer-template */
|
|
3370
2998
|
var uppercasePattern = /[A-Z]/g;
|
|
3371
2999
|
var msPattern = /^ms-/;
|
|
@@ -3392,7 +3020,6 @@ const hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({
|
|
|
3392
3020
|
const _hyphenateStyleName = /*@__PURE__*/getAugmentedNamespace(hyphenateStyleName$1);
|
|
3393
3021
|
|
|
3394
3022
|
var hyphenateProperty_1 = createCommonjsModule(function (module, exports) {
|
|
3395
|
-
'use strict';
|
|
3396
3023
|
|
|
3397
3024
|
Object.defineProperty(exports, "__esModule", {
|
|
3398
3025
|
value: true
|
|
@@ -3411,10 +3038,7 @@ function hyphenateProperty(property) {
|
|
|
3411
3038
|
module.exports = exports['default'];
|
|
3412
3039
|
});
|
|
3413
3040
|
|
|
3414
|
-
const hyphenateProperty = /*@__PURE__*/getDefaultExportFromCjs(hyphenateProperty_1);
|
|
3415
|
-
|
|
3416
3041
|
var transition_1 = createCommonjsModule(function (module, exports) {
|
|
3417
|
-
'use strict';
|
|
3418
3042
|
|
|
3419
3043
|
Object.defineProperty(exports, "__esModule", {
|
|
3420
3044
|
value: true
|
|
@@ -3509,10 +3133,7 @@ function transition(property, value, style, propertyPrefixMap) {
|
|
|
3509
3133
|
module.exports = exports['default'];
|
|
3510
3134
|
});
|
|
3511
3135
|
|
|
3512
|
-
const transition = /*@__PURE__*/getDefaultExportFromCjs(transition_1);
|
|
3513
|
-
|
|
3514
3136
|
var prefixer_1 = createCommonjsModule(function (module, exports) {
|
|
3515
|
-
'use strict';
|
|
3516
3137
|
|
|
3517
3138
|
Object.defineProperty(exports, "__esModule", {
|
|
3518
3139
|
value: true
|
|
@@ -3595,10 +3216,7 @@ function prefixer(style) {
|
|
|
3595
3216
|
}
|
|
3596
3217
|
});
|
|
3597
3218
|
|
|
3598
|
-
const prefixer = /*@__PURE__*/getDefaultExportFromCjs(prefixer_1);
|
|
3599
|
-
|
|
3600
3219
|
var plugins = createCommonjsModule(function (module, exports) {
|
|
3601
|
-
'use strict';
|
|
3602
3220
|
|
|
3603
3221
|
Object.defineProperty(exports, "__esModule", {
|
|
3604
3222
|
value: true
|
|
@@ -3625,7 +3243,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
3625
3243
|
|
|
3626
3244
|
var isDev = function (x) {
|
|
3627
3245
|
return x === 'development' || !x;
|
|
3628
|
-
}("
|
|
3246
|
+
}("production");
|
|
3629
3247
|
|
|
3630
3248
|
function PluginSet(initial) {
|
|
3631
3249
|
this.fns = initial || [];
|
|
@@ -3706,10 +3324,7 @@ function prefixes(node) {
|
|
|
3706
3324
|
}
|
|
3707
3325
|
});
|
|
3708
3326
|
|
|
3709
|
-
const plugins$1 = /*@__PURE__*/getDefaultExportFromCjs(plugins);
|
|
3710
|
-
|
|
3711
3327
|
var hash = createCommonjsModule(function (module, exports) {
|
|
3712
|
-
"use strict";
|
|
3713
3328
|
|
|
3714
3329
|
Object.defineProperty(exports, "__esModule", {
|
|
3715
3330
|
value: true
|
|
@@ -3781,10 +3396,7 @@ function Umul32(n, m) {
|
|
|
3781
3396
|
}
|
|
3782
3397
|
});
|
|
3783
3398
|
|
|
3784
|
-
const hash$1 = /*@__PURE__*/getDefaultExportFromCjs(hash);
|
|
3785
|
-
|
|
3786
3399
|
var lib = createCommonjsModule(function (module, exports) {
|
|
3787
|
-
'use strict';
|
|
3788
3400
|
|
|
3789
3401
|
Object.defineProperty(exports, "__esModule", {
|
|
3790
3402
|
value: true
|
|
@@ -3873,8 +3485,6 @@ var _hash2 = _interopRequireDefault(hash);
|
|
|
3873
3485
|
|
|
3874
3486
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3875
3487
|
|
|
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
3488
|
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
3489
|
/* stylesheet */
|
|
3880
3490
|
|
|
@@ -3900,8 +3510,7 @@ plugins$1.keyframes = new plugins.PluginSet([plugins.prefixes, plugins.fallbacks
|
|
|
3900
3510
|
|
|
3901
3511
|
// define some constants
|
|
3902
3512
|
|
|
3903
|
-
var isDev =
|
|
3904
|
-
var isTest = "development" === 'test';
|
|
3513
|
+
var isDev = !"production";
|
|
3905
3514
|
var isBrowser = typeof window !== 'undefined';
|
|
3906
3515
|
|
|
3907
3516
|
/**** simulations ****/
|
|
@@ -3940,7 +3549,7 @@ function simulate() {
|
|
|
3940
3549
|
console.warn('can\'t simulate without once calling simulations(true)'); //eslint-disable-line no-console
|
|
3941
3550
|
warned1 = true;
|
|
3942
3551
|
}
|
|
3943
|
-
if (!
|
|
3552
|
+
if (!warned2) {
|
|
3944
3553
|
console.warn('don\'t use simulation outside dev'); //eslint-disable-line no-console
|
|
3945
3554
|
warned2 = true;
|
|
3946
3555
|
}
|
|
@@ -4192,12 +3801,6 @@ function toRule(spec) {
|
|
|
4192
3801
|
return ret;
|
|
4193
3802
|
}
|
|
4194
3803
|
|
|
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
3804
|
function isSelector(key) {
|
|
4202
3805
|
var possibles = [':', '.', '[', '>', ' '],
|
|
4203
3806
|
found = false,
|
|
@@ -4298,9 +3901,7 @@ var prefixedPseudoSelectors = {
|
|
|
4298
3901
|
build(dest, { selector: selector, mq: joinMediaQueries(mq, key), supp: supp, src: _src[key] });
|
|
4299
3902
|
} else if (isSupports(key)) {
|
|
4300
3903
|
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 {
|
|
3904
|
+
} else if (key === 'composes') ; else {
|
|
4304
3905
|
var _dest = dest;
|
|
4305
3906
|
if (supp) {
|
|
4306
3907
|
_dest[supp] = _dest[supp] || {};
|
|
@@ -4349,8 +3950,6 @@ Object.defineProperty(nullrule, 'toString', {
|
|
|
4349
3950
|
});
|
|
4350
3951
|
|
|
4351
3952
|
var inputCaches = typeof WeakMap !== 'undefined' ? [nullrule, new WeakMap(), new WeakMap(), new WeakMap()] : [nullrule];
|
|
4352
|
-
|
|
4353
|
-
var warnedWeakMapError = false;
|
|
4354
3953
|
function multiIndexCache(fn) {
|
|
4355
3954
|
return function (args) {
|
|
4356
3955
|
if (inputCaches[args.length]) {
|
|
@@ -4383,13 +3982,6 @@ function multiIndexCache(fn) {
|
|
|
4383
3982
|
try {
|
|
4384
3983
|
_coi.set(args[_ctr], value);
|
|
4385
3984
|
} 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
3985
|
}
|
|
4394
3986
|
}
|
|
4395
3987
|
return value;
|
|
@@ -4428,7 +4020,7 @@ css.insert = function (css) {
|
|
|
4428
4020
|
}
|
|
4429
4021
|
};
|
|
4430
4022
|
|
|
4431
|
-
|
|
4023
|
+
exports.insertRule = css.insert;
|
|
4432
4024
|
|
|
4433
4025
|
css.global = function (selector, style) {
|
|
4434
4026
|
style = (0, _clean2.default)(style);
|
|
@@ -4437,7 +4029,7 @@ css.global = function (selector, style) {
|
|
|
4437
4029
|
}
|
|
4438
4030
|
};
|
|
4439
4031
|
|
|
4440
|
-
|
|
4032
|
+
exports.insertGlobal = css.global;
|
|
4441
4033
|
|
|
4442
4034
|
function insertKeyframe(spec) {
|
|
4443
4035
|
if (!inserted[spec.id]) {
|
|
@@ -4489,8 +4081,8 @@ css.fontFace = function (font) {
|
|
|
4489
4081
|
return font.fontFamily;
|
|
4490
4082
|
};
|
|
4491
4083
|
|
|
4492
|
-
|
|
4493
|
-
|
|
4084
|
+
exports.fontFace = css.fontFace;
|
|
4085
|
+
exports.keyframes = css.keyframes;
|
|
4494
4086
|
|
|
4495
4087
|
function insertFontFace(spec) {
|
|
4496
4088
|
if (!inserted[spec.id]) {
|
|
@@ -4521,7 +4113,7 @@ function flush() {
|
|
|
4521
4113
|
styleSheet.inject();
|
|
4522
4114
|
}
|
|
4523
4115
|
|
|
4524
|
-
|
|
4116
|
+
exports.presets = {
|
|
4525
4117
|
mobile: '(min-width: 400px)',
|
|
4526
4118
|
Mobile: '@media (min-width: 400px)',
|
|
4527
4119
|
phablet: '(min-width: 550px)',
|
|
@@ -4546,7 +4138,7 @@ function select(selector) {
|
|
|
4546
4138
|
}
|
|
4547
4139
|
return css(_defineProperty({}, selector, styles));
|
|
4548
4140
|
}
|
|
4549
|
-
|
|
4141
|
+
exports.$ = select;
|
|
4550
4142
|
|
|
4551
4143
|
function parent(selector) {
|
|
4552
4144
|
for (var _len4 = arguments.length, styles = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
@@ -4556,8 +4148,8 @@ function parent(selector) {
|
|
|
4556
4148
|
return css(_defineProperty({}, selector + ' &', styles));
|
|
4557
4149
|
}
|
|
4558
4150
|
|
|
4559
|
-
|
|
4560
|
-
|
|
4151
|
+
exports.merge = css;
|
|
4152
|
+
exports.compose = css;
|
|
4561
4153
|
|
|
4562
4154
|
function media(query) {
|
|
4563
4155
|
for (var _len5 = arguments.length, rules = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
|
@@ -4798,6 +4390,4 @@ function attribsFor() {
|
|
|
4798
4390
|
}
|
|
4799
4391
|
});
|
|
4800
4392
|
|
|
4801
|
-
const index = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
4802
|
-
|
|
4803
4393
|
export { color as c, lib as l };
|