@appscode/design-system 2.7.15 → 2.7.17
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 +1 -1
- package/vue-components/v3/form-fields/Searchbar.vue +8 -1
- package/vue-components/v3/navbar/Navbar.vue +6 -1
- package/vue-components/v3/searchbars/FilterableSearchBar.vue +2 -2
- package/vue-components/v3/section/SectionContent.vue +10 -2
- package/vue-components/v3/sidebar/basic-sidebar/Items.vue +1 -1
- package/vue-components/v3/sidebar/basic-sidebar/Sidebar.vue +1 -1
package/package.json
CHANGED
|
@@ -32,7 +32,14 @@ const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vu
|
|
|
32
32
|
<SearchIcon v-else />
|
|
33
33
|
</span>
|
|
34
34
|
</label>
|
|
35
|
-
<input
|
|
35
|
+
<input
|
|
36
|
+
id="search"
|
|
37
|
+
type="text"
|
|
38
|
+
:placeholder="placeholder"
|
|
39
|
+
data-testid="searchbar-button"
|
|
40
|
+
class="pl-40"
|
|
41
|
+
v-model="searchText"
|
|
42
|
+
/>
|
|
36
43
|
|
|
37
44
|
<!-- use .is-absolute -->
|
|
38
45
|
<div v-if="withResult" class="search-result-box panel is-fullwidth z-900">
|
|
@@ -20,7 +20,12 @@ withDefaults(defineProps<Props>(), {
|
|
|
20
20
|
<!-- navbar start -->
|
|
21
21
|
<nav class="ac-navbar">
|
|
22
22
|
<!-- navbar logo start -->
|
|
23
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
class="ac-navbar-brand is-flex"
|
|
25
|
+
data-testid="navbar-brand-logo"
|
|
26
|
+
v-if="fullWidth"
|
|
27
|
+
:class="{ 'pl-0': container }"
|
|
28
|
+
>
|
|
24
29
|
<slot name="navbar-brand-logo" />
|
|
25
30
|
<span v-if="productName" class="brand-tag">{{ productName }}</span>
|
|
26
31
|
</div>
|
|
@@ -32,9 +32,9 @@ watch(selectedFilter, (n) => {
|
|
|
32
32
|
const Searchbar = defineAsyncComponent(() => import("../form-fields/Searchbar.vue"));
|
|
33
33
|
</script>
|
|
34
34
|
<template>
|
|
35
|
-
<div class="filterable-searchbar is-flex">
|
|
35
|
+
<div class="filterable-searchbar is-flex" data-testid="filterable-searchbar">
|
|
36
36
|
<Searchbar :placeholder="props.placeholder" @handleSearch="handleSearch" />
|
|
37
|
-
<select class="select search-filter" v-show="props.isFilter" v-model="selectedFilter">
|
|
37
|
+
<select class="select search-filter" data-testid="select-filter" v-show="props.isFilter" v-model="selectedFilter">
|
|
38
38
|
<option v-for="option in filterOptions" :key="option.value" :value="option.value">
|
|
39
39
|
{{ option.text }}
|
|
40
40
|
</option>
|
|
@@ -12,6 +12,7 @@ interface Props {
|
|
|
12
12
|
custom?: boolean;
|
|
13
13
|
hasBackButton?: boolean;
|
|
14
14
|
resetStyle?: boolean;
|
|
15
|
+
bodyPadding?: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
withDefaults(defineProps<Props>(), {
|
|
@@ -20,6 +21,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
20
21
|
custom: false,
|
|
21
22
|
hasBackButton: false,
|
|
22
23
|
resetStyle: false,
|
|
24
|
+
bodyPadding: "p-16",
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
const isOpen = ref(true);
|
|
@@ -39,7 +41,13 @@ function handleBack() {
|
|
|
39
41
|
:class="{ 'mb-8': resetStyle }"
|
|
40
42
|
>
|
|
41
43
|
<header-items>
|
|
42
|
-
<button
|
|
44
|
+
<button
|
|
45
|
+
v-if="hasBackButton"
|
|
46
|
+
title="Back"
|
|
47
|
+
class="ac-back-button"
|
|
48
|
+
@click="handleBack"
|
|
49
|
+
data-testid="back-button"
|
|
50
|
+
>
|
|
43
51
|
<HeroiconsArrowUturnLeft20Solid />
|
|
44
52
|
</button>
|
|
45
53
|
<header-item>
|
|
@@ -60,7 +68,7 @@ function handleBack() {
|
|
|
60
68
|
</div>
|
|
61
69
|
</div>
|
|
62
70
|
|
|
63
|
-
<div v-show="isOpen" class="section-body" :class="{ '
|
|
71
|
+
<div v-show="isOpen" class="section-body" :class="!resetStyle ? `${bodyPadding}` : ''">
|
|
64
72
|
<slot name="section-body" />
|
|
65
73
|
</div>
|
|
66
74
|
</div>
|
|
@@ -13,7 +13,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
|
-
<div class="sidebar-item is-clickable" :class="{ 'is-active': isActive }">
|
|
16
|
+
<div class="sidebar-item is-clickable" data-testid="sidebar-items" :class="{ 'is-active': isActive }">
|
|
17
17
|
<span class="icon">
|
|
18
18
|
<slot name="item-icon" />
|
|
19
19
|
</span>
|