@weni/unnnic-system 3.9.1-alpha.3 → 3.9.1-alpha.4

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": "@weni/unnnic-system",
3
- "version": "3.9.1-alpha.3",
3
+ "version": "3.9.1-alpha.4",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -2,7 +2,7 @@
2
2
  <header
3
3
  :class="`page-header
4
4
  ${hasBackButton ? 'page-header--has-back-button' : ''}
5
- ${hasTabsSlot ? 'page-header--has-tabs' : ''}
5
+ ${$slots.tabs ? 'page-header--has-tabs' : ''}
6
6
  `"
7
7
  >
8
8
  <UnnnicButton
@@ -36,7 +36,7 @@
36
36
  </section>
37
37
 
38
38
  <section
39
- v-if="hasActionsSlot"
39
+ v-if="$slots.actions"
40
40
  class="page-header__actions"
41
41
  data-testid="page-actions"
42
42
  >
@@ -44,7 +44,7 @@
44
44
  </section>
45
45
 
46
46
  <section
47
- v-if="hasTabsSlot"
47
+ v-if="$slots.tabs"
48
48
  class="page-header__tabs"
49
49
  data-testid="page-tabs"
50
50
  >
@@ -54,8 +54,6 @@
54
54
  </template>
55
55
 
56
56
  <script setup lang="ts">
57
- import { useSlots } from 'vue';
58
-
59
57
  import UnnnicButton from '../Button/Button.vue';
60
58
 
61
59
  import type { PageHeaderProps, PageHeaderEmits } from './types';
@@ -67,10 +65,6 @@ withDefaults(defineProps<PageHeaderProps>(), {
67
65
 
68
66
  const emit = defineEmits<PageHeaderEmits>();
69
67
 
70
- const slots = useSlots();
71
- const hasActionsSlot = !!slots.actions;
72
- const hasTabsSlot = !!slots.tabs;
73
-
74
68
  const handleBackClick = (): void => {
75
69
  emit('back');
76
70
  };