@redseed/redseed-ui-vue3 5.4.11 → 5.4.13
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
|
@@ -42,6 +42,7 @@ function onClick() {
|
|
|
42
42
|
<div :class="cardClass" data-testid="card">
|
|
43
43
|
<div v-if="clickable"
|
|
44
44
|
class="rsui-card__action-layer"
|
|
45
|
+
:title="$attrs.title"
|
|
45
46
|
@click="onClick"
|
|
46
47
|
></div>
|
|
47
48
|
|
|
@@ -51,8 +52,9 @@ function onClick() {
|
|
|
51
52
|
<slot name="image"></slot>
|
|
52
53
|
</div>
|
|
53
54
|
|
|
54
|
-
<div
|
|
55
|
-
|
|
55
|
+
<div v-if="$slots.header"
|
|
56
|
+
class="rsui-card__header"
|
|
57
|
+
:title="$attrs.title"
|
|
56
58
|
>
|
|
57
59
|
<slot name="header"></slot>
|
|
58
60
|
</div>
|
|
@@ -73,7 +75,7 @@ function onClick() {
|
|
|
73
75
|
</template>
|
|
74
76
|
<style lang="scss" scoped>
|
|
75
77
|
.rsui-card {
|
|
76
|
-
@apply relative flex flex-col
|
|
78
|
+
@apply relative flex flex-col;
|
|
77
79
|
@apply transition duration-200;
|
|
78
80
|
@apply rounded-xl bg-white border border-rsui-grey-400;
|
|
79
81
|
|
|
@@ -132,7 +132,7 @@ const emit = defineEmits(['click:more-actions'])
|
|
|
132
132
|
</template>
|
|
133
133
|
<style lang="scss" scoped>
|
|
134
134
|
.rsui-card-header {
|
|
135
|
-
@apply flex flex-col gap-x-3 gap-y-5
|
|
135
|
+
@apply flex flex-col gap-x-3 gap-y-5 transition-all;
|
|
136
136
|
@apply md:flex-row md:justify-between md:items-center;
|
|
137
137
|
@apply py-4 px-4 sm:px-6;
|
|
138
138
|
@apply border-b border-transparent;
|
|
@@ -52,16 +52,13 @@ const emit = defineEmits(['click:more-actions'])
|
|
|
52
52
|
<div class="rsui-section-header__text">
|
|
53
53
|
|
|
54
54
|
<!-- Title slot, default slot -->
|
|
55
|
-
<div class="rsui-section-header__title"
|
|
56
|
-
:title="$slots.default ? $slots.default()[0].children : ''"
|
|
57
|
-
>
|
|
55
|
+
<div class="rsui-section-header__title">
|
|
58
56
|
<slot></slot>
|
|
59
57
|
</div>
|
|
60
58
|
|
|
61
59
|
<!-- Subtitle slot, optional -->
|
|
62
|
-
<div
|
|
63
|
-
|
|
64
|
-
:title="$slots.subtitle ? $slots.subtitle()[0].children : ''"
|
|
60
|
+
<div v-if="showSubtitle && $slots.subtitle"
|
|
61
|
+
class="rsui-section-header__subtitle"
|
|
65
62
|
>
|
|
66
63
|
<slot name="subtitle"></slot>
|
|
67
64
|
</div>
|