@thecb/components 5.0.0-beta.2 → 5.0.0-beta.3
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/index.cjs.js +20 -19
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -16142,19 +16142,10 @@ function _assertThisInitialized(self) {
|
|
|
16142
16142
|
return self;
|
|
16143
16143
|
}
|
|
16144
16144
|
|
|
16145
|
-
function _setPrototypeOf(o, p) {
|
|
16146
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
16147
|
-
o.__proto__ = p;
|
|
16148
|
-
return o;
|
|
16149
|
-
};
|
|
16150
|
-
|
|
16151
|
-
return _setPrototypeOf(o, p);
|
|
16152
|
-
}
|
|
16153
|
-
|
|
16154
16145
|
function _inheritsLoose(subClass, superClass) {
|
|
16155
16146
|
subClass.prototype = Object.create(superClass.prototype);
|
|
16156
16147
|
subClass.prototype.constructor = subClass;
|
|
16157
|
-
|
|
16148
|
+
subClass.__proto__ = superClass;
|
|
16158
16149
|
}
|
|
16159
16150
|
|
|
16160
16151
|
function _getPrototypeOf(o) {
|
|
@@ -16164,6 +16155,15 @@ function _getPrototypeOf(o) {
|
|
|
16164
16155
|
return _getPrototypeOf(o);
|
|
16165
16156
|
}
|
|
16166
16157
|
|
|
16158
|
+
function _setPrototypeOf(o, p) {
|
|
16159
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
16160
|
+
o.__proto__ = p;
|
|
16161
|
+
return o;
|
|
16162
|
+
};
|
|
16163
|
+
|
|
16164
|
+
return _setPrototypeOf(o, p);
|
|
16165
|
+
}
|
|
16166
|
+
|
|
16167
16167
|
function _isNativeFunction(fn) {
|
|
16168
16168
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
16169
16169
|
}
|
|
@@ -16174,7 +16174,7 @@ function _isNativeReflectConstruct() {
|
|
|
16174
16174
|
if (typeof Proxy === "function") return true;
|
|
16175
16175
|
|
|
16176
16176
|
try {
|
|
16177
|
-
|
|
16177
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
|
16178
16178
|
return true;
|
|
16179
16179
|
} catch (e) {
|
|
16180
16180
|
return false;
|
|
@@ -16314,9 +16314,7 @@ var ERRORS = {
|
|
|
16314
16314
|
"73": "Please provide a valid CSS variable.\n\n",
|
|
16315
16315
|
"74": "CSS variable not found and no default was provided.\n\n",
|
|
16316
16316
|
"75": "important requires a valid style object, got a %s instead.\n\n",
|
|
16317
|
-
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n
|
|
16318
|
-
"77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
|
|
16319
|
-
"78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
|
|
16317
|
+
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
|
|
16320
16318
|
};
|
|
16321
16319
|
/**
|
|
16322
16320
|
* super basic version of sprintf
|
|
@@ -16658,7 +16656,7 @@ function parseToRgb(color) {
|
|
|
16658
16656
|
};
|
|
16659
16657
|
}
|
|
16660
16658
|
|
|
16661
|
-
var rgbaMatched = rgbaRegex.exec(normalizedColor
|
|
16659
|
+
var rgbaMatched = rgbaRegex.exec(normalizedColor);
|
|
16662
16660
|
|
|
16663
16661
|
if (rgbaMatched) {
|
|
16664
16662
|
return {
|
|
@@ -16689,7 +16687,7 @@ function parseToRgb(color) {
|
|
|
16689
16687
|
};
|
|
16690
16688
|
}
|
|
16691
16689
|
|
|
16692
|
-
var hslaMatched = hslaRegex.exec(normalizedColor
|
|
16690
|
+
var hslaMatched = hslaRegex.exec(normalizedColor);
|
|
16693
16691
|
|
|
16694
16692
|
if (hslaMatched) {
|
|
16695
16693
|
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
@@ -33886,9 +33884,12 @@ const createValidator = (type, error) => {
|
|
|
33886
33884
|
};
|
|
33887
33885
|
|
|
33888
33886
|
console.log("dayjs", dayjs_min);
|
|
33889
|
-
dayjs_min
|
|
33890
|
-
|
|
33891
|
-
|
|
33887
|
+
const extendedDayjs = dayjs_min
|
|
33888
|
+
.extend(customParseFormat)
|
|
33889
|
+
.extend(isSameOrBefore)
|
|
33890
|
+
.extend(isSameOrAfter);
|
|
33891
|
+
console.log("extended", extendedDayjs);
|
|
33892
|
+
console.log("old dayjs", dayjs_min);
|
|
33892
33893
|
|
|
33893
33894
|
let validatorFns = {};
|
|
33894
33895
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecb/components",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"description": "Common lib for CityBase react components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"ramda": "^0.27.0",
|
|
81
81
|
"react-aria-modal": "^4.0.0",
|
|
82
82
|
"react-pose": "^4.0.10",
|
|
83
|
-
"redux-freeform": "^5.1.0-beta.
|
|
83
|
+
"redux-freeform": "^5.1.0-beta.3"
|
|
84
84
|
}
|
|
85
85
|
}
|