@appscode/design-system 2.6.22-alpha-0.0.3 → 2.6.22-alpha-0.0.5
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/package.json
CHANGED
|
@@ -4,22 +4,22 @@ import BuildingIcon from "../icons/BuildingIcon.vue";
|
|
|
4
4
|
import LinkIcon from "../icons/LinkIcon.vue";
|
|
5
5
|
import MapIcon from "../icons/MapIcon.vue";
|
|
6
6
|
|
|
7
|
-
interface
|
|
7
|
+
interface TabItemType {
|
|
8
8
|
label: string;
|
|
9
9
|
href: string;
|
|
10
10
|
icon: any;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface
|
|
13
|
+
interface PropsType {
|
|
14
14
|
profileThumbnail?: string;
|
|
15
15
|
displayName?: string;
|
|
16
16
|
username?: string;
|
|
17
17
|
location?: string;
|
|
18
18
|
webURL?: string;
|
|
19
|
-
tabs?:
|
|
19
|
+
tabs?: TabItemType[];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
withDefaults(defineProps<
|
|
22
|
+
withDefaults(defineProps<PropsType>(), {
|
|
23
23
|
profileThumbnail: "https://placehold.co/100x100",
|
|
24
24
|
displayName: "John Doe",
|
|
25
25
|
username: "@mohintest1",
|
|
@@ -35,10 +35,10 @@ withDefaults(defineProps<Props>(), {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
// Avatar
|
|
38
|
-
const Avatar = defineAsyncComponent(() => import("
|
|
38
|
+
const Avatar = defineAsyncComponent(() => import("../avatar/Avatar.vue"));
|
|
39
39
|
// Tabs
|
|
40
|
-
const
|
|
41
|
-
const
|
|
40
|
+
const TabsComponent = defineAsyncComponent(() => import("../tab/Tabs.vue"));
|
|
41
|
+
const TabItemComponent = defineAsyncComponent(() => import("../tab/TabItem.vue"));
|
|
42
42
|
</script>
|
|
43
43
|
|
|
44
44
|
<template>
|
|
@@ -49,9 +49,9 @@ const TabItem = defineAsyncComponent(() => import("@/components/vue-components/v
|
|
|
49
49
|
<!-- user profile start -->
|
|
50
50
|
<div class="user-profile">
|
|
51
51
|
<div class="avatar is-flex gap-16">
|
|
52
|
-
<slot name="avatar">
|
|
53
|
-
|
|
54
|
-
</slot>
|
|
52
|
+
<!-- <slot name="avatar"> -->
|
|
53
|
+
<Avatar size="48x48" :imgUrl="profileThumbnail" roundedClass="is-rounded-4" />
|
|
54
|
+
<!-- </slot> -->
|
|
55
55
|
<!-- <Avatar size="48x48" roundedClass="is-rounded-4" /> -->
|
|
56
56
|
<div class="is-flex is-flex-direction-column">
|
|
57
57
|
<h5 class="mb-0">{{ displayName }}</h5>
|
|
@@ -73,20 +73,20 @@ const TabItem = defineAsyncComponent(() => import("@/components/vue-components/v
|
|
|
73
73
|
<!-- user profile start -->
|
|
74
74
|
</div>
|
|
75
75
|
|
|
76
|
-
<slot name="tabs-menu">
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</slot>
|
|
76
|
+
<!-- <slot name="tabs-menu"> -->
|
|
77
|
+
<!-- tabs area start -->
|
|
78
|
+
<div class="column is-12">
|
|
79
|
+
<tabs-component class="solid-tab px-3">
|
|
80
|
+
<tab-item-component v-for="(tab, index) in tabs" :key="index" :class="{ 'is-active': index === 0 }">
|
|
81
|
+
<a :href="tab.href">
|
|
82
|
+
<span class="icon"><component :is="tab.icon" /></span>
|
|
83
|
+
<span>{{ tab.label }}</span>
|
|
84
|
+
</a>
|
|
85
|
+
</tab-item-component>
|
|
86
|
+
</tabs-component>
|
|
87
|
+
</div>
|
|
88
|
+
<!-- tabs area end -->
|
|
89
|
+
<!-- </slot> -->
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
</div>
|
|
@@ -29,7 +29,7 @@ watch(selectedFilter, (n) => {
|
|
|
29
29
|
emit("handleFilter", n);
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
const Searchbar = defineAsyncComponent(() => import("
|
|
32
|
+
const Searchbar = defineAsyncComponent(() => import("../form-fields/Searchbar.vue"));
|
|
33
33
|
</script>
|
|
34
34
|
<template>
|
|
35
35
|
<div class="filterable-searchbar is-flex">
|