@caipira/tamandua 0.0.99 → 0.0.101

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 (48) hide show
  1. package/dist/Alert.js +6 -0
  2. package/dist/Alert.vue_vue_type_script_setup_true_lang-CAGHRWvs.js +67 -0
  3. package/dist/DialogProvider.js +6 -0
  4. package/dist/DialogProvider.vue_vue_type_script_setup_true_lang-ejMXvlRv.js +21 -0
  5. package/dist/InputSelect.js +2 -2
  6. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CkW6maZO.js → InputSelect.vue_vue_type_script_setup_true_lang-N2nSmX8r.js} +33 -33
  7. package/dist/Modal.js +2 -2
  8. package/dist/{Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js → Modal.vue_vue_type_script_setup_true_lang-gKqoL70h.js} +25 -23
  9. package/dist/Popover-Bhp8FUMn.js +98 -0
  10. package/dist/Popover.css +1 -1
  11. package/dist/Popover.js +2 -2
  12. package/dist/components.js +92 -88
  13. package/dist/composables.js +32 -15
  14. package/dist/{plugin-TMApjjiI.js → plugin-BeifNbnf.js} +1 -1
  15. package/dist/{plugin-CPpRqUnI.js → plugin-Cy5TXn1Y.js} +1 -1
  16. package/dist/{plugin-C3ZZPmkg.js → plugin-D9O3FCPm.js} +1 -1
  17. package/dist/plugin-DXPPWWyR.js +10 -0
  18. package/dist/plugin-W9_PLHv4.js +10 -0
  19. package/dist/plugins-C-OK-RIJ.js +121 -0
  20. package/dist/plugins.js +96 -91
  21. package/dist/tamandua.js +1 -1
  22. package/dist/types/components/Alert/Alert.story.d.ts +19 -0
  23. package/dist/types/components/Alert/Alert.vue.d.ts +57 -0
  24. package/dist/types/components/Alert/index.d.ts +5 -0
  25. package/dist/types/components/Alert/plugin.d.ts +4 -0
  26. package/dist/types/components/Alert/types.d.ts +12 -0
  27. package/dist/types/components/Button/Button.vue.d.ts +9 -9
  28. package/dist/types/components/DialogProvider/DialogProvider.vue.d.ts +2 -0
  29. package/dist/types/components/DialogProvider/index.d.ts +4 -0
  30. package/dist/types/components/DialogProvider/plugin.d.ts +4 -0
  31. package/dist/types/components/Drawer/Drawer.vue.d.ts +1 -1
  32. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2 -0
  33. package/dist/types/components/InputSelect/types.d.ts +1 -0
  34. package/dist/types/components/InputText/InputText.vue.d.ts +9 -9
  35. package/dist/types/components/Modal/Modal.vue.d.ts +3 -0
  36. package/dist/types/components/Modal/types.d.ts +1 -0
  37. package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +1 -1
  38. package/dist/types/components/index.d.ts +4 -2
  39. package/dist/types/components/plugins.d.ts +8 -6
  40. package/dist/types/components/types.d.ts +2 -1
  41. package/dist/types/composables/index.d.ts +2 -1
  42. package/dist/types/composables/useDialog.d.ts +33 -0
  43. package/dist/useDialog-Cl-wVLea.js +28 -0
  44. package/package.json +1 -1
  45. package/volar.d.ts +46 -44
  46. package/dist/Popover-P-D1olPy.js +0 -96
  47. package/dist/plugins-D57bfrRk.js +0 -116
  48. package/dist/useDomHelpers-CGVrQd35.js +0 -19
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ title: string;
3
+ args: {};
4
+ };
5
+ export default _default;
6
+ export declare const Alert: (args: any) => {
7
+ setup(): {
8
+ args: any;
9
+ open: import('vue').Ref<boolean>;
10
+ title: import('vue').Ref<string>;
11
+ message: import('vue').Ref<string>;
12
+ alert: (options: import('./types.js').AlertProps & {
13
+ onConfirm?: () => void;
14
+ onClose?: () => void;
15
+ }) => void;
16
+ confirm: import('vue').Ref<boolean>;
17
+ };
18
+ template: string;
19
+ };
@@ -0,0 +1,57 @@
1
+ import { AlertProps } from './types.js';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AlertProps>, {
7
+ title: string;
8
+ message: string;
9
+ confirm: boolean;
10
+ closeTitle: string;
11
+ cancelTitle: string;
12
+ confirmTitle: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ closed: (val?: any) => void;
15
+ confirmed: () => void;
16
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AlertProps>, {
17
+ title: string;
18
+ message: string;
19
+ confirm: boolean;
20
+ closeTitle: string;
21
+ cancelTitle: string;
22
+ confirmTitle: string;
23
+ }>>> & {
24
+ onClosed?: ((val?: any) => any) | undefined;
25
+ onConfirmed?: (() => any) | undefined;
26
+ }, {
27
+ title: string;
28
+ message: string | string[];
29
+ confirm: boolean;
30
+ closeTitle: string;
31
+ cancelTitle: string;
32
+ confirmTitle: string;
33
+ }, {}>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
+ export default _default;
36
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
+ type __VLS_TypePropsToRuntimeProps<T> = {
38
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
39
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
+ } : {
41
+ type: import('vue').PropType<T[K]>;
42
+ required: true;
43
+ };
44
+ };
45
+ type __VLS_WithDefaults<P, D> = {
46
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
+ default: D[K];
48
+ }> : P[K];
49
+ };
50
+ type __VLS_Prettify<T> = {
51
+ [K in keyof T]: T[K];
52
+ } & {};
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,5 @@
1
+ import { default as AlertPlugin } from './plugin.js';
2
+ import { default as Alert } from './Alert.vue';
3
+
4
+ export { Alert, AlertPlugin };
5
+ export type { AlertProps, AlertEvents } from './types.js';
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+
3
+ declare const _default: Plugin;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ export type AlertProps = {
2
+ title?: string;
3
+ message?: string | string[];
4
+ confirm?: boolean;
5
+ closeTitle?: string;
6
+ cancelTitle?: string;
7
+ confirmTitle?: string;
8
+ };
9
+ export type AlertEvents = {
10
+ (e: "closed", val?: any): void;
11
+ (e: "confirmed"): void;
12
+ };
@@ -21,7 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
21
21
  }>, {
22
22
  iconReference: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
23
23
  icon: {
24
- type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "search" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "stop" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video" | "video-outline" | "web" | "zip-box">;
24
+ type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
25
25
  required: true;
26
26
  };
27
27
  role: {
@@ -29,14 +29,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
29
29
  default: string;
30
30
  };
31
31
  size: {
32
- type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
32
+ type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
33
33
  default: ElementSize;
34
34
  };
35
35
  }>>, {
36
36
  reference: import("vue").Ref<HTMLElement | null>;
37
37
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
38
38
  icon: {
39
- type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "search" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "stop" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video" | "video-outline" | "web" | "zip-box">;
39
+ type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
40
40
  required: true;
41
41
  };
42
42
  role: {
@@ -44,7 +44,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
44
44
  default: string;
45
45
  };
46
46
  size: {
47
- type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
47
+ type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
48
48
  default: ElementSize;
49
49
  };
50
50
  }>>, {
@@ -59,7 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
59
59
  Defaults: {};
60
60
  }, Readonly<import("vue").ExtractPropTypes<{
61
61
  icon: {
62
- type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "search" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "stop" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video" | "video-outline" | "web" | "zip-box">;
62
+ type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
63
63
  required: true;
64
64
  };
65
65
  role: {
@@ -67,7 +67,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
67
67
  default: string;
68
68
  };
69
69
  size: {
70
- type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
70
+ type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
71
71
  default: ElementSize;
72
72
  };
73
73
  }>>, {
@@ -95,12 +95,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
95
95
  }>>> & {
96
96
  onUpload?: ((val: FileList) => any) | undefined;
97
97
  }, {
98
- hover: boolean;
99
- size: `${ElementSize}`;
100
- shape: `${ElementShape}`;
101
98
  type: `${ButtonType}`;
102
99
  bold: boolean;
103
100
  label: string;
101
+ hover: boolean;
102
+ size: `${ElementSize}`;
103
+ shape: `${ElementShape}`;
104
104
  disabled: boolean;
105
105
  iconPosition: "left" | "right";
106
106
  iconProps: Partial<import("../types.js").IconProps> & {
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as DialogProviderPlugin } from './plugin.js';
2
+ import { default as DialogProvider } from './DialogProvider.vue';
3
+
4
+ export { DialogProvider, DialogProviderPlugin };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+
3
+ declare const _default: Plugin;
4
+ export default _default;
@@ -24,10 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
24
24
  }>>> & {
25
25
  onClosed?: (() => any) | undefined;
26
26
  }, {
27
+ title: string;
27
28
  style: {
28
29
  footer: string;
29
30
  };
30
- title: string;
31
31
  direction: "rtl" | "ltr";
32
32
  showHeader: boolean;
33
33
  }, {}>;
