@redseed/redseed-ui-vue3 6.3.1 → 6.3.3
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/docs/03-form-components.md +2 -2
- package/package.json +1 -1
- package/src/components/Button/ButtonPrimary.vue +6 -6
- package/src/components/Button/ButtonSecondary.vue +6 -6
- package/src/components/Button/ButtonTertiary.vue +3 -3
- package/src/components/ButtonGroup/ButtonGroupItem.vue +11 -6
- package/src/components/Card/Card.vue +1 -1
- package/src/components/Card/CardHeader.vue +5 -5
- package/src/components/FormField/FormFieldUploaderWrapper.vue +1 -1
- package/src/components/Layouts/PageHeader.vue +2 -2
- package/src/components/Layouts/SectionHeader.vue +3 -3
- package/src/components/MessageBox/MessageBox.vue +5 -5
- package/src/components/MetaInfo/MetaInfo.vue +3 -3
- package/src/components/Section/Section.vue +9 -9
|
@@ -339,7 +339,7 @@ const planOptions = [
|
|
|
339
339
|
<template #help>Accepted formats: PDF, DOC, DOCX (max 10MB)</template>
|
|
340
340
|
<template #error v-if="uploadError">{{ uploadError }}</template>
|
|
341
341
|
|
|
342
|
-
<template #state-text-
|
|
342
|
+
<template #state-text-primary>Drag files here or click to browse</template>
|
|
343
343
|
<template #state-text-uploading>Uploading...</template>
|
|
344
344
|
<template #state-text-processing>Processing...</template>
|
|
345
345
|
<template #state-text-error>Upload failed</template>
|
|
@@ -451,7 +451,7 @@ const planOptions = [
|
|
|
451
451
|
<template #help>Upload your resume (PDF, DOC, DOCX - max 5MB)</template>
|
|
452
452
|
<template #error v-if="resumeError">{{ resumeError }}</template>
|
|
453
453
|
|
|
454
|
-
<template #state-text-
|
|
454
|
+
<template #state-text-primary>Drag resume here or click to browse</template>
|
|
455
455
|
<template #state-text-uploading>Uploading resume...</template>
|
|
456
456
|
<template #state-text-processing>Processing resume...</template>
|
|
457
457
|
<template #state-text-error>Upload failed</template>
|
package/package.json
CHANGED
|
@@ -9,15 +9,15 @@ import ButtonSlot from './ButtonSlot.vue'
|
|
|
9
9
|
<style lang="scss" scoped>
|
|
10
10
|
.rsui-button-primary {
|
|
11
11
|
// default colors
|
|
12
|
-
@apply text-
|
|
12
|
+
@apply text-text-on-color bg-button-primary border-button-primary;
|
|
13
13
|
// default hover state
|
|
14
|
-
@apply hover:text-
|
|
14
|
+
@apply hover:text-text-on-color hover:bg-button-primary-hover hover:border-button-primary-hover;
|
|
15
15
|
// default focus state
|
|
16
|
-
@apply focus-visible:ring-primary
|
|
16
|
+
@apply focus-visible:ring-button-primary focus-visible:border-button-primary;
|
|
17
17
|
// default active state
|
|
18
|
-
@apply active:bg-primary-
|
|
18
|
+
@apply active:bg-button-primary-active active:border-button-primary-active;
|
|
19
19
|
// default disabled state
|
|
20
|
-
@apply disabled:bg-
|
|
21
|
-
@apply disabled:active:bg-
|
|
20
|
+
@apply disabled:bg-button-disabled disabled:border-button-disabled disabled:text-text-primary;
|
|
21
|
+
@apply disabled:active:bg-button-disabled disabled:active:border-button-disabled;
|
|
22
22
|
}
|
|
23
23
|
</style>
|
|
@@ -9,15 +9,15 @@ import ButtonSlot from './ButtonSlot.vue'
|
|
|
9
9
|
<style lang="scss" scoped>
|
|
10
10
|
.rsui-button-secondary {
|
|
11
11
|
// default colors
|
|
12
|
-
@apply text-
|
|
12
|
+
@apply text-button-secondary bg-background-primary border-button-secondary;
|
|
13
13
|
// default hover state
|
|
14
|
-
@apply hover:text-
|
|
14
|
+
@apply hover:text-button-secondary-hover hover:bg-background-primary hover:border-button-secondary-hover;
|
|
15
15
|
// default focus state
|
|
16
|
-
@apply focus-visible:ring-
|
|
16
|
+
@apply focus-visible:ring-button-secondary focus-visible:border-button-secondary;
|
|
17
17
|
// default active state
|
|
18
|
-
@apply active:bg-
|
|
18
|
+
@apply active:bg-background-primary active:border-button-secondary-active;
|
|
19
19
|
// default disabled state
|
|
20
|
-
@apply disabled:bg-
|
|
21
|
-
@apply disabled:active:bg-
|
|
20
|
+
@apply disabled:bg-button-disabled disabled:border-button-disabled disabled:text-text-primary;
|
|
21
|
+
@apply disabled:active:bg-button-disabled disabled:active:border-button-disabled;
|
|
22
22
|
}
|
|
23
23
|
</style>
|
|
@@ -9,11 +9,11 @@ import ButtonSlot from './ButtonSlot.vue'
|
|
|
9
9
|
<style lang="scss" scoped>
|
|
10
10
|
.rsui-button-tertiary {
|
|
11
11
|
// default colors
|
|
12
|
-
@apply text-
|
|
12
|
+
@apply text-button-tertiary bg-transparent border-transparent;
|
|
13
13
|
// default hover state
|
|
14
|
-
@apply hover:text-
|
|
14
|
+
@apply hover:text-button-tertiary-hover hover:bg-transparent hover:border-button-tertiary-hover;
|
|
15
15
|
// default focus state
|
|
16
|
-
@apply focus-visible:ring-
|
|
16
|
+
@apply focus-visible:ring-button-tertiary focus-visible:border-transparent;
|
|
17
17
|
// default active state
|
|
18
18
|
@apply active:bg-transparent active:border-transparent;
|
|
19
19
|
// default disabled state
|
|
@@ -38,15 +38,20 @@ const buttonClass = computed(() => [
|
|
|
38
38
|
// default shape
|
|
39
39
|
@apply first:rounded-l-md last:rounded-r-md first:border-l border-r border-y ring-0;
|
|
40
40
|
// default colors
|
|
41
|
-
@apply
|
|
41
|
+
@apply text-button-secondary bg-background-primary border-button-secondary;
|
|
42
42
|
// default hover state
|
|
43
|
-
@apply hover:bg-
|
|
44
|
-
// default
|
|
45
|
-
@apply
|
|
43
|
+
@apply hover:text-button-secondary-hover hover:bg-background-primary hover:border-button-secondary-hover;
|
|
44
|
+
// default focus state
|
|
45
|
+
@apply focus-visible:ring-button-secondary focus-visible:border-button-secondary;
|
|
46
|
+
// default active state
|
|
47
|
+
@apply active:bg-background-primary active:border-button-secondary-active;
|
|
46
48
|
// default disabled state
|
|
47
|
-
@apply disabled:
|
|
49
|
+
@apply disabled:bg-button-disabled disabled:border-button-disabled disabled:text-text-primary;
|
|
50
|
+
@apply disabled:active:bg-button-disabled disabled:active:border-button-disabled;
|
|
51
|
+
|
|
52
|
+
|
|
48
53
|
&--selected {
|
|
49
|
-
@apply bg-
|
|
54
|
+
@apply bg-background-primary active:bg-background-primary cursor-default;
|
|
50
55
|
}
|
|
51
56
|
&__label {
|
|
52
57
|
@apply gap-x-2 px-1 inline-flex items-center;
|
|
@@ -77,7 +77,7 @@ function onClick() {
|
|
|
77
77
|
.rsui-card {
|
|
78
78
|
@apply relative flex flex-col;
|
|
79
79
|
@apply transition duration-200;
|
|
80
|
-
@apply rounded-xl bg-
|
|
80
|
+
@apply rounded-xl bg-background-primary border border-border-primary;
|
|
81
81
|
|
|
82
82
|
&--hoverable {
|
|
83
83
|
@apply hover:shadow-md;
|
|
@@ -146,7 +146,7 @@ function handleMoreActionsClick() {
|
|
|
146
146
|
@apply border-b border-transparent;
|
|
147
147
|
|
|
148
148
|
&--divider {
|
|
149
|
-
@apply border-
|
|
149
|
+
@apply border-border-primary;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
&__header {
|
|
@@ -158,7 +158,7 @@ function handleMoreActionsClick() {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
&__avatar {
|
|
161
|
-
@apply size-14 rounded-full overflow-hidden flex items-center justify-center bg-
|
|
161
|
+
@apply size-14 rounded-full overflow-hidden flex items-center justify-center bg-background-secondary;
|
|
162
162
|
@apply mt-2.5 md:mt-0;
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -172,7 +172,7 @@ function handleMoreActionsClick() {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
&__title {
|
|
175
|
-
@apply text-lg leading-7 font-semibold text-
|
|
175
|
+
@apply text-lg leading-7 font-semibold text-text-primary;
|
|
176
176
|
|
|
177
177
|
&--single-line {
|
|
178
178
|
@apply line-clamp-2 md:line-clamp-1;
|
|
@@ -180,7 +180,7 @@ function handleMoreActionsClick() {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
&__subtitle {
|
|
183
|
-
@apply text-sm leading-5 text-
|
|
183
|
+
@apply text-sm leading-5 text-text-secondary;
|
|
184
184
|
|
|
185
185
|
&--single-line {
|
|
186
186
|
@apply line-clamp-3 md:line-clamp-1;
|
|
@@ -200,7 +200,7 @@ function handleMoreActionsClick() {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
&__more-actions-icon {
|
|
203
|
-
@apply size-5 text-
|
|
203
|
+
@apply size-5 text-text-secondary;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
</style>
|
|
@@ -138,7 +138,7 @@ function removeAction() {
|
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
140
|
<div class="rsui-form-field-uploader__state-text">
|
|
141
|
-
<slot name="state-text-
|
|
141
|
+
<slot name="state-text-primary" v-if="stateDefault">
|
|
142
142
|
Media
|
|
143
143
|
</slot>
|
|
144
144
|
<slot name="state-text-uploading" v-if="stateUploading">
|
|
@@ -83,13 +83,13 @@ const showMetaModal = ref(false)
|
|
|
83
83
|
@apply pr-2 flex flex-row items-center space-x-6;
|
|
84
84
|
|
|
85
85
|
h1 {
|
|
86
|
-
@apply text-3xl font-semibold text-
|
|
86
|
+
@apply text-3xl font-semibold text-text-primary;
|
|
87
87
|
@apply lg:mr-4;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&__subtitle {
|
|
92
|
-
@apply text-base text-
|
|
92
|
+
@apply text-base text-text-secondary leading-relaxed;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&__status-actions {
|
|
@@ -128,11 +128,11 @@ function handleMoreActionsClick() {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
&__title {
|
|
131
|
-
@apply text-lg leading-7 font-semibold line-clamp-2 md:line-clamp-1;
|
|
131
|
+
@apply text-lg leading-7 font-semibold line-clamp-2 md:line-clamp-1 text-text-primary;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&__subtitle {
|
|
135
|
-
@apply text-sm leading-5 line-clamp-3 md:line-clamp-1;
|
|
135
|
+
@apply text-sm leading-5 line-clamp-3 md:line-clamp-1 text-text-secondary;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&__toolbar {
|
|
@@ -148,7 +148,7 @@ function handleMoreActionsClick() {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
&__more-actions-icon {
|
|
151
|
-
@apply size-5 text-
|
|
151
|
+
@apply size-5 text-text-secondary;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
</style>
|
|
@@ -52,23 +52,23 @@ function close() {
|
|
|
52
52
|
@apply border rounded-lg overflow-hidden p-4;
|
|
53
53
|
|
|
54
54
|
&--default {
|
|
55
|
-
@apply bg-
|
|
55
|
+
@apply bg-background-primary border-border-primary text-text-primary;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&--info {
|
|
59
|
-
@apply bg-
|
|
59
|
+
@apply bg-background-info border-border-info text-text-primary;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&--success {
|
|
63
|
-
@apply bg-
|
|
63
|
+
@apply bg-background-success border-border-success text-text-primary;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&--warning {
|
|
67
|
-
@apply bg-
|
|
67
|
+
@apply bg-background-warning border-border-warning text-text-primary;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&--error {
|
|
71
|
-
@apply bg-
|
|
71
|
+
@apply bg-background-error border-border-error text-text-primary;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&__head {
|
|
@@ -43,16 +43,16 @@ const emit = defineEmits(['click'])
|
|
|
43
43
|
@apply size-4;
|
|
44
44
|
}
|
|
45
45
|
&__label {
|
|
46
|
-
@apply font-semibold text-sm text-
|
|
46
|
+
@apply font-semibold text-sm text-text-primary leading-4;
|
|
47
47
|
}
|
|
48
48
|
&__help {
|
|
49
|
-
@apply text-
|
|
49
|
+
@apply text-text-secondary size-4 cursor-pointer;
|
|
50
50
|
svg {
|
|
51
51
|
@apply size-full;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
&__value {
|
|
55
|
-
@apply text-xs text-
|
|
55
|
+
@apply text-xs text-text-secondary leading-5;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
</style>
|
|
@@ -3,7 +3,7 @@ const props = defineProps({
|
|
|
3
3
|
variant: {
|
|
4
4
|
type: String,
|
|
5
5
|
default: 'default',
|
|
6
|
-
validator: (value) => ['default', '
|
|
6
|
+
validator: (value) => ['default', 'secondary', 'brand', 'success', 'warning', 'error'].includes(value)
|
|
7
7
|
}
|
|
8
8
|
})
|
|
9
9
|
</script>
|
|
@@ -30,27 +30,27 @@ const props = defineProps({
|
|
|
30
30
|
@apply border border-solid rounded-xl p-6;
|
|
31
31
|
|
|
32
32
|
&--default {
|
|
33
|
-
@apply bg-
|
|
33
|
+
@apply bg-background-primary border-border-primary text-text-primary;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
&--
|
|
37
|
-
@apply bg-
|
|
36
|
+
&--secondary {
|
|
37
|
+
@apply bg-background-secondary border-border-secondary text-text-primary;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
&--
|
|
41
|
-
@apply bg-
|
|
40
|
+
&--brand {
|
|
41
|
+
@apply bg-background-brand border-border-brand text-text-primary;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&--success {
|
|
45
|
-
@apply bg-
|
|
45
|
+
@apply bg-background-success border-border-success text-text-primary;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&--warning {
|
|
49
|
-
@apply bg-
|
|
49
|
+
@apply bg-background-warning border-border-warning text-text-primary;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&--error {
|
|
53
|
-
@apply bg-
|
|
53
|
+
@apply bg-background-error border-border-error text-text-primary;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
</style>
|