From 19e1a3a4216131f768467b50b0dcf7908509cc9b Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sat, 23 Dec 2023 11:51:01 +0100 Subject: [PATCH] chore(deps): update dependency change-case to v5 --- packages/core/classes/Theme.js | 4 ++-- packages/core/composables/useFonts.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/classes/Theme.js b/packages/core/classes/Theme.js index c60af947e..22202d2ba 100644 --- a/packages/core/classes/Theme.js +++ b/packages/core/classes/Theme.js @@ -1,4 +1,4 @@ -import { paramCase } from 'change-case'; +import { kebabCase } from 'change-case'; export const DEFAULT_PALETTE_THEME = 'default'; export const PALETTE_THEMES = { default: { @@ -335,7 +335,7 @@ function generateVars(colors, name = '', result = {}) { }); return result; } else { - result[`--${paramCase(name)}`] = colors; + result[`--${kebabCase(name)}`] = colors; return result; } } diff --git a/packages/core/composables/useFonts.js b/packages/core/composables/useFonts.js index f5bee9b5e..d3fe54f47 100644 --- a/packages/core/composables/useFonts.js +++ b/packages/core/composables/useFonts.js @@ -1,4 +1,4 @@ -import { paramCase } from 'change-case'; +import { kebabCase } from 'change-case'; import AmigaTopaz13 from '../assets/fonts/Amiga-Topaz-13/Amiga-Topaz-13.woff2'; import AmigaTopaz13Console from '../assets/fonts/Amiga-Topaz-13-Console/Amiga-Topaz-13-Console.woff2'; import BitFont from '../assets/fonts/BitFont/BitFont.woff2'; @@ -10,7 +10,7 @@ export default function useFonts() { .filter(font => font.preload) .map(font => { return { - key: `preload-${paramCase(font.fontFamily)}`, + key: `preload-${kebabCase(font.fontFamily)}`, rel: 'preload', as: 'font', href: font.src[0],