@appscode/design-system 2.7.13 → 2.7.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.7.13",
3
+ "version": "2.7.15",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -148,7 +148,7 @@
148
148
  }
149
149
  }
150
150
 
151
- .section-card {
151
+ .section-card:not(.reset-style) {
152
152
  border: 1px solid $color-border;
153
153
  border-radius: 4px;
154
154
  .section-heading {
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  filterOptions: {
13
13
  type: Array,
14
14
  default: () => [
15
- { value: "all-cluster", text: "All Cluster" },
15
+ { value: "all", text: "All Cluster" },
16
16
  { value: "active", text: "Active" },
17
17
  { value: "pending", text: "Pending" },
18
18
  ],
@@ -23,7 +23,7 @@ function handleSearch(searchText) {
23
23
  emit("handleSearch", searchText);
24
24
  }
25
25
 
26
- const selectedFilter = ref("all-cluster");
26
+ const selectedFilter = ref("all");
27
27
 
28
28
  watch(selectedFilter, (n) => {
29
29
  emit("handleFilter", n);
@@ -11,6 +11,7 @@ interface Props {
11
11
  isExpandable?: boolean;
12
12
  custom?: boolean;
13
13
  hasBackButton?: boolean;
14
+ resetStyle?: boolean;
14
15
  }
15
16
 
16
17
  withDefaults(defineProps<Props>(), {
@@ -18,6 +19,7 @@ withDefaults(defineProps<Props>(), {
18
19
  isExpandable: false,
19
20
  custom: false,
20
21
  hasBackButton: false,
22
+ resetStyle: false,
21
23
  });
22
24
 
23
25
  const isOpen = ref(true);
@@ -31,8 +33,11 @@ function handleBack() {
31
33
 
32
34
  <template>
33
35
  <div class="content-body">
34
- <div class="section-card is-fullwidth">
35
- <div class="section-heading is-fullwidth is-flex is-align-items-center is-justify-content-space-between">
36
+ <div class="section-card is-fullwidth" :class="{ 'reset-style': resetStyle }">
37
+ <div
38
+ class="section-heading is-fullwidth is-flex is-align-items-center is-justify-content-space-between"
39
+ :class="{ 'mb-8': resetStyle }"
40
+ >
36
41
  <header-items>
37
42
  <button v-if="hasBackButton" title="Back" class="ac-back-button" @click="handleBack">
38
43
  <HeroiconsArrowUturnLeft20Solid />
@@ -55,7 +60,7 @@ function handleBack() {
55
60
  </div>
56
61
  </div>
57
62
 
58
- <div v-show="isOpen" class="section-body">
63
+ <div v-show="isOpen" class="section-body" :class="{ 'p-16': !resetStyle }">
59
64
  <slot name="section-body" />
60
65
  </div>
61
66
  </div>