@nuxt-customer-portal/ui 0.10.0 → 0.10.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @nuxt-customer-portal/ui
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7c0f8df: Edit localized terms and privacy policies with the shared Markdown editor, render sanitized Markdown on legal pages, and add subtle localized links to the sidebar footer in expanded and collapsed modes.
|
|
8
|
+
- @nuxt-customer-portal/core@0.10.1
|
|
9
|
+
|
|
3
10
|
## 0.10.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps<{ collapsed?: boolean }>()
|
|
3
|
+
const emit = defineEmits<{ navigate: [] }>()
|
|
4
|
+
const { t } = useI18n()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<nav
|
|
9
|
+
:aria-label="t('portalLegal.navigation')"
|
|
10
|
+
class="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted"
|
|
11
|
+
:class="collapsed ? 'justify-center' : 'px-2'"
|
|
12
|
+
>
|
|
13
|
+
<NuxtLink
|
|
14
|
+
v-for="link in [
|
|
15
|
+
{ to: '/terms', label: t('portalLegal.terms'), icon: 'i-lucide-file-text' },
|
|
16
|
+
{ to: '/privacy', label: t('portalLegal.privacy'), icon: 'i-lucide-shield' }
|
|
17
|
+
]"
|
|
18
|
+
:key="link.to"
|
|
19
|
+
:to="link.to"
|
|
20
|
+
:title="collapsed ? link.label : undefined"
|
|
21
|
+
class="rounded hover:text-highlighted focus-visible:outline-2 focus-visible:outline-primary"
|
|
22
|
+
:class="collapsed ? 'flex min-h-8 min-w-8 items-center justify-center' : 'py-2'"
|
|
23
|
+
@click="emit('navigate')"
|
|
24
|
+
>
|
|
25
|
+
<UIcon v-if="collapsed" :name="link.icon" class="size-4" aria-hidden="true" />
|
|
26
|
+
<span :class="{ 'sr-only': collapsed }">{{ link.label }}</span>
|
|
27
|
+
</NuxtLink>
|
|
28
|
+
</nav>
|
|
29
|
+
</template>
|
package/app/layouts/default.vue
CHANGED
|
@@ -97,7 +97,8 @@ onMounted(async () => {
|
|
|
97
97
|
/>
|
|
98
98
|
</template>
|
|
99
99
|
<template #footer="{ collapsed, collapse }">
|
|
100
|
-
<div class="flex w-full py-2" :class="collapsed ? '
|
|
100
|
+
<div class="flex w-full items-center py-2" :class="collapsed ? 'flex-col' : 'justify-between'">
|
|
101
|
+
<PortalLegalLinks :collapsed="collapsed" @navigate="open = false" />
|
|
101
102
|
<UButton
|
|
102
103
|
:icon="collapsed ? 'i-lucide-panel-left-open' : 'i-lucide-panel-left-close'"
|
|
103
104
|
color="neutral"
|
package/i18n/locales/en.json
CHANGED
package/i18n/locales/nl.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt-customer-portal/ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://nuxt-customer-portal.com",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"remark-parse": "^11.0.0",
|
|
40
40
|
"unified": "^11.0.5",
|
|
41
41
|
"zod": "^4.4.3",
|
|
42
|
-
"@nuxt-customer-portal/core": "^0.10.
|
|
42
|
+
"@nuxt-customer-portal/core": "^0.10.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"nuxt": "^4.5.1",
|