@appscode/design-system 2.0.44 → 2.0.46

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.44",
3
+ "version": "2.0.46",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -27,23 +27,17 @@ $primary-93: hsl($primary-hue, $primary-saturation, 93%);
27
27
  $primary-95: hsl($primary-hue, $primary-saturation, 95%);
28
28
  $primary-97: hsl($primary-hue, $primary-saturation, 97%);
29
29
 
30
- $primary-light-grey: hsl($primary-hue, 10%, 96%);
31
- $primary-dark-grey: hsl($primary-hue, 10%, 10%);
30
+ $primary-light-grey: hsl($primary-hue, 30%, 96%);
31
+ $primary-dark-grey: hsl($primary-hue, 30%, 10%);
32
32
 
33
33
  $color-text: hsl($primary-hue, 10%, 35%);
34
34
  $color-heading: hsl($primary-hue, 10%, 10%);
35
- $color-label: hsl($primary-hue, 20%, 30%);
35
+ $color-label: hsl($primary-hue, 20%, 50%);
36
36
  $color-link: hsl($primary-hue, 40%, 20%);
37
37
  $color-border-light: hsl($primary-hue, 40%, 95%);
38
- $color-border: hsl($primary-hue, 10%, 90%);
38
+ $color-border: hsl($primary-hue, 50%, 90%);
39
39
  $color-border-dark: hsl($primary-hue, 10%, 80%);
40
-
41
- // tweak sidebar bg color. update value (--sidebar-light)
42
- $color-sidebar: hsl(
43
- $primary-hue,
44
- $primary-saturation,
45
- var(--sidebar-light, 5%)
46
- );
40
+ $color-sidebar: hsl($primary-hue, $primary-saturation, 10%);
47
41
 
48
42
  // green color guides
49
43
  $green-hue: 141;
@@ -1,8 +1,5 @@
1
1
  :root {
2
- // --primary-hue: 208;
3
- // --primary-saturation: 77%;
4
- // --primary-light: 40%;
5
- --primary-hue: 149;
6
- --primary-saturation: 100%;
7
- --primary-light: 30%;
2
+ --primary-hue: 208;
3
+ --primary-saturation: 77%;
4
+ --primary-light: 40%;
8
5
  }
@@ -153,5 +153,5 @@ strong {
153
153
  font-size: 1em;
154
154
  }
155
155
  .has-text-primary {
156
- color: $ac-primary !important;
156
+ color: $ac-primary;
157
157
  }
@@ -66,7 +66,7 @@
66
66
 
67
67
  li {
68
68
  background: $white-100;
69
- border: 1px solid $color-border;
69
+ border: 1px solid $color-border-light;
70
70
  border-radius: 4px;
71
71
  padding: 12px 20px;
72
72
  font-weight: 500;
@@ -544,13 +544,7 @@
544
544
  .file-cta {
545
545
  color: $color-heading;
546
546
  height: 100%;
547
- background-color: $primary-light-grey;
548
- }
549
- &:hover {
550
- .file-cta,
551
- .file-name {
552
- border-color: $ac-primary;
553
- }
547
+ background-color: $primary-95;
554
548
  }
555
549
  }
556
550
 
@@ -560,7 +554,6 @@
560
554
  border-radius: 4px;
