kmcom-nuxt-layers 5.0.2 → 5.0.4

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.
@@ -47,7 +47,7 @@
47
47
  <UModal
48
48
  v-model:open="open"
49
49
  fullscreen
50
- :ui="{ content: 'bg-black/95 flex items-center justify-center' }"
50
+ :ui="{ content: 'flex items-center justify-center bg-black/95' }"
51
51
  >
52
52
  <template #content>
53
53
  <div class="relative flex h-full w-full items-center justify-center p-4">
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import type { LinkProps } from '@nuxt/ui'
2
3
  import type { UiColors } from '#layers/typography/types/colors'
3
4
 
4
5
  defineOptions({ inheritAttrs: false })
@@ -17,15 +18,14 @@
17
18
  color?: UiColors
18
19
  }>()
19
20
  const colorClass = useColor(color, 'text')
21
+ // `name` is a plain string here, not one of the app's typed route names
22
+ const to = computed(
23
+ () => ({ name, params: params ?? {}, query: query ?? {} }) as unknown as LinkProps['to']
24
+ )
20
25
  </script>
21
26
 
22
27
  <template>
23
- <ULink
24
- :to="{ name: name, params: params, query: query }"
25
- :variant
26
- :class="colorClass"
27
- v-bind="$attrs"
28
- >
28
+ <ULink :to :variant :class="colorClass" v-bind="$attrs">
29
29
  <slot />
30
30
  </ULink>
31
31
  </template>
@@ -14,6 +14,7 @@
14
14
  const activeSection = useState<string>('activeSection', () => '')
15
15
  const route = useRoute()
16
16
  const { close: closeNav } = useMastNav()
17
+ const { useZIndex } = useGridConfig()
17
18
 
18
19
  function dismiss() {
19
20
  emit('update:open', false)
@@ -38,7 +39,7 @@
38
39
  <div
39
40
  v-if="open"
40
41
  class="bg-default text-default fixed inset-0 flex flex-col items-center justify-center"
41
- :style="{ zIndex: useGridConfig().useZIndex('modal') }"
42
+ :style="{ zIndex: useZIndex('modal') }"
42
43
  >
43
44
  <button
44
45
  class="absolute top-[3vh] right-[5vw] cursor-pointer border-0 bg-transparent p-2"
@@ -1,5 +1,9 @@
1
+ <script setup lang="ts">
2
+ const site = useSite()
3
+ </script>
4
+
1
5
  <template>
2
- <span v-for="(word, index) in useSite().subtitleWords" :key="index" class="site-word">
6
+ <span v-for="(word, index) in site.subtitleWords" :key="index" class="site-word">
3
7
  {{ word }}
4
8
  </span>
5
9
  </template>
@@ -1,5 +1,9 @@
1
+ <script setup lang="ts">
2
+ const site = useSite()
3
+ </script>
4
+
1
5
  <template>
2
- <span v-for="(word, index) in useSite().titleWords" :key="index" class="site-word">
6
+ <span v-for="(word, index) in site.titleWords" :key="index" class="site-word">
3
7
  {{ word }}
4
8
  </span>
5
9
  </template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "5.0.2",
4
+ "version": "5.0.4",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",