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