@weni/unnnic-system 3.11.3-alpha.1 → 3.11.3-alpha.2

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.11.3-alpha.1",
3
+ "version": "3.11.3-alpha.2",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -6,6 +6,7 @@
6
6
  @update:open="$event ? () => {} : back()"
7
7
  >
8
8
  <DrawerContent
9
+ v-bind="$attrs"
9
10
  :showOverlay="!withoutOverlay"
10
11
  data-testid="drawer-container"
11
12
  :size="mappedSize"
@@ -106,6 +107,7 @@ import {
106
107
 
107
108
  defineOptions({
108
109
  name: 'UnnnicDrawer',
110
+ inheritAttrs: false,
109
111
  });
110
112
 
111
113
  const props = defineProps({
@@ -10,6 +10,12 @@ describe('Drawer.vue', () => {
10
10
  UnnnicIcon: true,
11
11
  UnnnicButton: true,
12
12
  Teleport: templateSlot,
13
+ UnnnicDrawerNext: templateSlot,
14
+ UnnnicDrawerContent: templateSlot,
15
+ UnnnicDrawerFooter: templateSlot,
16
+ UnnnicDrawerClose: templateSlot,
17
+ UnnnicDrawerTitle: templateSlot,
18
+ UnnnicDrawerDescription: templateSlot,
13
19
  };
14
20
 
15
21
  beforeEach(() => {
@@ -4,6 +4,7 @@
4
4
  @update:open="$emit('update:modelValue', $event)"
5
5
  >
6
6
  <UnnnicDialogContent
7
+ v-bind="$attrs"
7
8
  :size="size === 'sm' ? 'small' : size === 'lg' ? 'large' : 'medium'"
8
9
  :parentClass="['unnnic-modal-dialog', $attrs.class]"
9
10
  class="unnnic-modal-dialog__container"
@@ -101,6 +102,7 @@ export default {
101
102
  UnnnicDialogTitle,
102
103
  UnnnicDialogFooter,
103
104
  },
105
+ inheritAttrs: false,
104
106
  mixins: [UnnnicI18n],
105
107
  props: {
106
108
  modelValue: {
@@ -2,6 +2,10 @@
2
2
  import type { DialogRootEmits, DialogRootProps } from 'reka-ui';
3
3
  import { DialogRoot, useForwardPropsEmits } from 'reka-ui';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDialog',
7
+ });
8
+
5
9
  const props = defineProps<DialogRootProps>();
6
10
  const emits = defineEmits<DialogRootEmits>();
7
11
 
@@ -2,6 +2,10 @@
2
2
  import type { DialogCloseProps } from 'reka-ui';
3
3
  import { DialogClose } from 'reka-ui';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDialogClose',
7
+ });
8
+
5
9
  const props = defineProps<DialogCloseProps>();
6
10
  </script>
7
11
 
@@ -11,6 +11,10 @@ import {
11
11
  } from 'reka-ui';
12
12
  import { cn } from '@/lib/utils';
13
13
 
14
+ defineOptions({
15
+ name: 'UnnnicDialogContent',
16
+ });
17
+
14
18
  const props = withDefaults(
15
19
  defineProps<
16
20
  DialogContentProps & {
@@ -2,6 +2,10 @@
2
2
  import type { HTMLAttributes } from 'vue';
3
3
  import { cn } from '@/lib/utils';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDialogFooter',
7
+ });
8
+
5
9
  const props = withDefaults(
6
10
  defineProps<{ class?: HTMLAttributes['class']; divider?: boolean }>(),
7
11
  {
@@ -5,6 +5,10 @@ import UnnnicButton from '@/components/Button/Button.vue';
5
5
  import DialogClose from './DialogClose.vue';
6
6
  import UnnnicIcon, { SchemeColor } from '@/components/Icon.vue';
7
7
 
8
+ defineOptions({
9
+ name: 'UnnnicDialogHeader',
10
+ });
11
+
8
12
  const props = withDefaults(
9
13
  defineProps<{
10
14
  class?: HTMLAttributes['class'];
@@ -5,6 +5,10 @@ import { reactiveOmit } from '@vueuse/core';
5
5
  import { DialogTitle, useForwardProps } from 'reka-ui';
6
6
  import { cn } from '@/lib/utils';
7
7
 
8
+ defineOptions({
9
+ name: 'UnnnicDialogTitle',
10
+ });
11
+
8
12
  const props = defineProps<
9
13
  DialogTitleProps & { class?: HTMLAttributes['class'] }
10
14
  >();
@@ -2,6 +2,10 @@
2
2
  import type { DialogTriggerProps } from 'reka-ui';
3
3
  import { DialogTrigger } from 'reka-ui';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDialogTrigger',
7
+ });
8
+
5
9
  const props = defineProps<DialogTriggerProps>();
6
10
  </script>
7
11