@thecb/components 5.0.0-beta.5 → 5.0.0-beta.8
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/.eslintrc.json +6 -1
- package/dist/index.cjs.js +3 -25
- package/package.json +4 -3
package/.eslintrc.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"version": "detect"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
|
-
"parser": "babel-
|
|
9
|
+
"parser": "@babel/eslint-parser",
|
|
10
10
|
"rules": {
|
|
11
11
|
"react/jsx-filename-extension": 0,
|
|
12
12
|
"react/prop-types": 0,
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"sourceType": "module",
|
|
25
25
|
"ecmaFeatures": {
|
|
26
26
|
"jsx": true
|
|
27
|
+
},
|
|
28
|
+
"babelOptions": {
|
|
29
|
+
"presets": [
|
|
30
|
+
"@babel/preset-react"
|
|
31
|
+
]
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -33046,32 +33046,14 @@ var customParseFormat = createCommonjsModule$1(function (module, exports) {
|
|
|
33046
33046
|
!function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},s=function(t){return (t=+t)+(t>68?1900:2e3)};var a=function(t){return function(e){this[t]=+e;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t);}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=h(t,!1);}],a:[i,function(t){this.afternoon=h(t,!0);}],S:[/\d/,function(t){this.milliseconds=100*+t;}],SS:[n,function(t){this.milliseconds=10*+t;}],SSS:[/\d{3}/,function(t){this.milliseconds=+t;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=s.length,f=0;f<a;f+=1){var u=s[f],h=d[u],c=h&&h[0],l=h&&h[1];s[f]=l?{regex:c,parser:l}:u.replace(/^\[|\]$/g,"");}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,u=t.substr(r),h=o.exec(u)[0];f.call(e,h),t=t.replace(h,"");}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon;}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,s=t.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],u=!0===s[3],h=f||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=c(e)(t),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,u=r.seconds,h=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=u||0,g=h||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(t){return new Date("")}}(e,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),h&&e!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,t);};}}));
|
|
33047
33047
|
});
|
|
33048
33048
|
|
|
33049
|
-
var customParseFormat$1 = /*#__PURE__*/Object.freeze({
|
|
33050
|
-
__proto__: null,
|
|
33051
|
-
'default': customParseFormat,
|
|
33052
|
-
__moduleExports: customParseFormat
|
|
33053
|
-
});
|
|
33054
|
-
|
|
33055
33049
|
var isSameOrBefore = createCommonjsModule$1(function (module, exports) {
|
|
33056
33050
|
!function(e,i){module.exports=i();}(commonjsGlobal$1,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
|
|
33057
33051
|
});
|
|
33058
33052
|
|
|
33059
|
-
var isSameOrBefore$1 = /*#__PURE__*/Object.freeze({
|
|
33060
|
-
__proto__: null,
|
|
33061
|
-
'default': isSameOrBefore,
|
|
33062
|
-
__moduleExports: isSameOrBefore
|
|
33063
|
-
});
|
|
33064
|
-
|
|
33065
33053
|
var isSameOrAfter = createCommonjsModule$1(function (module, exports) {
|
|
33066
33054
|
!function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
|
|
33067
33055
|
});
|
|
33068
33056
|
|
|
33069
|
-
var isSameOrAfter$1 = /*#__PURE__*/Object.freeze({
|
|
33070
|
-
__proto__: null,
|
|
33071
|
-
'default': isSameOrAfter,
|
|
33072
|
-
__moduleExports: isSameOrAfter
|
|
33073
|
-
});
|
|
33074
|
-
|
|
33075
33057
|
/* eslint-disable no-unused-vars */
|
|
33076
33058
|
|
|
33077
33059
|
const createValidator = (type, error) => {
|
|
@@ -33080,13 +33062,9 @@ const createValidator = (type, error) => {
|
|
|
33080
33062
|
return validator;
|
|
33081
33063
|
};
|
|
33082
33064
|
|
|
33083
|
-
|
|
33084
|
-
|
|
33085
|
-
|
|
33086
|
-
.extend(isSameOrBefore$1)
|
|
33087
|
-
.extend(isSameOrAfter$1);
|
|
33088
|
-
console.log("extended", extendedDayjs);
|
|
33089
|
-
console.log("old dayjs", dayjs_min);
|
|
33065
|
+
dayjs_min.extend(customParseFormat);
|
|
33066
|
+
dayjs_min.extend(isSameOrBefore);
|
|
33067
|
+
dayjs_min.extend(isSameOrAfter);
|
|
33090
33068
|
|
|
33091
33069
|
let validatorFns = {};
|
|
33092
33070
|
|
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.8",
|
|
4
4
|
"description": "Common lib for CityBase react components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"homepage": "https://github.com/CityBaseInc/cb-components#readme",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/core": "^7.0.0-0",
|
|
24
|
+
"@babel/eslint-parser": "^7.15.8",
|
|
24
25
|
"@babel/preset-env": "^7.6.0",
|
|
25
26
|
"@babel/preset-react": "^7.0.0",
|
|
26
27
|
"@babel/register": "^7.6.2",
|
|
@@ -34,7 +35,6 @@
|
|
|
34
35
|
"@storybook/addon-viewport": "^5.3.14",
|
|
35
36
|
"@storybook/react": "^5.3.14",
|
|
36
37
|
"babel-core": "^6.26.3",
|
|
37
|
-
"babel-eslint": "^10.1.0",
|
|
38
38
|
"babel-loader": "^8.1.0",
|
|
39
39
|
"babel-preset-env": "^1.7.0",
|
|
40
40
|
"babel-preset-react": "^6.24.1",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
+
"@babel/runtime": "^7.15.4",
|
|
76
77
|
"formatted-input": "^0.1.3",
|
|
77
78
|
"framer-motion": "^1.11.0",
|
|
78
79
|
"numeral": "^2.0.6",
|
|
@@ -80,6 +81,6 @@
|
|
|
80
81
|
"ramda": "^0.27.0",
|
|
81
82
|
"react-aria-modal": "^4.0.0",
|
|
82
83
|
"react-pose": "^4.0.10",
|
|
83
|
-
"redux-freeform": "^5.1.0-beta.
|
|
84
|
+
"redux-freeform": "^5.1.0-beta.5"
|
|
84
85
|
}
|
|
85
86
|
}
|