@weni/unnnic-system 3.11.1-alpha.0 → 3.11.1-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.
Files changed (30) hide show
  1. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  2. package/dist/components/index.d.ts +288 -101
  3. package/dist/components/index.d.ts.map +1 -1
  4. package/dist/components/ui/drawer/Drawer.vue.d.ts.map +1 -1
  5. package/dist/components/ui/drawer/DrawerClose.vue.d.ts.map +1 -1
  6. package/dist/components/ui/drawer/DrawerContent.vue.d.ts.map +1 -1
  7. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts.map +1 -1
  8. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts.map +1 -1
  9. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts.map +1 -1
  10. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts.map +1 -1
  11. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts.map +1 -1
  12. package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts.map +1 -1
  13. package/dist/{es-5af54117.mjs → es-2f0d1dd1.mjs} +1 -1
  14. package/dist/{index-eb28c19c.mjs → index-7d496127.mjs} +4329 -4312
  15. package/dist/{pt-br-e0368966.mjs → pt-br-ec24bd23.mjs} +1 -1
  16. package/dist/style.css +1 -1
  17. package/dist/unnnic.mjs +130 -123
  18. package/dist/unnnic.umd.js +33 -33
  19. package/package.json +1 -1
  20. package/src/components/Drawer/Drawer.vue +6 -2
  21. package/src/components/index.ts +8 -1
  22. package/src/components/ui/drawer/Drawer.vue +4 -0
  23. package/src/components/ui/drawer/DrawerClose.vue +4 -0
  24. package/src/components/ui/drawer/DrawerContent.vue +5 -1
  25. package/src/components/ui/drawer/DrawerDescription.vue +4 -0
  26. package/src/components/ui/drawer/DrawerFooter.vue +5 -1
  27. package/src/components/ui/drawer/DrawerHeader.vue +5 -1
  28. package/src/components/ui/drawer/DrawerOverlay.vue +5 -1
  29. package/src/components/ui/drawer/DrawerTitle.vue +5 -1
  30. package/src/components/ui/drawer/DrawerTrigger.vue +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "3.11.1-alpha.0",
3
+ "version": "3.11.1-alpha.2",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <Drawer
3
- :open="modelValue"
4
- @update:open="$emit('update:modelValue', $event)"
5
3
  class="unnnic-drawer"
6
4
  data-testid="drawer"
5
+ :open="modelValue"
6
+ @update:open="$emit('update:modelValue', $event)"
7
7
  >
8
8
  <DrawerContent
9
9
  :showOverlay="!withoutOverlay"
@@ -96,6 +96,10 @@ import {
96
96
  DrawerDescription,
97
97
  } from '../ui/drawer';
98
98
 
