kmcom-nuxt-layers 1.6.15 → 1.6.17

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.
@@ -29,6 +29,8 @@ export default defineNuxtPlugin((nuxtApp) => {
29
29
 
30
30
  // console.log('[Loading Plugin] Config:', coreLayer?.loading)
31
31
 
32
+ if ((config.layers as Record<string, boolean> | undefined)?.core === false) return
33
+
32
34
  // Check if loading is enabled
33
35
  if (coreLayer?.loading?.enabled === false) {
34
36
  // console.log('[Loading Plugin] Disabled')
@@ -24,6 +24,8 @@ export default defineNuxtPlugin(() => {
24
24
  const config = useAppConfig()
25
25
  const coreLayer = config.coreLayer as CoreLayerConfig | undefined
26
26
 
27
+ if ((config.layers as Record<string, boolean> | undefined)?.core === false) return
28
+
27
29
  if (coreLayer?.scrollGuard?.enabled === false) {
28
30
  if (import.meta.dev) {
29
31
  // eslint-disable-next-line no-console
@@ -1,4 +1,7 @@
1
1
  export default defineNuxtPlugin(() => {
2
+ const config = useAppConfig()
3
+ if ((config.layers as Record<string, boolean> | undefined)?.theme === false) return
4
+
2
5
  // Initialize shared composables — applies data-theme-colour, data-theme-contrast,
3
6
  // data-theme-motion, and data-theme-transparency on <html> on first load.
4
7
  useTheme()
@@ -44,7 +44,14 @@ const props = withDefaults(
44
44
  )
45
45
 
46
46
  const tag = computed(() => `h${props.level}` as const)
47
- const sizeClass = computed(() => `text-${props.size}`)
47
+
48
+ const sizeMap: Record<string, string> = {
49
+ screen: 'text-screen',
50
+ 'screen-xl': 'text-screen-xl',
51
+ 'screen-xxl': 'text-screen-xxl',
52
+ 'screen-xxxl': 'text-screen-xxxl',
53
+ }
54
+ const sizeClass = computed(() => sizeMap[props.size] ?? 'text-screen-xxl')
48
55
 
49
56
  const { classes } = useTypography({
50
57
  weight: props.weight,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "1.6.15",
4
+ "version": "1.6.17",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "files": [
7
7
  "layers/*/nuxt.config.ts",