@redseed/redseed-ui-vue3 6.1.0 → 6.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "6.1.0",
3
+ "version": "6.2.1",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -12,8 +12,8 @@
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
14
  "@heroicons/vue": "^2.2.0",
15
- "@vueuse/components": "^13.5.0",
16
- "@vueuse/core": "^13.5.0",
15
+ "@vueuse/components": "^13.6.0",
16
+ "@vueuse/core": "^13.6.0",
17
17
  "lodash": "^4.17.21",
18
18
  "lottie-web": "^5.13.0",
19
19
  "vue": "^3.5.18"
@@ -59,7 +59,7 @@ function onClick() {
59
59
  <slot name="header"></slot>
60
60
 
61
61
  </div>
62
- <div :class="[
62
+ <div v-if="$slots.default || $slots.meta" :class="[
63
63
  'rsui-card__content',
64
64
  { 'rsui-card__content--padded': padded },
65
65
  ]">
@@ -13,6 +13,9 @@ const emit = defineEmits(['click'])
13
13
  <template>
14
14
  <div class="rsui-meta-info">
15
15
  <div class="rsui-meta-info__top">
16
+ <div v-if="$slots['label-icon']" class="rsui-meta-info__label-icon">
17
+ <slot name="label-icon"></slot>
18
+ </div>
16
19
  <div class="rsui-meta-info__label">
17
20
  <slot name="label"></slot>
18
21
  </div>
@@ -36,6 +39,9 @@ const emit = defineEmits(['click'])
36
39
  &__top {
37
40
  @apply flex space-x-1 items-center;
38
41
  }
42
+ &__label-icon {
43
+ @apply size-4;
44
+ }
39
45
  &__label {
40
46
  @apply font-semibold text-sm text-rsui-grey-900 leading-4;
41
47
  }