@redseed/redseed-ui-vue3 2.4.0 → 2.4.1
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/src/components/Card/Card.vue +1 -1
- package/src/components/DropdownMenu/DropdownOption.vue +1 -1
- package/src/components/Form/FormSlot.vue +3 -3
- package/src/components/FormField/FormFieldCheckbox.vue +1 -1
- package/src/components/FormField/FormFieldSelect.vue +2 -2
- package/src/components/FormField/FormFieldSlot.vue +3 -3
- package/src/components/FormField/FormFieldText.vue +1 -1
- package/src/components/FormField/FormFieldTextSuffix.vue +2 -2
- package/src/components/Image/Image.vue +3 -3
- package/src/components/List/ListItem.vue +4 -4
- package/src/components/MessageBox/MessageBox.vue +5 -5
- package/src/components/MetaInfo/MetaInfo.vue +1 -1
- package/src/components/Modal/Modal.vue +3 -3
- package/src/components/Pagination/Pagination.vue +1 -1
- package/src/components/Pagination/PaginationItem.vue +3 -3
- package/src/components/Progress/ProgressCircle.vue +1 -1
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ function clicked() {
|
|
|
80
80
|
.rsui-card {
|
|
81
81
|
@apply flex flex-col;
|
|
82
82
|
@apply select-none transition duration-200;
|
|
83
|
-
@apply
|
|
83
|
+
@apply rounded-lg bg-white shadow-full-light;
|
|
84
84
|
&--hoverable {
|
|
85
85
|
@apply hover:shadow-md;
|
|
86
86
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
.rsui-form-slot {
|
|
38
38
|
@apply min-w-80 sm:min-w-96 sm:w-112;
|
|
39
39
|
@apply flex flex-col sm:justify-center items-center;
|
|
40
|
-
@apply text-base text-
|
|
40
|
+
@apply text-base text-rsui-default;
|
|
41
41
|
|
|
42
42
|
&__image {
|
|
43
43
|
@apply mb-8;
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
@apply w-full relative flex justify-center mb-2;
|
|
48
48
|
|
|
49
49
|
&-line {
|
|
50
|
-
@apply after:content-[''] after:absolute after:top-1/2 after:left-0 after:bg-
|
|
50
|
+
@apply after:content-[''] after:absolute after:top-1/2 after:left-0 after:bg-rsui-grey-200 after:h-px after:w-full;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&-or {
|
|
54
|
-
@apply relative z-1 bg-white px-6;
|
|
54
|
+
@apply relative z-1 bg-white px-6 text-rsui-default;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ function check(event) {
|
|
|
61
61
|
input[type="checkbox"] {
|
|
62
62
|
@apply appearance-none absolute inset-0 z-0 rounded-md transition focus:outline-none;
|
|
63
63
|
@apply w-full h-full text-rsui-default border border-rsui-grey-200 text-transparent bg-none;
|
|
64
|
-
@apply focus:ring focus:ring-
|
|
64
|
+
@apply focus:ring focus:ring-highlight focus:border-highlight;
|
|
65
65
|
@apply invalid:border-danger invalid:ring-0;
|
|
66
66
|
@apply disabled:text-rsui-light disabled:bg-rsui-grey-200;
|
|
67
67
|
}
|
|
@@ -159,7 +159,7 @@ function choose(option) {
|
|
|
159
159
|
select {
|
|
160
160
|
@apply pl-5 pr-14 truncate;
|
|
161
161
|
@apply appearance-none rounded-full cursor-pointer;
|
|
162
|
-
@apply focus:ring focus:ring-
|
|
162
|
+
@apply focus:ring focus:ring-highlight focus:border-highlight;
|
|
163
163
|
option {
|
|
164
164
|
@apply hidden;
|
|
165
165
|
}
|
|
@@ -176,7 +176,7 @@ function choose(option) {
|
|
|
176
176
|
|
|
177
177
|
&__option {
|
|
178
178
|
@apply flex flex-nowrap items-center justify-between cursor-pointer px-4 py-3 rounded-md;
|
|
179
|
-
@apply bg-white hover:bg-
|
|
179
|
+
@apply bg-white hover:bg-rsui-grey-200 text-rsui-default transition;
|
|
180
180
|
&--disabled {
|
|
181
181
|
@apply opacity-50 hover:bg-white cursor-auto;
|
|
182
182
|
}
|
|
@@ -62,7 +62,7 @@ const formFieldSlotClass = computed(() => [
|
|
|
62
62
|
|
|
63
63
|
&__label {
|
|
64
64
|
label {
|
|
65
|
-
@apply font-medium text-base text-
|
|
65
|
+
@apply font-medium text-base text-rsui-default;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -71,11 +71,11 @@ const formFieldSlotClass = computed(() => [
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__help {
|
|
74
|
-
@apply text-xs text-
|
|
74
|
+
@apply text-xs text-rsui-light;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&__error {
|
|
78
|
-
@apply text-sm text-
|
|
78
|
+
@apply text-sm text-danger;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
</style>
|
|
@@ -66,7 +66,7 @@ const inputElement = ref(null)
|
|
|
66
66
|
@apply text-base transition;
|
|
67
67
|
@apply w-full border rounded-md ring-0;
|
|
68
68
|
@apply bg-white placeholder-rsui-light border-rsui-grey-200;
|
|
69
|
-
@apply has-[:focus]:ring has-[:focus]:ring-
|
|
69
|
+
@apply has-[:focus]:ring has-[:focus]:ring-highlight has-[:focus]:border-highlight;
|
|
70
70
|
@apply has-[:invalid]:border-danger has-[:invalid]:ring-0;
|
|
71
71
|
@apply has-[:disabled]:text-rsui-light has-[:disabled]:bg-rsui-grey-200 has-[:disbaled]:ring-0;
|
|
72
72
|
}
|
|
@@ -23,8 +23,8 @@ import FormFieldText from './FormFieldText.vue'
|
|
|
23
23
|
<style lang="scss" scoped>
|
|
24
24
|
.rsui-form-field-suffix {
|
|
25
25
|
:deep(.rsui-form-field-text__suffix) {
|
|
26
|
-
@apply border
|
|
27
|
-
@apply bg-rsui-grey-200 border-rsui-light;
|
|
26
|
+
@apply border rounded-r-md;
|
|
27
|
+
@apply bg-rsui-grey-200 border-l-rsui-light border-r-rsui-grey-200;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
</style>
|
|
@@ -122,18 +122,18 @@ const imageClass = computed(() => [
|
|
|
122
122
|
</template>
|
|
123
123
|
<style lang="scss" scoped>
|
|
124
124
|
.rsui-image {
|
|
125
|
-
@apply w-full h-full flex items-center justify-center bg-
|
|
125
|
+
@apply w-full h-full flex items-center justify-center bg-rsui-grey-100 overflow-hidden;
|
|
126
126
|
&--rounded {
|
|
127
127
|
@apply rounded-lg;
|
|
128
128
|
}
|
|
129
129
|
&__empty {
|
|
130
|
-
@apply flex items-center justify-center text-
|
|
130
|
+
@apply flex items-center justify-center text-rsui-light;
|
|
131
131
|
}
|
|
132
132
|
&__empty-icon {
|
|
133
133
|
@apply w-1/4;
|
|
134
134
|
}
|
|
135
135
|
&__message {
|
|
136
|
-
@apply text-
|
|
136
|
+
@apply text-rsui-light text-sm;
|
|
137
137
|
}
|
|
138
138
|
picture {
|
|
139
139
|
@apply w-full h-full;
|
|
@@ -150,9 +150,9 @@ function clickItem(event) {
|
|
|
150
150
|
}
|
|
151
151
|
&__bg {
|
|
152
152
|
@apply absolute inset-0 bg-white transition;
|
|
153
|
-
@apply hover:bg-
|
|
153
|
+
@apply hover:bg-rsui-grey-200 peer-hover:bg-rsui-grey-200;
|
|
154
154
|
&--clickable {
|
|
155
|
-
@apply active:bg-
|
|
155
|
+
@apply active:bg-rsui-grey-200;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
&__body {
|
|
@@ -162,10 +162,10 @@ function clickItem(event) {
|
|
|
162
162
|
@apply absolute top-0 ml-1 -left-10 lg:-left-14;
|
|
163
163
|
@apply aspect-square overflow-hidden size-9 lg:size-12;
|
|
164
164
|
&-placeholder {
|
|
165
|
-
@apply size-full rounded-full overflow-hidden bg-
|
|
165
|
+
@apply size-full rounded-full overflow-hidden bg-rsui-grey-100;
|
|
166
166
|
@apply flex items-center justify-center;
|
|
167
167
|
svg {
|
|
168
|
-
@apply size-5 lg:size-6 fill-
|
|
168
|
+
@apply size-5 lg:size-6 fill-rsui-grey-300;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -42,17 +42,17 @@ function close() {
|
|
|
42
42
|
</template>
|
|
43
43
|
<style lang="scss" scoped>
|
|
44
44
|
.rsui-message-box {
|
|
45
|
-
@apply border border-
|
|
45
|
+
@apply border border-rsui-grey-100 rounded-lg bg-white overflow-hidden shadow-full-light transition duration-200 p-4;
|
|
46
46
|
&__head {
|
|
47
47
|
@apply flex justify-between items-center;
|
|
48
48
|
}
|
|
49
49
|
&__close {
|
|
50
|
-
@apply
|
|
50
|
+
@apply size-10;
|
|
51
51
|
&-icon {
|
|
52
|
-
@apply
|
|
53
|
-
@apply hover:bg-
|
|
52
|
+
@apply size-10 cursor-pointer rounded-lg flex items-center justify-center;
|
|
53
|
+
@apply hover:bg-rsui-grey-200 transition duration-200;
|
|
54
54
|
svg {
|
|
55
|
-
@apply
|
|
55
|
+
@apply size-6 text-rsui-light;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -184,7 +184,7 @@ onUnmounted(() => {
|
|
|
184
184
|
&__content {
|
|
185
185
|
@apply absolute max-h-full inset-x-0 overflow-auto overscroll-contain transform transition-all;
|
|
186
186
|
@apply border rounded-lg shadow-full md:w-full md:mx-auto mx-4;
|
|
187
|
-
@apply bg-
|
|
187
|
+
@apply bg-white border-rsui-grey-200;
|
|
188
188
|
&--sm {
|
|
189
189
|
@apply sm:max-w-sm xs:mx-4 sm:mx-auto;
|
|
190
190
|
}
|
|
@@ -207,14 +207,14 @@ onUnmounted(() => {
|
|
|
207
207
|
|
|
208
208
|
&__header {
|
|
209
209
|
@apply sticky top-0 z-1;
|
|
210
|
-
@apply p-4 bg-
|
|
210
|
+
@apply p-4 bg-rsui-grey-200 shrink-0 text-lg font-semibold;
|
|
211
211
|
}
|
|
212
212
|
&__body{
|
|
213
213
|
@apply p-4 bg-white;
|
|
214
214
|
}
|
|
215
215
|
&__footer {
|
|
216
216
|
@apply sticky bottom-0 z-1;
|
|
217
|
-
@apply p-4 bg-
|
|
217
|
+
@apply p-4 bg-rsui-grey-200 shrink-0;
|
|
218
218
|
@apply flex justify-end items-center space-x-2;
|
|
219
219
|
&--start {
|
|
220
220
|
@apply justify-start;
|
|
@@ -259,7 +259,7 @@ function goToPage(page) {
|
|
|
259
259
|
<style lang="scss" scoped>
|
|
260
260
|
.rsui-pagination {
|
|
261
261
|
@apply flex flex-nowrap items-center;
|
|
262
|
-
@apply w-fit border border-
|
|
262
|
+
@apply w-fit border border-rsui-grey-200 rounded-full p-1;
|
|
263
263
|
@apply divide-x;
|
|
264
264
|
&__previous {
|
|
265
265
|
@apply size-full flex items-center pr-1;
|
|
@@ -46,15 +46,15 @@ function clickItem() {
|
|
|
46
46
|
.rsui-pagination-item {
|
|
47
47
|
@apply inline-flex items-center justify-center overflow-hidden select-none;
|
|
48
48
|
@apply min-w-9 w-fit h-7 p-1 rounded-md cursor-pointer transition;
|
|
49
|
-
@apply bg-white hover:bg-
|
|
49
|
+
@apply bg-white hover:bg-rsui-grey-200 text-rsui-medium text-sm;
|
|
50
50
|
&--active {
|
|
51
|
-
@apply bg-
|
|
51
|
+
@apply bg-rsui-grey-200 hover:bg-rsui-grey-200 text-rsui-default cursor-default;
|
|
52
52
|
}
|
|
53
53
|
&--freeze {
|
|
54
54
|
@apply bg-white hover:bg-white cursor-default;
|
|
55
55
|
}
|
|
56
56
|
&--disabled {
|
|
57
|
-
@apply bg-white hover:bg-white text-
|
|
57
|
+
@apply bg-white hover:bg-white text-rsui-grey-200 cursor-default;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
</style>
|
|
@@ -98,7 +98,7 @@ watchPostEffect(setProgressCircleDash)
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
&__background-circle {
|
|
101
|
-
@apply stroke-
|
|
101
|
+
@apply stroke-rsui-light stroke-4 fill-none transition-all;
|
|
102
102
|
}
|
|
103
103
|
&__progress-circle {
|
|
104
104
|
@apply stroke-primary stroke-4 fill-none transition-all duration-0;
|