* * @param {string} str
(str)
| 348 | * @param {string} str |
| 349 | */ |
| 350 | static #toPascal(str) { |
| 351 | // e.g. '--primary-color' => 'PrimaryColor' |
| 352 | return str |
| 353 | .replace(/^--/, "") |
| 354 | .replace(/-([a-z])/g, (g) => g[1].toUpperCase()); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | export function createBuiltInTheme(name, type, version = "paid") { |