@appscode/design-system 2.6.22-alpha-0.0.4 → 2.6.22

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/main.scss CHANGED
@@ -16,7 +16,6 @@
16
16
  // COMPONENTS
17
17
  // @import "@/components/vue-components/styles/components/all";
18
18
  @import "@/components/vue-components/styles/components/button";
19
- @import "@/components/vue-components/styles/components/table";
20
19
  @import "@/components/vue-components/styles/components/avatar";
21
20
  @import "@/components/vue-components/styles/components/terminal";
22
21
  @import "@/components/vue-components/styles/components/steps";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.6.22-alpha-0.0.4",
3
+ "version": "2.6.22",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -108,11 +108,6 @@ $spacing-values: (
108
108
  .width-#{$i} {
109
109
  width: #{$i}px !important;
110
110
  }
111
-
112
- .size-#{$i} {
113
- height: #{$i}px !important;
114
- width: #{$i}px !important;
115
- }
116
111
  }
117
112
 
118
113
  .height-auto {
@@ -34,14 +34,4 @@
34
34
  border-radius: 50%;
35
35
  }
36
36
  }
37
- img {
38
- background-color: #ddd;
39
- height: 100%;
40
- width: 100%;
41
- }
42
- }
43
- .avatar-group {
44
- .avatar {
45
- margin-left: -8px;
46
- }
47
37
  }
@@ -48,8 +48,8 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
48
48
  :key="idx + tag.value"
49
49
  :class="tag.class"
50
50
  :data-testid="idx === 0 ? 'cluster-status-text' : undefined"
51
- class="is-flex is-align-center gap-6"
52
- ><span v-if="tag?.isSpinner || false" class="is-flex gap-6"><SvgSpinners270Ring /></span
51
+ class="is-flex is-align-center gap-4"
52
+ ><span v-if="tag?.isSpinner || false" class="is-flex gap-4"><SvgSpinners270Ring /></span
53
53
  >{{ tag.value }}</span
54
54
  >
55
55
  </div>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineAsyncComponent, ref, watch } from "vue";
2
+ import { defineAsyncComponent } from "vue";
3
3
 
