@redseed/redseed-ui-vue3 1.7.2 → 1.9.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/index.js CHANGED
@@ -34,6 +34,14 @@ import FormFieldTextSuffix from './src/components/FormField/FormFieldTextSuffix.
34
34
  import FormWrapperBuild from './src/components/Form/FormWrapperBuild.vue'
35
35
  import FormWrapperLMS from './src/components/Form/FormWrapperLMS.vue'
36
36
  import Image from './src/components/Image/Image.vue'
37
+ import Image3By1 from './src/components/Image/Image3By1.vue'
38
+ import Image3By1Rounded from './src/components/Image/Image3By1Rounded.vue'
39
+ import Image9By16 from './src/components/Image/Image9By16.vue'
40
+ import Image9By16Rounded from './src/components/Image/Image9By16Rounded.vue'
41
+ import Image16By9 from './src/components/Image/Image16By9.vue'
42
+ import Image16By9Rounded from './src/components/Image/Image16By9Rounded.vue'
43
+ import ImageCircle from './src/components/Image/ImageCircle.vue'
44
+ import ImageRounded from './src/components/Image/ImageRounded.vue'
37
45
  import LogoRedSeedBuild from './src/components/Logo/LogoRedSeedBuild.vue'
38
46
  import LogoRedSeedCoach from './src/components/Logo/LogoRedSeedCoach.vue'
39
47
  import LogoRedSeedCourses from './src/components/Logo/LogoRedSeedCourses.vue'
@@ -84,6 +92,14 @@ export {
84
92
  FormWrapperBuild,
85
93
  FormWrapperLMS,
86
94
  Image,
95
+ Image3By1,
96
+ Image3By1Rounded,
97
+ Image9By16,
98
+ Image9By16Rounded,
99
+ Image16By9,
100
+ Image16By9Rounded,
101
+ ImageCircle,
102
+ ImageRounded,
87
103
  LogoRedSeedBuild,
88
104
  LogoRedSeedCoach,
89
105
  LogoRedSeedCourses,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "1.7.2",
3
+ "version": "1.9.0",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,12 +53,24 @@ function clicked() {
53
53
  </div>
54
54
  </div>
55
55
  <slot></slot>
56
+ <div v-if="$slots.meta"
57
+ class="rsui-card__meta"
58
+ >
59
+ <slot name="meta"></slot>
60
+ </div>
61
+ </div>
62
+ <div v-if="$slots.actions"
63
+ class="rsui-card__actions"
64
+ >
65
+ <slot name="actions"></slot>
56
66
  </div>
57
67
  </div>
58
68
  </template>
59
69
  <style lang="scss" scoped>
60
70
  .rsui-card {
61
- @apply border border-gray-100 rounded-lg bg-white select-none overflow-hidden shadow-full-light transition duration-200;
71
+ @apply flex flex-col;
72
+ @apply select-none overflow-hidden transition duration-200;
73
+ @apply border border-gray-100 rounded-lg bg-white shadow-full-light;
62
74
  &--hoverable {
63
75
  @apply hover:shadow-md;
64
76
  }
@@ -66,10 +78,10 @@ function clicked() {
66
78
  @apply cursor-pointer;
67
79
  }
68
80
  &__image {
69
- @apply aspect-video overflow-hidden;
81
+ // @apply aspect-video overflow-hidden;
70
82
  }
71
83
  &__content {
72
- @apply min-h-14 p-3;
84
+ @apply min-h-14 p-3 flex-1;
73
85
  &-top {
74
86
  @apply flex justify-between space-x-2 pb-2;
75
87
  }
@@ -77,5 +89,14 @@ function clicked() {
77
89
  @apply h-12 text-lg font-semibold leading-6 line-clamp-2;
78
90
  }
79
91
  }
92
+ &__meta {
93
+ @apply grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2 mt-4;
94
+ }
95
+ &__actions {
96
+ @apply p-3;
97
+ & > * {
98
+ @apply mr-2 mb-2;
99
+ }
100
+ }
80
101
  }
81
102
  </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-16/9">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-16\/9 {
15
+ @apply aspect-video overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-16/9">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-16\/9 {
15
+ @apply aspect-video rounded-lg overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-3/1">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-3\/1 {
15
+ @apply aspect-3/1 overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-3/1">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-3\/1 {
15
+ @apply aspect-3/1 rounded-lg overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-9/16">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-9\/16 {
15
+ @apply aspect-9/16 overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-9/16">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-9\/16 {
15
+ @apply aspect-9/16 rounded overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-circle">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-circle {
15
+ @apply aspect-square rounded-full overflow-hidden;
16
+ }
17
+ </style>
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import Image from './Image.vue'
3
+
4
+ defineOptions({
5
+ inheritAttrs: false,
6
+ })
7
+ </script>
8
+ <template>
9
+ <div class="rsui-image-rounded">
10
+ <Image v-bind="$attrs"></Image>
11
+ </div>
12
+ </template>
13
+ <style lang="scss" scoped>
14
+ .rsui-image-rounded {
15
+ @apply rounded-lg overflow-hidden;
16
+ }
17
+ </style>