@redseed/redseed-ui-vue3 6.3.7 → 6.4.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "6.3.7",
3
+ "version": "6.4.0",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -14,6 +14,10 @@ const props = defineProps({
14
14
  type: Boolean,
15
15
  default: false,
16
16
  },
17
+ secondary: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
17
21
  success: {
18
22
  type: Boolean,
19
23
  default: false,
@@ -22,6 +26,10 @@ const props = defineProps({
22
26
  type: Boolean,
23
27
  default: false,
24
28
  },
29
+ error: {
30
+ type: Boolean,
31
+ default: false,
32
+ },
25
33
  })
26
34
 
27
35
  const defaultSize = computed(() => !props.sm && !props.md)
@@ -31,9 +39,10 @@ const badgeClass = computed(() => [
31
39
  {
32
40
  'rsui-badge--sm': props.sm || defaultSize.value,
33
41
  'rsui-badge--md': props.md,
34
- 'rsui-badge--neutral': props.neutral,
42
+ 'rsui-badge--secondary': props.neutral || props.secondary,
35
43
  'rsui-badge--success': props.success,
36
44
  'rsui-badge--warning': props.warning,
45
+ 'rsui-badge--error': props.error,
37
46
  },
38
47
  ])
39
48
 
@@ -61,16 +70,18 @@ defineExpose({
61
70
  &--md {
62
71
  @apply px-2 py-2;
63
72
  }
64
- &--neutral {
65
- @apply text-rsui-grey-neutral-900 bg-rsui-grey-neutral-200;
73
+ &--secondary {
74
+ @apply text-text-secondary bg-background-secondary border border-border-secondary;
66
75
  }
67
76
  &--success {
68
- @apply text-white bg-rsui-success-500;
77
+ @apply text-text-success bg-background-success border border-border-success;
69
78
  }
70
79
  &--warning {
71
- @apply text-white bg-rsui-warning-500;
80
+ @apply text-text-warning bg-background-warning border border-border-warning;
81
+ }
82
+ &--error {
83
+ @apply text-text-error bg-background-error border border-border-error;
72
84
  }
73
-
74
85
  :deep(svg) {
75
86
  @apply size-4;
76
87
  }