@redseed/redseed-ui-vue3 6.3.0 → 6.3.2
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/FormField/FormFieldUploaderWrapper.vue +1 -1
- package/src/components/MessageBox/MessageBox.vue +31 -2
- 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;
|
|
@@ -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">
|
|
@@ -7,6 +7,11 @@ const props = defineProps({
|
|
|
7
7
|
type: Boolean,
|
|
8
8
|
default: false,
|
|
9
9
|
},
|
|
10
|
+
variant: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: 'default',
|
|
13
|
+
validator: (value) => ['default', 'info', 'success', 'warning', 'error'].includes(value)
|
|
14
|
+
}
|
|
10
15
|
})
|
|
11
16
|
|
|
12
17
|
const emit = defineEmits(['close'])
|
|
@@ -20,7 +25,10 @@ function close() {
|
|
|
20
25
|
</script>
|
|
21
26
|
<template>
|
|
22
27
|
<div v-if="!isClosed"
|
|
23
|
-
class="
|
|
28
|
+
:class="[
|
|
29
|
+
'rsui-message-box',
|
|
30
|
+
`rsui-message-box--${variant}`
|
|
31
|
+
]"
|
|
24
32
|
>
|
|
25
33
|
<div class="rsui-message-box__head">
|
|
26
34
|
<div class="rsui-message-box__title">
|
|
@@ -41,7 +49,28 @@ function close() {
|
|
|
41
49
|
</template>
|
|
42
50
|
<style lang="scss" scoped>
|
|
43
51
|
.rsui-message-box {
|
|
44
|
-
@apply border
|
|
52
|
+
@apply border rounded-lg overflow-hidden p-4;
|
|
53
|
+
|
|
54
|
+
&--default {
|
|
55
|
+
@apply bg-background-primary border-border-primary text-text-primary;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--info {
|
|
59
|
+
@apply bg-background-info border-border-info text-text-primary;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--success {
|
|
63
|
+
@apply bg-background-success border-border-success text-text-primary;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--warning {
|
|
67
|
+
@apply bg-background-warning border-border-warning text-text-primary;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--error {
|
|
71
|
+
@apply bg-background-error border-border-error text-text-primary;
|
|
72
|
+
}
|
|
73
|
+
|
|
45
74
|
&__head {
|
|
46
75
|
@apply flex justify-between items-center;
|
|
47
76
|
}
|
|
@@ -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>
|