@webitel/ui-sdk 24.2.1 → 24.2.3

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": "@webitel/ui-sdk",
3
- "version": "24.02.1",
3
+ "version": "24.2.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -2,9 +2,9 @@
2
2
  <div class="wt-dummy">
3
3
  <div class="wt-dummy__img">
4
4
  <img
5
+ :height="size"
5
6
  :src="src || dummy"
6
7
  :width="size"
7
- :height="size"
8
8
  alt="dummy-picture"
9
9
  >
10
10
  </div>
@@ -24,7 +24,9 @@
24
24
  </template>
25
25
 
26
26
  <script setup>
27
- import dummy from '../../assets/components/molecules/wt-dummy/dummy.svg';
27
+ import { computed } from 'vue';
28
+ import dummyDark from '../../assets/components/molecules/wt-dummy/dummyDark.svg';
29
+ import dummyLight from '../../assets/components/molecules/wt-dummy/dummyLight.svg';
28
30
 
29
31
  const props = defineProps({
30
32
  src: {
@@ -48,12 +50,18 @@ const props = defineProps({
48
50
  type: Boolean,
49
51
  default: false,
50
52
  },
53
+ darkMode: {
54
+ type: Boolean,
55
+ default: false,
56
+ },
51
57
  });
52
58
 
53
59
  const emits = defineEmits([
54
60
  'create',
55
61
  ]);
56
62
 
63
+ const dummy = computed(() => props.darkMode ? dummyDark : dummyLight);
64
+
57
65
  </script>
58
66
 
59
67
  <style lang="scss">
@@ -62,16 +70,16 @@ const emits = defineEmits([
62
70
 
63
71
  <style lang="scss" scoped>
64
72
  .wt-dummy {
65
- text-align: center;
66
73
  display: flex;
67
- flex-direction: column;
68
74
  align-items: center;
75
+ flex-direction: column;
69
76
  justify-content: center;
77
+ text-align: center;
70
78
  gap: var(--spacing-sm);
71
79
 
72
80
  &__img {
73
- height: 200px;
74
81
  width: 200px;
82
+ height: 200px;
75
83
  }
76
84
 
77
85
  &__text {
@@ -222,6 +222,7 @@ export default {
222
222
 
223
223
  .wt-table {
224
224
  @extend %wt-scrollbar;
225
+ display: none;
225
226
  overflow: auto;
226
227
  }
227
228