@xenterprises/nuxt-x-marketing 1.13.0 → 1.14.0
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
|
@@ -30,6 +30,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
30
30
|
section and its sample product data were dropped with them. Every other section of the
|
|
31
31
|
demo page is unchanged.
|
|
32
32
|
|
|
33
|
+
## [1.14.0] - 2026-10-13
|
|
34
|
+
|
|
35
|
+
Opt-in; without `container`, XMarkBreadcrumb renders byte-identical to 1.13.0.
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- **`XMarkBreadcrumb container`**: same values and classes as XMarkSection (`sm`, `md`, `lg`, `xl`,
|
|
40
|
+
`full`, `none`). Empty (default) adds nothing. `container="lg"` lines the trail up with
|
|
41
|
+
XMarkSection/XMarkHero content (112px at 1440). XMarkBreadcrumb added to `componentList.json`.
|
|
42
|
+
|
|
33
43
|
## [1.13.0] - 2026-10-13
|
|
34
44
|
|
|
35
45
|
Opt-in; plain-string answers render byte-identical to 1.12.0.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<nav
|
|
2
|
+
<nav
|
|
3
|
+
v-if="container"
|
|
4
|
+
class="x-mark-breadcrumb"
|
|
5
|
+
:class="containerClasses"
|
|
6
|
+
aria-label="Breadcrumb"
|
|
7
|
+
>
|
|
8
|
+
<UBreadcrumb :items="resolvedItems" />
|
|
9
|
+
</nav>
|
|
10
|
+
<nav v-else class="x-mark-breadcrumb" aria-label="Breadcrumb">
|
|
3
11
|
<UBreadcrumb :items="resolvedItems" />
|
|
4
12
|
</nav>
|
|
5
13
|
</template>
|
|
@@ -47,6 +55,27 @@ const props = defineProps({
|
|
|
47
55
|
type: String,
|
|
48
56
|
default: "",
|
|
49
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* 1.14.0, opt-in: wrap in the same container as XMarkSection (sm, md, lg, xl, full, none).
|
|
60
|
+
* Empty (default) renders exactly as before, with no container classes.
|
|
61
|
+
*/
|
|
62
|
+
container: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "",
|
|
65
|
+
validator: (v) => ["", "sm", "md", "lg", "xl", "full", "none"].includes(v),
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const containerClasses = computed(() => {
|
|
70
|
+
const containers = {
|
|
71
|
+
sm: "max-w-[42rem] mx-auto px-4 sm:px-6",
|
|
72
|
+
md: "max-w-[64rem] mx-auto px-4 sm:px-6 lg:px-8",
|
|
73
|
+
lg: "max-w-[80rem] mx-auto px-4 sm:px-6 lg:px-8",
|
|
74
|
+
xl: "max-w-[96rem] mx-auto px-4 sm:px-6 lg:px-8",
|
|
75
|
+
full: "w-full px-4 sm:px-6 lg:px-8",
|
|
76
|
+
none: "",
|
|
77
|
+
};
|
|
78
|
+
return containers[props.container] || "";
|
|
50
79
|
});
|
|
51
80
|
|
|
52
81
|
const sectionDefaults = {
|