create-antd-skin 1.3.1 → 1.3.2
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/README.md
CHANGED
|
@@ -23,7 +23,7 @@ npx create-antd-skin@latest parkWavesDark
|
|
|
23
23
|
- `pinkBlossomLight` - Light theme, minimalist style with pink blossoms;
|
|
24
24
|
- `pinkRomance` - Light theme, featuring a pink, romantic, glass-like aesthetic;
|
|
25
25
|
- `springVitality` - Light theme, inspired by the vibrancy of spring;
|
|
26
|
-
- `
|
|
26
|
+
- `vintageBrown` - Light theme, featuring a vintage, brown-toned, glass-like aesthetic;
|
|
27
27
|
|
|
28
28
|
## Related Links
|
|
29
29
|
|
package/bin/skin.js
CHANGED
|
@@ -86,7 +86,7 @@ export default [${exports}]
|
|
|
86
86
|
}
|
|
87
87
|
function toCamelCase(str) {
|
|
88
88
|
return str.replace(/-([a-z])/g, (_, group1) => group1.toUpperCase())
|
|
89
|
-
.replace(/^\w/, s => s.
|
|
89
|
+
.replace(/^\w/, s => s.toLowerCase());
|
|
90
90
|
}
|
|
91
91
|
// function toPascalCase(str: string) {
|
|
92
92
|
// return str
|
|
@@ -94,7 +94,8 @@ function toCamelCase(str) {
|
|
|
94
94
|
// .replace(/^[a-z]/, s => s.toUpperCase());
|
|
95
95
|
// }
|
|
96
96
|
function toKebabCase(str) {
|
|
97
|
-
|
|
97
|
+
const lowerFirst = str.charAt(0).toLowerCase() + str.slice(1);
|
|
98
|
+
return lowerFirst.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
98
99
|
}
|
|
99
100
|
async function installSkin(skinName) {
|
|
100
101
|
const cwd = process.cwd();
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<stop offset="1" stop-color="#d65d8d"/>
|
|
10
10
|
</linearGradient>
|
|
11
11
|
</defs>
|
|
12
|
-
<rect x="
|
|
12
|
+
<rect x="0" y="0" width="64" height="64" fill="url(#icon-bg)" />
|
|
13
13
|
<g fill="url(#petal)">
|
|
14
14
|
<ellipse cx="32" cy="21" rx="6.5" ry="10"/>
|
|
15
15
|
<ellipse cx="32" cy="21" rx="6.5" ry="10" transform="rotate(72 32 32)"/>
|