@appscode/design-system 2.0.60 → 2.0.61

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.0.60",
3
+ "version": "2.0.61",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -4,7 +4,7 @@
4
4
 
5
5
  // white and black
6
6
  $white-100: hsl(0, 0%, 100%);
7
- $gray-100: hsl(0, 0%, 0%);
7
+ $black-100: hsl(0, 0%, 0%);
8
8
 
9
9
  // primary color guides
10
10
  $primary-hue: var(--primary-hue);
@@ -69,7 +69,7 @@
69
69
 
70
70
  .accordion-body {
71
71
  max-height: 0;
72
- transition: max-height 0.2s ease-out;
72
+ // transition: max-height 0.2s ease-out;
73
73
  overflow: hidden;
74
74
 
75
75
  p {
@@ -15,7 +15,7 @@
15
15
 
16
16
  .terminal-body {
17
17
  font-family: "Inconsolata", monospace;
18
- background-color: $gray-100;
18
+ background-color: $black-100;
19
19
  height: 100%;
20
20
  color: $white-100;
21
21
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  // // white and black
34
34
  // $white-100: hsl($primary-hue, 50%, 5%);
35
- // $gray-100: hsl(0, 0%, 90%);
35
+ // $black-100: hsl(0, 0%, 90%);
36
36
 
37
37
  // $color-text: hsl($primary-hue, 10%, 80%);
38
38
  // $color-heading: hsl($primary-hue, 10%, 90%);
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { ref } from "vue";
3
+
2
4
  interface Props {
3
5
  modifierClasses?: string;
4
6
  }
@@ -6,6 +8,8 @@ interface Props {
6
8
  withDefaults(defineProps<Props>(), {
7
9
  modifierClasses: "",
8
10
  });
11
+
12
+ const isActive = ref(true);
9
13
  </script>
10
14
 
11
15
  <template>
@@ -16,13 +20,13 @@ withDefaults(defineProps<Props>(), {
16
20
  <!-- accordion heading start -->
17
21
  <div class="accordion-heading">
18
22
  <h6 class="is-small">Hello Accordion title</h6>
19
- <button class="icon">
23
+ <button class="icon" @click="isActive = !isActive">
20
24
  <i class="fa fa-plus" aria-hidden="true"></i>
21
25
  </button>
22
26
  </div>
23
27
  <!-- accordion heading end -->
24
28
  <!-- accordion body start -->
25
- <div class="accordion-body">
29
+ <div class="accordion-body" :style="{ 'max-height': isActive ? '100%' : 0 }">
26
30
  <slot />
27
31
  </div>
28
32
  <!-- accordion body end -->
@@ -13,8 +13,8 @@ withDefaults(defineProps<Props>(), {
13
13
  <div class="toast-header is-flex is-align-items-center">
14
14
  <h6 class="mr-auto">Toast Header</h6>
15
15
  <small>2 hours ago</small>
16
- <button type="button" class="button ac-button is-transparent w-18 h-18 flex ml-8">
17
- <span class="material-icons close-icon is-size-5">close</span>
16
+ <button type="button" class="button ac-button is-danger is-outlined w-18 h-18 flex ml-8">
17
+ <span class="material-icons close-icon">close</span>
18
18
  </button>
19
19
  </div>
20
20
  <div class="toast-body">
@@ -12,10 +12,12 @@ withDefaults(defineProps<Props>(), {
12
12
  <div class="thumbnail">
13
13
  <slot name="thumbnail" />
14
14
  </div>
15
- <p>
16
- {{ message }}
17
- </p>
15
+ <div class="is-flex is-align-items-center gap-4">
16
+ <span>
17
+ {{ message }}
18
+ </span>
18
19
 
19
- <slot name="details" />
20
+ <slot name="details" />
21
+ </div>
20
22
  </div>
21
23
  </template>