@redseed/redseed-ui-vue3 2.15.2 → 2.16.0
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/index.js +1 -0
- package/package.json +1 -1
- package/src/components/FormField/FormFieldSlot.vue +1 -1
- package/src/components/FormField/FormFieldText.vue +1 -1
- package/src/components/LinkedList/LinkedList.vue +21 -0
- package/src/components/LinkedList/LinkedListCard.vue +51 -0
- package/src/components/LinkedList/index.js +7 -0
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ const formFieldSlotClass = computed(() => [
|
|
|
25
25
|
const formFieldSlotLabelClass = computed(() => [
|
|
26
26
|
'rsui-form-field-slot__label',
|
|
27
27
|
{
|
|
28
|
-
'rsui-form-field-slot__label--required': attrs.required !== undefined,
|
|
28
|
+
'rsui-form-field-slot__label--required': attrs.required !== undefined && attrs.required !== false,
|
|
29
29
|
},
|
|
30
30
|
])
|
|
31
31
|
</script>
|
|
@@ -83,7 +83,7 @@ defineExpose({
|
|
|
83
83
|
@apply w-full border rounded-md ring-0;
|
|
84
84
|
@apply bg-white placeholder-rsui-light border-rsui-grey-200;
|
|
85
85
|
@apply has-[:focus]:ring has-[:focus]:ring-highlight has-[:focus]:border-highlight;
|
|
86
|
-
@apply has-[:invalid]:border-danger has-[:invalid]:ring-0;
|
|
86
|
+
@apply has-[:user-invalid]:border-danger has-[:user-invalid]:ring-0;
|
|
87
87
|
@apply has-[:disabled]:text-rsui-light has-[:disabled]:bg-rsui-grey-200 has-[:disbaled]:ring-0;
|
|
88
88
|
}
|
|
89
89
|
&__prefix {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<template>
|
|
5
|
+
<ul class="rsui-linked-list">
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</ul>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<style lang="scss" scoped>
|
|
11
|
+
.rsui-linked-list {
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
status: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: 'default',
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const statusClass = computed(() => `rsui-linked-list-item__status--${props.status}`);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<li class="rsui-linked-list-item">
|
|
16
|
+
<div class="rsui-linked-list-item__line"></div>
|
|
17
|
+
<div class="rsui-linked-list-item__status" :class="statusClass"></div>
|
|
18
|
+
<div class="rsui-linked-list-item__content">
|
|
19
|
+
<div class="rsui-linked-list-item__title">
|
|
20
|
+
<slot name="title"></slot>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="rsui-linked-list-item__body">
|
|
23
|
+
<slot name="body"></slot>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</li>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" scoped>
|
|
30
|
+
.rsui-linked-list-item {
|
|
31
|
+
@apply pl-[30px] pb-[30px] relative;
|
|
32
|
+
&__line {
|
|
33
|
+
@apply absolute top-[10px] left-[4px] bg-[#eee] w-[2px] h-[calc(100%-10px)];
|
|
34
|
+
}
|
|
35
|
+
&__status {
|
|
36
|
+
@apply absolute top-[6.5px] left-0 z-[1] w-[10px] h-[10px] bg-[#eee] rounded-full border-white;
|
|
37
|
+
}
|
|
38
|
+
&:last-child {
|
|
39
|
+
@apply pb-0;
|
|
40
|
+
.rsui-linked-list-item__line {
|
|
41
|
+
@apply h-[calc(100%-10px)];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&__title {
|
|
45
|
+
@apply font-bold mb-[5px];
|
|
46
|
+
}
|
|
47
|
+
&__body {
|
|
48
|
+
@apply font-normal;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</style>
|