99
+ defineOptions({
100
+ name: 'UnnnicDrawer',
101
+ });
102
+
99
103
  const props = defineProps({
100
104
  title: {
101
105
  type: String,
@@ -117,7 +117,7 @@ import DialogHeader from './ui/dialog/DialogHeader.vue';
117
117
  import DialogTitle from './ui/dialog/DialogTitle.vue';
118
118
  import DialogTrigger from './ui/dialog/DialogTrigger.vue';
119
119
  import DialogClose from './ui/dialog/DialogClose.vue';
120
- import DrawerNext from './Drawer/Drawer.vue';
120
+ import DrawerNext from './ui/drawer/Drawer.vue';
121
121
  import DrawerContent from './ui/drawer/DrawerContent.vue';
122
122
  import DrawerHeader from './ui/drawer/DrawerHeader.vue';
123
123
  import DrawerFooter from './ui/drawer/DrawerFooter.vue';
@@ -375,6 +375,13 @@ export const unnnicDialogHeader = DialogHeader;
375
375
  export const unnnicDialogTitle = DialogTitle;
376
376
  export const unnnicDialogTrigger = DialogTrigger;
377
377
  export const unnnicDialogClose = DialogClose;
378
+ export const unnnicDrawerNext = DrawerNext;
379
+ export const unnnicDrawerContent = DrawerContent;
380
+ export const unnnicDrawerHeader = DrawerHeader;
381
+ export const unnnicDrawerFooter = DrawerFooter;
382
+ export const unnnicDrawerClose = DrawerClose;
383
+ export const unnnicDrawerTitle = DrawerTitle;
384
+ export const unnnicDrawerDescription = DrawerDescription;
378
385
 
379
386
  export const UnnnicFontSize = fontSize;
380
387
  export const UnnnicFormElement = formElement;
@@ -3,6 +3,10 @@ import type { DrawerRootEmits, DrawerRootProps } from 'vaul-vue';
3
3
  import { useForwardPropsEmits } from 'reka-ui';
4
4
  import { DrawerRoot } from 'vaul-vue';
5
5
 
6
+ defineOptions({
7
+ name: 'UnnnicDrawerNext',
8
+ });
9
+
6
10
  const props = withDefaults(defineProps<DrawerRootProps>(), {
7
11
  shouldScaleBackground: true,
8
12
  });
@@ -2,6 +2,10 @@
2
2
  import type { DrawerCloseProps } from 'vaul-vue';
3
3
  import { DrawerClose } from 'vaul-vue';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDrawerClose',
7
+ });
8
+
5
9
  const props = defineProps<DrawerCloseProps>();
6
10
  </script>
7
11
 
@@ -1,12 +1,16 @@
1
1
  <script lang="ts" setup>
2
2
  import type { DialogContentEmits, DialogContentProps } from 'reka-ui';
3
- import type { HTMLAttributes } from 'vue';
3
+ import { type HTMLAttributes } from 'vue';
4
4
  import { reactiveOmit } from '@vueuse/core';
5
5
  import { useForwardPropsEmits } from 'reka-ui';
6
6
  import { DrawerContent, DrawerPortal } from 'vaul-vue';
7
7
  import { cn } from '@/lib/utils';
8
8
  import DrawerOverlay from './DrawerOverlay.vue';
9
9
 
10
+ defineOptions({
11
+ name: 'UnnnicDrawerContent',
12
+ });
13
+
10
14
  const props = withDefaults(
11
15
  defineProps<
12
16
  DialogContentProps & {
@@ -5,6 +5,10 @@ import { reactiveOmit } from '@vueuse/core';
5
5
  import { DrawerDescription } from 'vaul-vue';
6
6
  import { cn } from '@/lib/utils';
7
7
 
8
+ defineOptions({
9
+ name: 'UnnnicDrawerDescription',
10
+ });
11
+
8
12
  const props = defineProps<
9
13
  DrawerDescriptionProps & { class?: HTMLAttributes['class'] }
10
14
  >();
@@ -1,7 +1,11 @@
1
1
  <script lang="ts" setup>
2
- import type { HTMLAttributes } from 'vue';
2
+ import { type HTMLAttributes } from 'vue';
3
3
  import { cn } from '@/lib/utils';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDrawerFooter',
7
+ });
8
+
5
9
  const props = defineProps<{
6
10
  class?: HTMLAttributes['class'];
7
11
  }>();
@@ -1,9 +1,13 @@
1
1
  <script lang="ts" setup>
2
- import type { HTMLAttributes } from 'vue';
2
+ import { type HTMLAttributes } from 'vue';
3
3
  import { cn } from '@/lib/utils';
4
4
  import UnnnicButton from '@/components/Button/Button.vue';
5
5
  import DrawerClose from './DrawerClose.vue';
6
6
 
7
+ defineOptions({
8
+ name: 'UnnnicDrawerHeader',
9
+ });
10
+
7
11
  const props = defineProps<{
8
12
  class?: HTMLAttributes['class'];
9
13
  }>();
@@ -1,10 +1,14 @@
1
1
  <script lang="ts" setup>
2
2
  import type { DialogOverlayProps } from 'reka-ui';
3
- import type { HTMLAttributes } from 'vue';
3
+ import { type HTMLAttributes } from 'vue';
4
4
  import { reactiveOmit } from '@vueuse/core';
5
5
  import { DrawerOverlay } from 'vaul-vue';
6
6
  import { cn } from '@/lib/utils';
7
7
 
8
+ defineOptions({
9
+ name: 'UnnnicDrawerOverlay',
10
+ });
11
+
8
12
  const props = defineProps<
9
13
  DialogOverlayProps & { class?: HTMLAttributes['class'] }
10
14
  >();
@@ -1,10 +1,14 @@
1
1
  <script lang="ts" setup>
2
2
  import type { DrawerTitleProps } from 'vaul-vue';
3
- import type { HTMLAttributes } from 'vue';
3
+ import { type HTMLAttributes } from 'vue';
4
4
  import { reactiveOmit } from '@vueuse/core';
5
5
  import { DrawerTitle } from 'vaul-vue';
6
6
  import { cn } from '@/lib/utils';
7
7
 
8
+ defineOptions({
9
+ name: 'UnnnicDrawerTitle',
10
+ });
11
+
8
12
  const props = defineProps<
9
13
  DrawerTitleProps & { class?: HTMLAttributes['class'] }
10
14
  >();
@@ -2,6 +2,10 @@
2
2
  import type { DrawerTriggerProps } from 'vaul-vue';
3
3
  import { DrawerTrigger } from 'vaul-vue';
4
4
 
5
+ defineOptions({
6
+ name: 'UnnnicDrawerTrigger',
7
+ });
8
+
5
9
  const props = defineProps<DrawerTriggerProps>();
6
10
  </script>
7
11