4
4
  interface Props {
5
5
  placeholder?: string;
@@ -13,13 +13,7 @@ withDefaults(defineProps<Props>(), {
13
13
  loading: false,
14
14
  withResult: false,
15
15
  });
16
- const emit = defineEmits(["handleSearch"]);
17
16
 
18
- const searchText = ref("");
19
-
20
- watch(searchText, (n) => {
21
- emit("handleSearch", n.trim());
22
- });
23
17
  const SearchIcon = defineAsyncComponent(() => import("./../icons/SearchIcon.vue"));
24
18
  const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vue"));
25
19
  </script>
@@ -32,7 +26,7 @@ const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vu
32
26
  <SearchIcon v-else />
33
27
  </span>
34
28
  </label>
35
- <input id="search" type="text" :placeholder="placeholder" class="pl-40" v-model="searchText" />
29
+ <input id="search" type="text" :placeholder="placeholder" class="pl-40" />
36
30
 
37
31
  <!-- use .is-absolute -->
38
32
  <div v-if="withResult" class="search-result-box panel is-fullwidth z-900">
@@ -1,93 +0,0 @@
1
- <script setup lang="ts">
2
- import { defineAsyncComponent, defineProps } from "vue";
3
- import BuildingIcon from "../icons/BuildingIcon.vue";
4
- import LinkIcon from "../icons/LinkIcon.vue";
5
- import MapIcon from "../icons/MapIcon.vue";
6
-
7
- interface TabItemType {
8
- label: string;
9
- href: string;
10
- icon: any;
11
- }
12
-
13
- interface PropsType {
14
- profileThumbnail?: string;
15
- displayName?: string;
16
- username?: string;
17
- location?: string;
18
- webURL?: string;
19
- tabs?: TabItemType[];
20
- }
21
-
22
- withDefaults(defineProps<PropsType>(), {
23
- profileThumbnail: "https://placehold.co/100x100",
24
- displayName: "John Doe",
25
- username: "@mohintest1",
26
- location: "Dhaka",
27
- webURL: "https://appscode.com",
28
- tabs: () => [
29
- { label: "Overview", href: "#", icon: BuildingIcon },
30
- { label: "Organizations", href: "#", icon: BuildingIcon },
31
- { label: "Activities", href: "#", icon: BuildingIcon },
32
- { label: "Settings", href: "#", icon: BuildingIcon },
33
- { label: "Site Administration", href: "#", icon: BuildingIcon },
34
- ],
35
- });
36
-
37
- // Avatar
38
- const Avatar = defineAsyncComponent(() => import("@/components/vue-components/v3/avatar/Avatar.vue"));
39
- // Tabs
40
- const TabsComponent = defineAsyncComponent(() => import("@/components/vue-components/v3/tab/Tabs.vue"));
41
- const TabItemComponent = defineAsyncComponent(() => import("@/components/vue-components/v3/tab/TabItem.vue"));
42
- </script>
43
-
44
- <template>
45
- <div class="profile-banner">
46
- <div class="container px-5">
47
- <div class="columns is-multiline">
48
- <div class="column is-12">
49
- <!-- user profile start -->
50
- <div class="user-profile">
51
- <div class="avatar is-flex gap-16">
52
- <!-- <slot name="avatar"> -->
53
- <Avatar size="48x48" :imgUrl="profileThumbnail" roundedClass="is-rounded-4" />
54
- <!-- </slot> -->
55
- <!-- <Avatar size="48x48" roundedClass="is-rounded-4" /> -->
56
- <div class="is-flex is-flex-direction-column">
57
- <h5 class="mb-0">{{ displayName }}</h5>
58
- <div class="is-flex is-align-items-center gap-24">
59
- <p>{{ username }}</p>
60
- <p class="is-flex is-align-items-center gap-4">
61
- <span class="icon"><MapIcon /></span>
62
- <span>{{ location }}</span>
63
- </p>
64
-
65
- <a :href="`${webURL}`" target="_blank" class="is-flex is-align-items-center gap-4">
66
- <span class="icon"><LinkIcon /></span>
67
- <span class="is-underlined">{{ webURL }}</span>
68
- </a>
69
- </div>
70
- </div>
71
- </div>
72
- </div>
73
- <!-- user profile start -->
74
- </div>
75
-
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
- </div>
91
- </div>
92
- </div>
93
- </template>
@@ -1,20 +0,0 @@
1
- <script setup>
2
- import { defineProps } from "vue";
3
- const props = defineProps({
4
- title: {
5
- type: String,
6
- default: "Appscodelabs",
7
- },
8
- logo: {
9
- type: String,
10
- default: "https://placehold.co/100x100",
11
- },
12
- url: {
13
- type: String,
14
- default: "#",
15
- },
16
- });
17
- </script>
18
- <template>
19
- <a :href="props.url" class="org-thumb" :title="props.title"><img :src="props.logo" :alt="props.title" /></a>
20
- </template>
@@ -1,13 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3
- <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
- <path
5
- fill="none"
6
- stroke="currentColor"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- stroke-width="1.5"
10
- d="M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008zm0 3h.008v.008h-.008zm0 3h.008v.008h-.008z"
11
- />
12
- </svg>
13
- </template>
@@ -1,11 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3
- <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
5
- <path
6
- d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87q.11.06.22.127c.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a8 8 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a7 7 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a7 7 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a7 7 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"
7
- />
8
- <path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0" />
9
- </g>
10
- </svg>
11
- </template>
@@ -1,13 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3
- <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
- <path
5
- fill="none"
6
- stroke="currentColor"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- stroke-width="1.5"
10
- d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"
11
- />
12
- </svg>
13
- </template>
@@ -1,9 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3
- <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
5
- <path d="M15 10.5a3 3 0 1 1-6 0a3 3 0 0 1 6 0" />
6
- <path d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0" />
7
- </g>
8
- </svg>
9
- </template>
@@ -1,13 +0,0 @@
1
- <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3
- <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
- <path
5
- fill="none"
6
- stroke="currentColor"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- stroke-width="1.5"
10
- d="M12 4.5v15m7.5-7.5h-15"
11
- />
12
- </svg>
13
- </template>
@@ -1,43 +0,0 @@
1
- <script setup>
2
- import { defineAsyncComponent, defineProps, ref, watch } from "vue";
3
- const props = defineProps({
4
- placeholder: {
5
- type: String,
6
- default: "Search what you are looking for...",
7
- },
8
- isFilter: {
9
- type: Boolean,
10
- default: false,
11
- },
12
- filterOptions: {
13
- type: Array,
14
- default: () => [
15
- { value: "all-cluster", text: "All Cluster" },
16
- { value: "active", text: "Active" },
17
- { value: "pending", text: "Pending" },
18
- ],
19
- },
20
- });
21
- const emit = defineEmits(["handleSearch", "handleFilter"]);
22
- function handleSearch(searchText) {
23
- emit("handleSearch", searchText);
24
- }
25
-
26
- const selectedFilter = ref("all-cluster");
27
-
28
- watch(selectedFilter, (n) => {
29
- emit("handleFilter", n);
30
- });
31
-
32
- const Searchbar = defineAsyncComponent(() => import("@/components/vue-components/v3/form-fields/Searchbar.vue"));
33
- </script>
34
- <template>
35
- <div class="filterable-searchbar is-flex">
36
- <Searchbar :placeholder="props.placeholder" @handleSearch="handleSearch" />
37
- <select class="select search-filter" v-show="props.isFilter" v-model="selectedFilter">
38
- <option v-for="option in filterOptions" :key="option.value" :value="option.value">
39
- {{ option.text }}
40
- </option>
41
- </select>
42
- </div>
43
- </template>
@@ -1,34 +0,0 @@
1
- <script setup>
2
- import CogIcon from "../../icons/CogIcon.vue";
3
-
4
- // Define the props to accept the data structure
5
- const props = defineProps({
6
- label: {
7
- type: String,
8
- default: "Default Label", // Optional default value
9
- },
10
- items: {
11
- type: Array,
12
- default: () => [],
13
- },
14
- });
15
- </script>
16
-
17
- <template>
18
- <div class="sidebar-style-2">
19
- <div class="left-sidebar">
20
- <!-- Iterate through each section (based on your sidebar JSON structure) -->
21
- <div class="sidebar-items" v-for="(data, idx) in props.items" :key="idx">
22
- <label class="label">{{ data.label }}</label>
23
-
24
- <!-- Iterate through the items inside each section -->
25
- <slot name="sidebar-item" v-for="(item, idx) in data.items" :key="idx" :item="item">
26
- <a :href="item.link || '#'" class="sidebar-item" :class="{ 'is-active': item.isActive }">
27
- <span class="icon"><component :is="item.icon || CogIcon" /></span>
28
- <span>{{ item.text }}</span>
29
- </a>
30
- </slot>
31
- </div>
32
- </div>
33
- </div>
34
- </template>
@@ -1,58 +0,0 @@
1
- <script setup lang="ts">
2
- import Avatar from "../../avatar/Avatar.vue";
3
-
4
- interface Organization {
5
- name: string;
6
- logo: string;
7
- description: string;
8
- clusters: number;
9
- members: Array<{
10
- name: string;
11
- avatar: string;
12
- }>;
13
- }
14
-
15
- defineProps<{ organizations: Organization[] }>();
16
- </script>
17
-
18
- <template>
19
- <table class="table ac-table is-fullwidth b-1 is-middle">
20
- <thead>
21
- <tr>
22
- <th>Organizations</th>
23
- <th class="has-text-right">Clusters</th>
24
- <th class="has-text-right">Members</th>
25
- </tr>
26
- </thead>
27
-
28
- <tbody>
29
- <tr v-for="(org, index) in organizations" :key="index" class="is-clickable">
30
- <td>
31
- <div class="is-flex gap-8">
32
- <div class="org-thumb">
33
- <img :src="org.logo" :alt="org.name" />
34
- </div>
35
- <div class="is-flex is-flex-direction-column">
36
- <h5>{{ org.name }}</h5>
37
- <p>{{ org.description }}</p>
38
- </div>
39
- </div>
40
- </td>
41
-
42
- <td class="has-text-right">{{ org.clusters }}</td>
43
- <td class="has-text-right">
44
- <div class="is-flex is-justify-content-flex-end avatar-group">
45
- <Avatar
46
- v-for="(member, idx) in org.members"
47
- :key="idx"
48
- :rounded="true"
49
- size="24x24"
50
- :src="member.avatar"
51
- :alt="member.name"
52
- />
53
- </div>
54
- </td>
55
- </tr>
56
- </tbody>
57
- </table>
58
- </template>