561
555
  &:hover {
562
556
  background-color: $primary-97;
563
- border-color: $ac-primary;
564
557
 
565
558
  label {
566
559
  .upload-icon {
@@ -1,6 +1,6 @@
1
1
  .inner-header {
2
2
  padding: 6px 20px;
3
- border-bottom: 1px solid $color-border;
3
+ border-bottom: 1px solid $color-border-light;
4
4
  position: sticky;
5
5
  background: $white-100;
6
6
  z-index: 99;
@@ -1,6 +1,6 @@
1
1
  .sidebar-tabs {
2
2
  width: 220px;
3
- border-right: 1px solid $color-border;
3
+ border-right: 1px solid $color-border-light;
4
4
  padding: 8px;
5
5
  height: calc(100vh - 50px);
6
6
  ul {
@@ -1,13 +1,13 @@
1
- // :root {
2
- // --primary-hue: 149;
3
- // --primary-saturation: 100%;
4
- // --primary-light: 30%;
5
- // }
6
- // $primary-hue: var(--primary-hue);
7
- // $primary-saturation: var(--primary-saturation);
8
- // $primary-light: var(--primary-light);
1
+ :root {
2
+ --primary-hue: 149;
3
+ --primary-saturation: 100%;
4
+ --primary-light: 30%;
5
+ }
6
+ $primary-hue: var(--primary-hue);
7
+ $primary-saturation: var(--primary-saturation);
8
+ $primary-light: var(--primary-light);
9
9
 
10
- // $ac-primary: hsl($primary-hue, $primary-saturation, $primary-light);
10
+ $ac-primary: hsl($primary-hue, $primary-saturation, $primary-light);
11
11
 
12
- // $color-border: hsl($primary-hue, 30%, 90%);
13
- // $color-sidebar: hsl($primary-hue, $primary-saturation, 5%);
12
+ $color-border: hsl($primary-hue, 30%, 90%);
13
+ $color-sidebar: hsl($primary-hue, $primary-saturation, 5%);
@@ -5,4 +5,6 @@ export interface PreviewYamlType {
5
5
  name: string;
6
6
  type: string;
7
7
  uid: string;
8
+ key?: string;
9
+ gvr?: string;
8
10
  }
@@ -1,20 +1,36 @@
1
1
  <script setup lang="ts">
2
2
  import { defineAsyncComponent, nextTick, ref } from "vue";
3
3
 
4
+ type OverflowType =
5
+ | "auto"
6
+ | "clip"
7
+ | "hidden"
8
+ | "scroll"
9
+ | "visible"
10
+ | "inherit"
11
+ | "initial"
12
+ | "revert"
13
+ | "revert-layer"
14
+ | "unset";
15
+
4
16
  interface Props {
5
17
  link?: string;
6
18
  isSelected?: boolean;
7
19
  isDisabled?: boolean;
8
20
  fakeCellWidth?: number;
9
21
  collapsible?: boolean;
22
+ collapsibleContentMaxHeight?: string;
23
+ collapsibleOverflowX?: OverflowType;
10
24
  }
11
25
 
12
- withDefaults(defineProps<Props>(), {
26
+ const prop = withDefaults(defineProps<Props>(), {
13
27
  link: "",
14
28
  isSelected: false,
15
29
  isDisabled: false,
16
30
  fakeCellWidth: 0,
17
31
  collapsible: false,
32
+ collapsibleContentMaxHeight: "60vh",
33
+ overflowX: "unset",
18
34
  });
19
35
 
20
36
  const emit = defineEmits(["rowselect", "rowexpand", "rowcollapse"]);
@@ -28,6 +44,7 @@ const CollapsibleButton = defineAsyncComponent(
28
44
  );
29
45
 
30
46
  const isCollapsed = ref(true);
47
+ const collapsibleRowMaxHeight = ref("0vh");
31
48
 
32
49
  const collapseRow = () => {
33
50
  isCollapsed.value = true;
@@ -43,6 +60,7 @@ const toggleCollapse = () => {
43
60
  if (collapsibleRow.value) {
44
61
  collapsibleRow.value.classList.remove("is-closed");
45
62
  collapsibleRow.value.classList.add("is-active");
63
+ collapsibleRowMaxHeight.value = prop.collapsibleContentMaxHeight;
46
64
  }
47
65
  emit("rowexpand", collapseRow);
48
66
  }, 0);
@@ -51,6 +69,7 @@ const toggleCollapse = () => {
51
69
  if (collapsibleRow.value) {
52
70
  collapsibleRow.value.classList.remove("is-active");
53
71
  collapsibleRow.value.classList.add("is-closed");
72
+ collapsibleRowMaxHeight.value = "0vh";
54
73
  }
55
74
  setTimeout(() => {
56
75
  // remove row after animation finish
@@ -116,7 +135,14 @@ const toggleCollapse = () => {
116
135
  <transition name="slide-down" mode="out-in" appear>
117
136
  <tr v-if="collapsible && !isCollapsed" v-bind="$attrs">
118
137
  <table-cell colspan="1000" class="table-inner-shadow">
119
- <div ref="collapsibleRow" class="collapsible-row">
138
+ <div
139
+ ref="collapsibleRow"
140
+ class="collapsible-row"
141
+ :style="{
142
+ maxHeight: collapsibleRowMaxHeight,
143
+ overflowX: collapsibleOverflowX,
144
+ }"
145
+ >
120
146
  <slot name="collapsible-content" />
121
147
  </div>
122
148
  </table-cell>
@@ -1,30 +0,0 @@
1
- <script setup lang="ts"></script>
2
-
3
- <template>
4
- <div class="ac-color-input-wrapper">
5
- <label class="ac-color-input" for="color-select">
6
- <input type="color" id="color-select" />
7
- <span>#1c1c1c</span>
8
- </label>
9
- <p class="has-text-danger">Error message</p>
10
- </div>
11
- </template>
12
-
13
- <style lang="scss">
14
- .ac-color-input-wrapper {
15
- .ac-color-input {
16
- border: 1px solid $color-border-dark;
17
- display: inline-flex;
18
- cursor: pointer;
19
- gap: 8px;
20
- padding: 8px 15px;
21
- border-radius: 4px;
22
- span {
23
- font-weight: 500;
24
- }
25
- &:hover {
26
- border-color: $ac-primary;
27
- }
28
- }
29
- }
30
- </style>
@@ -1,30 +0,0 @@
1
- <script setup lang="ts">
2
- import { defineAsyncComponent } from "vue";
3
- interface Props {
4
- modelValue?: string;
5
- }
6
-
7
- withDefaults(defineProps<Props>(), {
8
- modelValue: "",
9
- });
10
-
11
- const HeroiconsArrowUpTray20Solid = defineAsyncComponent(
12
- () => import("~icons/heroicons/arrow-up-tray-20-solid")
13
- );
14
- </script>
15
- <template>
16
- <div class="file has-name ac-file">
17
- <label class="file-label">
18
- <input class="file-input" type="file" name="resume" />
19
- <span class="file-cta">
20
- <span class="file-icon">
21
- <HeroiconsArrowUpTray20Solid />
22
- </span>
23
- <span class="file-label"> Choose a file… </span>
24
- </span>
25
- <span class="file-name"> Screen Shot 2017-07-29 at 15.54.25.png </span>
26
- </label>
27
- </div>
28
- </template>
29
-
30
- <style lang="scss"></style>