@energie360/ui-library 0.1.40 → 0.1.41

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.
@@ -42,4 +42,8 @@
42
42
  @include a.bp(m) {
43
43
  display: none;
44
44
  }
45
+
46
+ > img {
47
+ width: 100%;
48
+ }
45
49
  }
@@ -47,3 +47,10 @@ defineSlots<{
47
47
  </template>
48
48
 
49
49
  <style scoped lang="scss" src="./card-contact.scss"></style>
50
+ <style scoped lang="scss">
51
+ .card-contact__image {
52
+ :slotted(img) {
53
+ width: 100%;
54
+ }
55
+ }
56
+ </style>
@@ -19,6 +19,10 @@
19
19
  + .card-info__title {
20
20
  margin-top: var(--e-space-4);
21
21
  }
22
+
23
+ > img {
24
+ width: 100%;
25
+ }
22
26
  }
23
27
 
24
28
  .card-info__title {
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { Image } from '../../elements/types'
3
+ import { hasSlotContent } from '../../utils/vue/helpers'
3
4
 
4
5
  interface Props {
5
6
  image?: Image
@@ -12,7 +13,7 @@ defineProps<Props>()
12
13
 
13
14
  <template>
14
15
  <section class="card-info">
15
- <div class="card-info__image">
16
+ <div v-if="hasSlotContent($slots.image) || image" class="card-info__image">
16
17
  <slot name="image">
17
18
  <img v-bind="image" />
18
19
  </slot>
@@ -33,3 +34,10 @@ defineProps<Props>()
33
34
  </template>
34
35
 
35
36
  <style scoped lang="scss" src="./card-info.scss"></style>
37
+ <style scoped lang="scss">
38
+ .card-info__image {
39
+ :slotted(img) {
40
+ width: 100%;
41
+ }
42
+ }
43
+ </style>
@@ -9,8 +9,9 @@
9
9
  width: a.rem(120);
10
10
  height: a.rem(120);
11
11
 
12
- > img {
13
- object-fit: cover;
12
+ > img,
13
+ ::slotted(img) {
14
+ object-fit: contain;
14
15
  width: 100%;
15
16
  height: 100%;
16
17
  }
@@ -1,19 +1,21 @@
1
1
  <script setup lang="ts">
2
2
  import { hasSlotContent } from '../../utils/vue/helpers'
3
+ import { Image } from '../../elements/types'
3
4
 
4
5
  interface Props {
5
6
  title?: string
6
7
  text?: string
8
+ image?: Image
7
9
  }
8
10
 
9
- defineProps<Props>()
11
+ const { image = { src: '/static/ui-assets/images/search.svg', alt: '' } } = defineProps<Props>()
10
12
  </script>
11
13
 
12
14
  <template>
13
15
  <div class="empty">
14
- <div class="empty__image">
16
+ <div v-if="hasSlotContent($slots.image) || image" class="empty__image">
15
17
  <slot name="image">
16
- <img src="/static/ui-assets/images/search.svg" alt="" />
18
+ <img v-bind="image" />
17
19
  </slot>
18
20
  </div>
19
21
 
@@ -30,3 +32,12 @@ defineProps<Props>()
30
32
  </template>
31
33
 
32
34
  <style scoped lang="scss" src="./empty.scss"></style>
35
+ <style scoped lang="scss">
36
+ .empty__image {
37
+ :slotted(img) {
38
+ object-fit: contain;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+ }
43
+ </style>
@@ -37,9 +37,13 @@ const portalFooterSlot = inject('portal-footer-slot')
37
37
  <style scoped lang="scss" src="./portal-main.scss"></style>
38
38
 
39
39
  <style scoped lang="scss">
40
+ @use '../../base/abstracts' as a;
41
+
40
42
  .portal-main__sub-navigation {
41
43
  :slotted(.tabs) {
42
- --tabs-gradient-color: var(--e-c-mono-50);
44
+ @include a.bp(lg) {
45
+ --tabs-gradient-color: var(--e-c-mono-50);
46
+ }
43
47
  }
44
48
  }
45
49
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energie360/ui-library",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",