sprintify-ui 0.10.69 → 0.10.71
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.
|
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
};
|
|
13
|
+
showLink: {
|
|
14
|
+
default: boolean;
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
13
17
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
18
|
remove: (...args: any[]) => void;
|
|
15
19
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -21,9 +25,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
25
|
default: boolean;
|
|
22
26
|
type: BooleanConstructor;
|
|
23
27
|
};
|
|
28
|
+
showLink: {
|
|
29
|
+
default: boolean;
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
24
32
|
}>> & Readonly<{
|
|
25
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
26
34
|
}>, {
|
|
27
35
|
showRemove: boolean;
|
|
36
|
+
showLink: boolean;
|
|
28
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
38
|
export default _default;
|
package/package.json
CHANGED
|
@@ -11,11 +11,11 @@ const breadcrumbs = [
|
|
|
11
11
|
to: "/users",
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
label: "
|
|
14
|
+
label: "Very long title this is a very long title that will be truncated Very long title this is a very long title that will be truncated",
|
|
15
15
|
to: "/users/1",
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
label: "Very long title this is a very long title that will be truncated",
|
|
18
|
+
label: "Very long title this is a very long title that will be truncated Very long title this is a very long title that will be truncated",
|
|
19
19
|
to: "/users/1/settings",
|
|
20
20
|
},
|
|
21
21
|
];
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<nav
|
|
4
4
|
v-if="breadcrumbs.length > 0"
|
|
5
|
-
class="hidden sm:flex"
|
|
5
|
+
class="hidden overflow-hidden w-full sm:flex"
|
|
6
6
|
aria-label="Breadcrumb"
|
|
7
7
|
>
|
|
8
8
|
<ol
|
|
9
9
|
role="list"
|
|
10
|
-
class="flex items-center space-x-2"
|
|
10
|
+
class="flex items-center space-x-2 w-full overflow-hidden"
|
|
11
11
|
>
|
|
12
12
|
<li
|
|
13
13
|
v-for="(breadcrumb, index) in breadcrumbs"
|
|
14
14
|
:key="index"
|
|
15
|
+
class="overflow-hidden"
|
|
15
16
|
>
|
|
16
|
-
<div class="flex items-center">
|
|
17
|
+
<div class="flex items-center overflow-hidden">
|
|
17
18
|
<div
|
|
18
19
|
v-if="index > 0"
|
|
19
20
|
class="text-gray-300"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
>
|
|
30
31
|
<a
|
|
31
32
|
:href="href"
|
|
32
|
-
class="text-sm"
|
|
33
|
+
class="text-sm overflow-hidden"
|
|
33
34
|
:class="[
|
|
34
35
|
{ 'ml-2': index > 0 },
|
|
35
36
|
isExactActive
|
|
@@ -46,9 +47,10 @@
|
|
|
46
47
|
</span>
|
|
47
48
|
<span
|
|
48
49
|
v-else
|
|
49
|
-
|
|
50
|
+
class="truncate block"
|
|
51
|
+
:class="{ 'text-sm': size == 'md', 'text-xs': size == 'sm', 'max-w-[140px]': index < breadcrumbs.length - 1, }"
|
|
50
52
|
>
|
|
51
|
-
{{
|
|
53
|
+
{{ breadcrumb.label }}
|
|
52
54
|
</span>
|
|
53
55
|
</a>
|
|
54
56
|
</RouterLink>
|
|
@@ -60,9 +62,9 @@
|
|
|
60
62
|
<RouterLink
|
|
61
63
|
v-if="mobileBreadcrumb"
|
|
62
64
|
:to="mobileBreadcrumb.to"
|
|
63
|
-
class="block text-slate-600 sm:hidden"
|
|
65
|
+
class="block text-slate-600 sm:hidden overflow-hidden"
|
|
64
66
|
>
|
|
65
|
-
<div class="flex items-center">
|
|
67
|
+
<div class="flex items-center overflow-hidden">
|
|
66
68
|
<svg
|
|
67
69
|
class="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-slate-500"
|
|
68
70
|
viewBox="0 0 20 20"
|
|
@@ -75,7 +77,10 @@
|
|
|
75
77
|
clip-rule="evenodd"
|
|
76
78
|
></path>
|
|
77
79
|
</svg>
|
|
78
|
-
<span
|
|
80
|
+
<span
|
|
81
|
+
class="truncate"
|
|
82
|
+
:class="{ 'text-sm': size == 'md', 'text-xs': size == 'sm' }"
|
|
83
|
+
>
|
|
79
84
|
{{ mobileBreadcrumb.label }}
|
|
80
85
|
</span>
|
|
81
86
|
</div>
|
|
@@ -60,6 +60,10 @@ const props = defineProps({
|
|
|
60
60
|
default: true,
|
|
61
61
|
type: Boolean,
|
|
62
62
|
},
|
|
63
|
+
showLink: {
|
|
64
|
+
default: true,
|
|
65
|
+
type: Boolean,
|
|
66
|
+
},
|
|
63
67
|
});
|
|
64
68
|
|
|
65
69
|
const name = computed(() => {
|
|
@@ -71,6 +75,11 @@ const size = computed(() => {
|
|
|
71
75
|
});
|
|
72
76
|
|
|
73
77
|
const url = computed(() => {
|
|
78
|
+
|
|
79
|
+
if (!props.showLink) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
74
83
|
if ('url' in props.media) {
|
|
75
84
|
return props.media.url;
|
|
76
85
|
}
|