@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 +1 -1
- package/vue-components/styles/base/utilities/_colors.scss +5 -11
- package/vue-components/styles/base/utilities/_root-variables.scss +3 -6
- package/vue-components/styles/base/utilities/_typography.scss +1 -1
- package/vue-components/styles/components/_getkeeper.scss +1 -1
- package/vue-components/styles/components/form-fields/_input.scss +1 -8
- package/vue-components/styles/components/header/_header.scss +1 -1
- package/vue-components/styles/components/sidebar-tabs/_sidebar-tabs.scss +1 -1
- package/vue-components/styles/theme/_appscode.scss +11 -11
- package/vue-components/types/previewYaml.ts +2 -0
- package/vue-components/v3/table/TableRow.vue +28 -2
- package/vue-components/v3/form-fields/ColorSelect.vue +0 -30
- package/vue-components/v3/form-fields/FileUploadSmall.vue +0 -30
package/package.json
CHANGED
|
@@ -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,
|
|
31
|
-
$primary-dark-grey: hsl($primary-hue,
|
|
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%,
|
|
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,
|
|
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;
|
|
@@ -544,13 +544,7 @@
|
|
|
544
544
|
.file-cta {
|
|
545
545
|
color: $color-heading;
|
|
546
546
|
height: 100%;
|
|
547
|
-
background-color: $primary-
|
|
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,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
10
|
+
$ac-primary: hsl($primary-hue, $primary-saturation, $primary-light);
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
$color-border: hsl($primary-hue, 30%, 90%);
|
|
13
|
+
$color-sidebar: hsl($primary-hue, $primary-saturation, 5%);
|
|
@@ -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
|
|
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>
|