@appscode/design-system 2.7.14 → 2.7.16
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
|
@@ -11,6 +11,8 @@ interface Props {
|
|
|
11
11
|
isExpandable?: boolean;
|
|
12
12
|
custom?: boolean;
|
|
13
13
|
hasBackButton?: boolean;
|
|
14
|
+
resetStyle?: boolean;
|
|
15
|
+
bodyPadding?: string;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
withDefaults(defineProps<Props>(), {
|
|
@@ -18,6 +20,8 @@ withDefaults(defineProps<Props>(), {
|
|
|
18
20
|
isExpandable: false,
|
|
19
21
|
custom: false,
|
|
20
22
|
hasBackButton: false,
|
|
23
|
+
resetStyle: false,
|
|
24
|
+
bodyPadding: "p-16",
|
|
21
25
|
});
|
|
22
26
|
|
|
23
27
|
const isOpen = ref(true);
|
|
@@ -31,8 +35,11 @@ function handleBack() {
|
|
|
31
35
|
|
|
32
36
|
<template>
|
|
33
37
|
<div class="content-body">
|
|
34
|
-
<div class="section-card is-fullwidth">
|
|
35
|
-
<div
|
|
38
|
+
<div class="section-card is-fullwidth" :class="{ 'reset-style': resetStyle }">
|
|
39
|
+
<div
|
|
40
|
+
class="section-heading is-fullwidth is-flex is-align-items-center is-justify-content-space-between"
|
|
41
|
+
:class="{ 'mb-8': resetStyle }"
|
|
42
|
+
>
|
|
36
43
|
<header-items>
|
|
37
44
|
<button v-if="hasBackButton" title="Back" class="ac-back-button" @click="handleBack">
|
|
38
45
|
<HeroiconsArrowUturnLeft20Solid />
|
|
@@ -55,7 +62,7 @@ function handleBack() {
|
|
|
55
62
|
</div>
|
|
56
63
|
</div>
|
|
57
64
|
|
|
58
|
-
<div v-show="isOpen" class="section-body">
|
|
65
|
+
<div v-show="isOpen" class="section-body" :class="!resetStyle ? `${bodyPadding}` : ''">
|
|
59
66
|
<slot name="section-body" />
|
|
60
67
|
</div>
|
|
61
68
|
</div>
|