@@ -100,6 +100,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
100
100
  };
101
101
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
102
102
  "update:model-value": (val: any) => void;
103
+ "initial-hydration": (val: any) => void;
103
104
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
104
105
  modelValue: import("vue").PropType<InputSelectValue>;
105
106
  filter: {
@@ -166,6 +167,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
166
167
  };
167
168
  }>> & {
168
169
  "onUpdate:model-value"?: ((val: any) => any) | undefined;
170
+ "onInitial-hydration"?: ((val: any) => any) | undefined;
169
171
  }, {
170
172
  filter: (input: string, option: InputSelectOption) => boolean;
171
173
  size: FormControlSize;
@@ -64,4 +64,5 @@ export type InputSelectProps = {
64
64
  };
65
65
  export type InputSelectEvents = {
66
66
  (e: "update:model-value", val: any): void;
67
+ (e: "initial-hydration", val: any): void;
67
68
  };
@@ -2,14 +2,14 @@ import { FormControlSize } from '../../enums/ui.js';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  modelValue: import("vue").PropType<any>;
5
- size: {
6
- type: import("vue").PropType<"sm" | "default">;
7
- default: FormControlSize;
8
- };
9
5
  type: {
10
6
  type: import("vue").PropType<string>;
11
7
  default: string;
12
8
  };
9
+ size: {
10
+ type: import("vue").PropType<"default" | "sm">;
11
+ default: FormControlSize;
12
+ };
13
13
  disabled: {
14
14
  type: import("vue").PropType<boolean>;
15
15
  default: boolean;
@@ -34,14 +34,14 @@ declare const _default: import('vue').DefineComponent<{
34
34
  "keyup.enter": (val: any) => void;
35
35
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  modelValue: import("vue").PropType<any>;
37
- size: {
38
- type: import("vue").PropType<"sm" | "default">;
39
- default: FormControlSize;
40
- };
41
37
  type: {
42
38
  type: import("vue").PropType<string>;
43
39
  default: string;
44
40
  };
41
+ size: {
42
+ type: import("vue").PropType<"default" | "sm">;
43
+ default: FormControlSize;
44
+ };
45
45
  disabled: {
46
46
  type: import("vue").PropType<boolean>;
47
47
  default: boolean;
@@ -65,8 +65,8 @@ declare const _default: import('vue').DefineComponent<{
65
65
  }>> & {
66
66
  "onKeyup.enter"?: ((val: any) => any) | undefined;
67
67
  }, {
68
- size: `${FormControlSize}`;
69
68
  type: string;
69
+ size: `${FormControlSize}`;
70
70
  disabled: boolean;
71
71
  readonly: boolean;
72
72
  placeholder: string;
@@ -7,6 +7,7 @@ declare function __VLS_template(): {
7
7
  };
8
8
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
9
9
  title: string;
10
+ canClose: boolean;
10
11
  showHeader: boolean;
11
12
  injectStyle: () => {
12
13
  wrapper: string;
@@ -19,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
19
20
  closed: () => void;
20
21
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
21
22
  title: string;
23
+ canClose: boolean;
22
24
  showHeader: boolean;
23
25
  injectStyle: () => {
24
26
  wrapper: string;
@@ -33,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
33
35
  title: string;
34
36
  showHeader: boolean;
35
37
  disableStyle: boolean;
38
+ canClose: boolean;
36
39
  injectStyle: any;
37
40
  hasBackdrop: boolean;
38
41
  }, {}>;
@@ -1,5 +1,6 @@
1
1
  export type ModalProps = {
2
2
  title?: string;
3
+ canClose?: boolean;
3
4
  showHeader?: boolean;
4
5
  injectStyle?: any;
5
6
  hasBackdrop?: boolean;
@@ -17,8 +17,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
17
17
  }>>> & {
18
18
  onConfirm?: (() => any) | undefined;
19
19
  }, {
20
- placement: `${ElementPosition}`;
21
20
  message: string;
21
+ placement: `${ElementPosition}`;
22
22
  }, {}>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
24
24
  export default _default;
@@ -22,8 +22,8 @@ import { InputPhone } from './InputPhone/index.js';
22
22
  import { InputPassword } from './InputPassword/index.js';
23
23
  import { InputMultiplier } from './InputMultiplier/index.js';
24
24
  import { InputDate } from './InputDate/index.js';
25
- import { InputColor } from './InputColor/index.js';
26
25
  import { InputCryptoCurrency } from './InputCryptoCurrency/index.js';
26
+ import { InputColor } from './InputColor/index.js';
27
27
  import { InputCheckbox } from './InputCheckbox/index.js';
28
28
  import { InputAvatar } from './InputAvatar/index.js';
29
29
  import { Icon } from './Icon/index.js';
@@ -37,10 +37,12 @@ import { Form } from './Form/index.js';
37
37
  import { FileDrop } from './FileDrop/index.js';
38
38
  import { Dropdown } from './Dropdown/index.js';
39
39
  import { Drawer } from './Drawer/index.js';
40
+ import { DialogProvider } from './DialogProvider/index.js';
40
41
  import { ChartTreemap } from './ChartTreemap/index.js';
41
42
  import { ChartLine } from './ChartLine/index.js';
42
43
  import { Button } from './Button/index.js';
43
44
  import { Backdrop } from './Backdrop/index.js';
44
45
  import { Avatar } from './Avatar/index.js';
46
+ import { Alert } from './Alert/index.js';
45
47
 
46
- export { Avatar, Backdrop, Button, ChartLine, ChartTreemap, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox, InputCryptoCurrency, InputColor, InputDate, InputMultiplier, InputPassword, InputPhone, InputPrice, InputRadio, InputSelect, InputSwitch, InputText, InputTextarea, Link, Modal, ModalForm, Pagination, Popconfirm, Popover, ProgressCircle, ProgressLine, SensitiveInfo, Skeleton, Tab, Table, Tag, Toast, };
48
+ export { Alert, Avatar, Backdrop, Button, ChartLine, ChartTreemap, DialogProvider, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox, InputColor, InputCryptoCurrency, InputDate, InputMultiplier, InputPassword, InputPhone, InputPrice, InputRadio, InputSelect, InputSwitch, InputText, InputTextarea, Link, Modal, ModalForm, Pagination, Popconfirm, Popover, ProgressCircle, ProgressLine, SensitiveInfo, Skeleton, Tab, Table, Tag, Toast, };
@@ -1,7 +1,7 @@
1
1
  import { ToastPlugin } from './Toast/index.js';
2
2
  import { TagPlugin } from './Tag/index.js';
3
- import { TablePlugin } from './Table/index.js';
4
3
  import { TabPlugin } from './Tab/index.js';
4
+ import { TablePlugin } from './Table/index.js';
5
5
  import { SkeletonPlugin } from './Skeleton/index.js';
6
6
  import { SensitiveInfoPlugin } from './SensitiveInfo/index.js';
7
7
  import { ProgressLinePlugin } from './ProgressLine/index.js';
@@ -9,11 +9,11 @@ import { ProgressCirclePlugin } from './ProgressCircle/index.js';
9
9
  import { PopoverPlugin } from './Popover/index.js';
10
10
  import { PopconfirmPlugin } from './Popconfirm/index.js';
11
11
  import { PaginationPlugin } from './Pagination/index.js';
12
- import { ModalFormPlugin } from './ModalForm/index.js';
13
12
  import { ModalPlugin } from './Modal/index.js';
13
+ import { ModalFormPlugin } from './ModalForm/index.js';
14
14
  import { LinkPlugin } from './Link/index.js';
15
- import { InputTextareaPlugin } from './InputTextarea/index.js';
16
15
  import { InputTextPlugin } from './InputText/index.js';
16
+ import { InputTextareaPlugin } from './InputTextarea/index.js';
17
17
  import { InputSwitchPlugin } from './InputSwitch/index.js';
18
18
  import { InputSelectPlugin } from './InputSelect/index.js';
19
19
  import { InputRadioPlugin } from './InputRadio/index.js';
@@ -22,8 +22,8 @@ import { InputPhonePlugin } from './InputPhone/index.js';
22
22
  import { InputPasswordPlugin } from './InputPassword/index.js';
23
23
  import { InputMultiplierPlugin } from './InputMultiplier/index.js';
24
24
  import { InputDatePlugin } from './InputDate/index.js';
25
- import { InputColorPlugin } from './InputColor/index.js';
26
25
  import { InputCryptoCurrencyPlugin } from './InputCryptoCurrency/index.js';
26
+ import { InputColorPlugin } from './InputColor/index.js';
27
27
  import { InputCheckboxPlugin } from './InputCheckbox/index.js';
28
28
  import { InputAvatarPlugin } from './InputAvatar/index.js';
29
29
  import { IconPlugin } from './Icon/index.js';
@@ -32,15 +32,17 @@ import { GraphySubtitlePlugin } from './GraphySubtitle/index.js';
32
32
  import { GraphyPricePlugin } from './GraphyPrice/index.js';
33
33
  import { GraphyLabelPlugin } from './GraphyLabel/index.js';
34
34
  import { GraphyEmptyPlugin } from './GraphyEmpty/index.js';
35
- import { FormItemPlugin } from './FormItem/index.js';
36
35
  import { FormPlugin } from './Form/index.js';
36
+ import { FormItemPlugin } from './FormItem/index.js';
37
37
  import { FileDropPlugin } from './FileDrop/index.js';
38
38
  import { DropdownPlugin } from './Dropdown/index.js';
39
39
  import { DrawerPlugin } from './Drawer/index.js';
40
+ import { DialogProviderPlugin } from './DialogProvider/index.js';
40
41
  import { ChartTreemapPlugin } from './ChartTreemap/index.js';
41
42
  import { ChartLinePlugin } from './ChartLine/index.js';
42
43
  import { ButtonPlugin } from './Button/index.js';
43
44
  import { BackdropPlugin } from './Backdrop/index.js';
44
45
  import { AvatarPlugin } from './Avatar/index.js';
46
+ import { AlertPlugin } from './Alert/index.js';
45
47
 
46
- export { AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin, FormPlugin, FormItemPlugin, GraphyEmptyPlugin, GraphyLabelPlugin, GraphyPricePlugin, GraphySubtitlePlugin, GraphyTitlePlugin, IconPlugin, InputAvatarPlugin, InputCheckboxPlugin, InputCryptoCurrencyPlugin, InputColorPlugin, InputDatePlugin, InputMultiplierPlugin, InputPasswordPlugin, InputPhonePlugin, InputPricePlugin, InputRadioPlugin, InputSelectPlugin, InputSwitchPlugin, InputTextPlugin, InputTextareaPlugin, LinkPlugin, ModalPlugin, ModalFormPlugin, PaginationPlugin, PopconfirmPlugin, PopoverPlugin, ProgressCirclePlugin, ProgressLinePlugin, SensitiveInfoPlugin, SkeletonPlugin, TabPlugin, TablePlugin, TagPlugin, ToastPlugin, };
48
+ export { AlertPlugin, AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DialogProviderPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin, FormItemPlugin, FormPlugin, GraphyEmptyPlugin, GraphyLabelPlugin, GraphyPricePlugin, GraphySubtitlePlugin, GraphyTitlePlugin, IconPlugin, InputAvatarPlugin, InputCheckboxPlugin, InputColorPlugin, InputCryptoCurrencyPlugin, InputDatePlugin, InputMultiplierPlugin, InputPasswordPlugin, InputPhonePlugin, InputPricePlugin, InputRadioPlugin, InputSelectPlugin, InputSwitchPlugin, InputTextareaPlugin, InputTextPlugin, LinkPlugin, ModalFormPlugin, ModalPlugin, PaginationPlugin, PopconfirmPlugin, PopoverPlugin, ProgressCirclePlugin, ProgressLinePlugin, SensitiveInfoPlugin, SkeletonPlugin, TablePlugin, TabPlugin, TagPlugin, ToastPlugin, };
@@ -41,5 +41,6 @@ import { ChartLineProps } from './ChartLine/index.js';
41
41
  import { ButtonProps, ButtonEvents } from './Button/index.js';
42
42
  import { BackdropProps, BackdropEvents } from './Backdrop/index.js';
43
43
  import { AvatarProps } from './Avatar/index.js';
44
+ import { AlertProps } from './Alert/index.js';
44
45
 
45
- export type { AvatarProps, BackdropProps, BackdropEvents, ButtonProps, ButtonEvents, ChartLineProps, ChartTreemapProps, DrawerProps, DrawerEvents, DropdownProps, DropdownEvents, FileDropProps, FileDropEvents, FormProps, FormEvents, FormItemProps, GraphyEmptyProps, GraphyLabelProps, GraphyPriceProps, GraphySubtitleProps, GraphyTitleProps, IconProps, InputAvatarProps, InputAvatarEvents, InputCheckboxProps, InputCheckboxEvents, InputColorProps, InputColorEvents, InputDateProps, InputDateEvents, InputMultiplierEvents, InputPasswordModel, InputPasswordProps, InputPasswordEvents, InputPhoneProps, InputPhoneEvents, InputPriceModel, InputPriceProps, InputPriceEvents, InputRadioProps, InputRadioGroupProps, InputRadioGroupEvents, InputSelectValue, InputSelectProps, InputSelectOption, InputSelectEvents, InputSwitchProps, InputSwitchEvents, InputMultiplierProps, InputTextProps, InputTextEvents, InputTextareaProps, InputTextareaEvents, LinkProps, LinkEvents, ModalProps, ModalEvents, ModalFormProps, ModalFormEvents, PaginationProps, PopconfirmProps, PopconfirmEvents, PopoverProps, ProgressCircleProps, ProgressLineProps, SensitiveInfoProps, SkeletonProps, TabProps, TableProps, TableEvents, TagEvents, TagProps, ToastProps, ToastEvents, };
46
+ export type { AlertProps, AvatarProps, BackdropProps, BackdropEvents, ButtonProps, ButtonEvents, ChartLineProps, ChartTreemapProps, DrawerProps, DrawerEvents, DropdownProps, DropdownEvents, FileDropProps, FileDropEvents, FormProps, FormEvents, FormItemProps, GraphyEmptyProps, GraphyLabelProps, GraphyPriceProps, GraphySubtitleProps, GraphyTitleProps, IconProps, InputAvatarProps, InputAvatarEvents, InputCheckboxProps, InputCheckboxEvents, InputColorProps, InputColorEvents, InputDateProps, InputDateEvents, InputMultiplierEvents, InputPasswordModel, InputPasswordProps, InputPasswordEvents, InputPhoneProps, InputPhoneEvents, InputPriceModel, InputPriceProps, InputPriceEvents, InputRadioProps, InputRadioGroupProps, InputRadioGroupEvents, InputSelectValue, InputSelectProps, InputSelectOption, InputSelectEvents, InputSwitchProps, InputSwitchEvents, InputMultiplierProps, InputTextProps, InputTextEvents, InputTextareaProps, InputTextareaEvents, LinkProps, LinkEvents, ModalProps, ModalEvents, ModalFormProps, ModalFormEvents, PaginationProps, PopconfirmProps, PopconfirmEvents, PopoverProps, ProgressCircleProps, ProgressLineProps, SensitiveInfoProps, SkeletonProps, TabProps, TableProps, TableEvents, TagEvents, TagProps, ToastProps, ToastEvents, };
@@ -1,6 +1,7 @@
1
1
  import { default as useRender } from './useRender.js';
2
2
  import { default as useDomHelpers } from './useDomHelpers.js';
3
+ import { default as useDialog } from './useDialog.js';
3
4
  import { default as useClipboard } from './useClipboard.js';
4
5
  import { default as useBreakpoints } from './useBreakpoints.js';
5
6
 
6
- export { useBreakpoints, useClipboard, useDomHelpers, useRender };
7
+ export { useBreakpoints, useClipboard, useDialog, useDomHelpers, useRender };
@@ -0,0 +1,33 @@
1
+ import { AlertProps } from '../components/Alert/types.js';
2
+
3
+ type AlertOptions = AlertProps & {
4
+ onConfirm?: () => void;
5
+ onClose?: () => void;
6
+ };
7
+ export default function useDialog(): {
8
+ alerts: import('vue').Ref<{
9
+ id: string;
10
+ events: {
11
+ title?: string | undefined;
12
+ message?: string | string[] | undefined;
13
+ confirm?: boolean | undefined;
14
+ closeTitle?: string | undefined;
15
+ cancelTitle?: string | undefined;
16
+ confirmTitle?: string | undefined;
17
+ onConfirm?: (() => void) | undefined;
18
+ onClose?: (() => void) | undefined;
19
+ };
20
+ options: {
21
+ title?: string | undefined;
22
+ message?: string | string[] | undefined;
23
+ confirm?: boolean | undefined;
24
+ closeTitle?: string | undefined;
25
+ cancelTitle?: string | undefined;
26
+ confirmTitle?: string | undefined;
27
+ onConfirm?: (() => void) | undefined;
28
+ onClose?: (() => void) | undefined;
29
+ };
30
+ }[]>;
31
+ alert: (options: AlertOptions) => void;
32
+ };
33
+ export {};
@@ -0,0 +1,28 @@
1
+ import { ref as f } from "vue";
2
+ const n = f([]);
3
+ function u() {
4
+ return {
5
+ alerts: n,
6
+ alert: (e) => {
7
+ const t = Date.now().toString(), s = () => {
8
+ const l = n.value.findIndex((r) => r.id === t);
9
+ l !== -1 && n.value.splice(l, 1);
10
+ }, i = {
11
+ onClose: () => {
12
+ e?.onClose && e.onClose(), s();
13
+ },
14
+ onConfirm: () => {
15
+ e?.onConfirm && e.onConfirm(), s();
16
+ }
17
+ }, o = { ...e };
18
+ delete o?.onClose, delete o?.onConfirm, n.value.push({
19
+ id: t,
20
+ events: i,
21
+ options: o
22
+ });
23
+ }
24
+ };
25
+ }
26
+ export {
27
+ u
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.99",
3
+ "version": "0.0.101",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",