@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.
@@ -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-default>Drag files here or click to browse</template>
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-default>Drag resume here or click to browse</template>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -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-primary-foreground bg-primary-background border-primary-background;
12
+ @apply text-text-on-color bg-button-primary border-button-primary;
13
13
  // default hover state
14
- @apply hover:text-primary-foreground-hover hover:bg-primary-background-hover hover:border-primary-background-hover;
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-background focus-visible:border-primary-background;
16
+ @apply focus-visible:ring-button-primary focus-visible:border-button-primary;
17
17
  // default active state
18
- @apply active:bg-primary-background active:border-primary-background;
18
+ @apply active:bg-button-primary-active active:border-button-primary-active;
19
19
  // default disabled state
20
- @apply disabled:bg-rsui-grey-200 disabled:border-rsui-grey-200 disabled:text-rsui-grey-400;
21
- @apply disabled:active:bg-rsui-grey-200 disabled:active:border-rsui-grey-200;
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-rsui-grey-800 bg-white border-rsui-grey-700;
12
+ @apply text-button-secondary bg-background-primary border-button-secondary;
13
13
  // default hover state
14
- @apply hover:text-rsui-grey-900 hover:bg-white hover:border-rsui-grey-900;
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-rsui-grey-700 focus-visible:border-rsui-grey-700;
16
+ @apply focus-visible:ring-button-secondary focus-visible:border-button-secondary;
17
17
  // default active state
18
- @apply active:bg-white active:border-rsui-grey-700;
18
+ @apply active:bg-background-primary active:border-button-secondary-active;
19
19
  // default disabled state
20
- @apply disabled:bg-white disabled:border-rsui-grey-100 disabled:text-rsui-grey-400;
21
- @apply disabled:active:bg-white disabled:active:border-rsui-grey-100;
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-rsui-grey-700 bg-transparent border-transparent;
12
+ @apply text-button-tertiary bg-transparent border-transparent;
13
13
  // default hover state
14
- @apply hover:text-rsui-grey-900 hover:bg-rsui-grey-200 hover:border-transparent;
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-rsui-grey-400 focus-visible:border-transparent;
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 bg-white text-rsui-grey-700 border-rsui-grey-400;
41
+ @apply text-button-secondary bg-background-primary border-button-secondary;
42
42
  // default hover state
43
- @apply hover:bg-rsui-grey-200;
44
- // default active/pressed state
45
- @apply active:ring-0 active:bg-white;
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:text-rsui-grey-400 disabled:bg-white;
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-rsui-grey-200 active:bg-rsui-grey-200 cursor-default;
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-default" v-if="stateDefault">
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="rsui-message-box"
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 border-rsui-grey-100 rounded-lg bg-white overflow-hidden shadow-full-light transition duration-200 p-4;
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', 'muted', 'accent', 'success', 'warning', 'error'].includes(value)
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-section-background-default border-section-border-default text-section-text-default;
33
+ @apply bg-background-primary border-border-primary text-text-primary;
34
34
  }
35
35
 
36
- &--muted {
37
- @apply bg-section-background-muted border-section-border-muted text-section-text-muted;
36
+ &--secondary {
37
+ @apply bg-background-secondary border-border-secondary text-text-primary;
38
38
  }
39
39
 
40
- &--accent {
41
- @apply bg-section-background-accent border-section-border-accent text-section-text-accent;
40
+ &--brand {
41
+ @apply bg-background-brand border-border-brand text-text-primary;
42
42
  }
43
43
 
44
44
  &--success {
45
- @apply bg-section-background-success border-section-border-success text-section-text-success;
45
+ @apply bg-background-success border-border-success text-text-primary;
46
46
  }
47
47
 
48
48
  &--warning {
49
- @apply bg-section-background-warning border-section-border-warning text-section-text-warning;
49
+ @apply bg-background-warning border-border-warning text-text-primary;
50
50
  }
51
51
 
52
52
  &--error {
53
- @apply bg-section-background-error border-section-border-error text-section-text-error;
53
+ @apply bg-background-error border-border-error text-text-primary;
54
54
  }
55
55
  }
56
56
  </style>