@micromag/core 0.3.476 → 0.3.477
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/es/index.js +18 -18
- package/lib/index.js +18 -18
- package/package.json +4 -6
package/es/index.js
CHANGED
|
@@ -75,6 +75,24 @@ function replace(input, re, value) {
|
|
|
75
75
|
}, input);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
function pascalCaseTransform(input, index) {
|
|
79
|
+
var firstChar = input.charAt(0);
|
|
80
|
+
var lowerChars = input.substr(1).toLowerCase();
|
|
81
|
+
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
82
|
+
return "_" + firstChar + lowerChars;
|
|
83
|
+
}
|
|
84
|
+
return "" + firstChar.toUpperCase() + lowerChars;
|
|
85
|
+
}
|
|
86
|
+
function pascalCase(input, options) {
|
|
87
|
+
if (options === void 0) {
|
|
88
|
+
options = {};
|
|
89
|
+
}
|
|
90
|
+
return noCase(input, __assign({
|
|
91
|
+
delimiter: "",
|
|
92
|
+
transform: pascalCaseTransform
|
|
93
|
+
}, options));
|
|
94
|
+
}
|
|
95
|
+
|
|
78
96
|
function dotCase(input, options) {
|
|
79
97
|
if (options === void 0) {
|
|
80
98
|
options = {};
|
|
@@ -981,24 +999,6 @@ var ColorsParser = /*#__PURE__*/function () {
|
|
|
981
999
|
return ColorsParser;
|
|
982
1000
|
}();
|
|
983
1001
|
|
|
984
|
-
function pascalCaseTransform(input, index) {
|
|
985
|
-
var firstChar = input.charAt(0);
|
|
986
|
-
var lowerChars = input.substr(1).toLowerCase();
|
|
987
|
-
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
988
|
-
return "_" + firstChar + lowerChars;
|
|
989
|
-
}
|
|
990
|
-
return "" + firstChar.toUpperCase() + lowerChars;
|
|
991
|
-
}
|
|
992
|
-
function pascalCase(input, options) {
|
|
993
|
-
if (options === void 0) {
|
|
994
|
-
options = {};
|
|
995
|
-
}
|
|
996
|
-
return noCase(input, __assign({
|
|
997
|
-
delimiter: "",
|
|
998
|
-
transform: pascalCaseTransform
|
|
999
|
-
}, options));
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
1002
|
var getComponentFromName = function getComponentFromName() {
|
|
1003
1003
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1004
1004
|
var components = arguments.length > 1 ? arguments[1] : undefined;
|
package/lib/index.js
CHANGED
|
@@ -77,6 +77,24 @@ function replace(input, re, value) {
|
|
|
77
77
|
}, input);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
function pascalCaseTransform(input, index) {
|
|
81
|
+
var firstChar = input.charAt(0);
|
|
82
|
+
var lowerChars = input.substr(1).toLowerCase();
|
|
83
|
+
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
84
|
+
return "_" + firstChar + lowerChars;
|
|
85
|
+
}
|
|
86
|
+
return "" + firstChar.toUpperCase() + lowerChars;
|
|
87
|
+
}
|
|
88
|
+
function pascalCase(input, options) {
|
|
89
|
+
if (options === void 0) {
|
|
90
|
+
options = {};
|
|
91
|
+
}
|
|
92
|
+
return noCase(input, tslib.__assign({
|
|
93
|
+
delimiter: "",
|
|
94
|
+
transform: pascalCaseTransform
|
|
95
|
+
}, options));
|
|
96
|
+
}
|
|
97
|
+
|
|
80
98
|
function dotCase(input, options) {
|
|
81
99
|
if (options === void 0) {
|
|
82
100
|
options = {};
|
|
@@ -983,24 +1001,6 @@ var ColorsParser = /*#__PURE__*/function () {
|
|
|
983
1001
|
return ColorsParser;
|
|
984
1002
|
}();
|
|
985
1003
|
|
|
986
|
-
function pascalCaseTransform(input, index) {
|
|
987
|
-
var firstChar = input.charAt(0);
|
|
988
|
-
var lowerChars = input.substr(1).toLowerCase();
|
|
989
|
-
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
990
|
-
return "_" + firstChar + lowerChars;
|
|
991
|
-
}
|
|
992
|
-
return "" + firstChar.toUpperCase() + lowerChars;
|
|
993
|
-
}
|
|
994
|
-
function pascalCase(input, options) {
|
|
995
|
-
if (options === void 0) {
|
|
996
|
-
options = {};
|
|
997
|
-
}
|
|
998
|
-
return noCase(input, tslib.__assign({
|
|
999
|
-
delimiter: "",
|
|
1000
|
-
transform: pascalCaseTransform
|
|
1001
|
-
}, options));
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
1004
|
var getComponentFromName = function getComponentFromName() {
|
|
1005
1005
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1006
1006
|
var components = arguments.length > 1 ? arguments[1] : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.477",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@uppy/xhr-upload": "^2.0.7",
|
|
128
128
|
"@use-gesture/react": "^10.3.0",
|
|
129
129
|
"bootstrap": "5.2.0-beta1",
|
|
130
|
-
"change-case": "^4.
|
|
130
|
+
"change-case": "^5.4.3",
|
|
131
131
|
"classnames": "^2.2.6",
|
|
132
132
|
"css-mediaquery": "^0.1.2",
|
|
133
133
|
"dayjs": "^1.11.10",
|
|
@@ -135,17 +135,15 @@
|
|
|
135
135
|
"flat": "^5.0.2",
|
|
136
136
|
"hoist-non-react-statics": "^3.3.2",
|
|
137
137
|
"lodash": "^4.17.21",
|
|
138
|
-
"param-case": "^3.0.4",
|
|
139
138
|
"prop-types": "^15.7.2",
|
|
140
139
|
"query-string": "^6.13.7",
|
|
141
140
|
"raf": "^3.4.1",
|
|
142
141
|
"react-helmet": "^6.1.0",
|
|
143
|
-
"react-intl": "^
|
|
142
|
+
"react-intl": "^6.6.2",
|
|
144
143
|
"react-router": "^5.2.0",
|
|
145
144
|
"react-router-dom": "^5.2.0",
|
|
146
145
|
"screenfull": "^5.1.0",
|
|
147
146
|
"slugify": "^1.6.5",
|
|
148
|
-
"snake-case": "^3.0.4",
|
|
149
147
|
"tinycolor2": "^1.4.2",
|
|
150
148
|
"uuid": "^9.0.0",
|
|
151
149
|
"webfontloader": "^1.6.28",
|
|
@@ -155,5 +153,5 @@
|
|
|
155
153
|
"access": "public",
|
|
156
154
|
"registry": "https://registry.npmjs.org/"
|
|
157
155
|
},
|
|
158
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "bb9bf58bc81bab88260ffd2f231abe01d9caa841"
|
|
159
157
|
}
|