@redseed/redseed-ui-vue3 2.23.5 → 2.23.7
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
|
@@ -38,11 +38,11 @@ function clickItem(item) {
|
|
|
38
38
|
@apply flex flex-wrap items-center gap-x-2 gap-y-2;
|
|
39
39
|
&__item {
|
|
40
40
|
@apply relative select-none pr-4 last:pr-0 last:after:hidden;
|
|
41
|
-
@apply
|
|
41
|
+
@apply text-sm text-rsui-light leading-6;
|
|
42
42
|
@apply after:absolute after:right-0.5 after:content-['\007C'];
|
|
43
|
-
@apply after:
|
|
43
|
+
@apply after:w-0.5 after:h-full after:text-rsui-light;
|
|
44
44
|
&--action {
|
|
45
|
-
@apply cursor-pointer;
|
|
45
|
+
@apply cursor-pointer hover:text-rsui-default transition-colors duration-200;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -49,6 +49,8 @@ const linkLabelClass = computed(() => [
|
|
|
49
49
|
v-bind="$attrs"
|
|
50
50
|
@click="$emit('click', $event)"
|
|
51
51
|
>
|
|
52
|
+
<slot name="icon"></slot>
|
|
53
|
+
|
|
52
54
|
<span :class="linkLabelClass">
|
|
53
55
|
<slot></slot>
|
|
54
56
|
</span>
|
|
@@ -57,10 +59,10 @@ const linkLabelClass = computed(() => [
|
|
|
57
59
|
<style lang="scss" scoped>
|
|
58
60
|
.rsui-link-slot {
|
|
59
61
|
// default shape and control
|
|
60
|
-
@apply relative w-fit h-fit inline-flex items-center justify-center;
|
|
62
|
+
@apply relative w-fit h-fit inline-flex shrink-0 items-center justify-center whitespace-nowrap will-change-transform;
|
|
61
63
|
@apply select-none outline-none cursor-pointer transition;
|
|
62
64
|
// default text styles
|
|
63
|
-
@apply font-medium text-black;
|
|
65
|
+
@apply font-medium text-black gap-2;
|
|
64
66
|
// disabled state
|
|
65
67
|
&--disabled {
|
|
66
68
|
@apply opacity-30 cursor-default pointer-events-none;
|
|
@@ -68,14 +70,20 @@ const linkLabelClass = computed(() => [
|
|
|
68
70
|
// modifier md size
|
|
69
71
|
&--md {
|
|
70
72
|
@apply text-base leading-6;
|
|
73
|
+
:deep(svg) {
|
|
74
|
+
@apply size-6;
|
|
75
|
+
}
|
|
71
76
|
}
|
|
72
77
|
// modifier lg size
|
|
73
78
|
&--lg {
|
|
74
79
|
@apply text-lg leading-7;
|
|
80
|
+
:deep(svg) {
|
|
81
|
+
@apply size-7;
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
// label
|
|
77
85
|
&__label {
|
|
78
|
-
@apply relative;
|
|
86
|
+
@apply relative inline-flex shrink-0 items-center justify-center whitespace-nowrap will-change-transform;
|
|
79
87
|
@apply after:content-[''] after:absolute after:inset-x-0 after:bottom-0;
|
|
80
88
|
@apply after:w-full after:h-px after:transition;
|
|
81
89
|
@apply after:bg-current after:opacity-30 hover:after:opacity-100;
|