@emoo-ai/ui-vue 0.1.4 → 0.1.5

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.
@@ -10,16 +10,15 @@ type __VLS_Props = {
10
10
  span?: number | 'full';
11
11
  testid?: string;
12
12
  };
13
- declare var __VLS_1: {}, __VLS_3: {
14
- id: string | undefined;
15
- describedBy: string | undefined;
16
- invalid: boolean;
17
- testid: string | undefined;
18
- };
19
- type __VLS_Slots = {} & {
20
- view?: (props: typeof __VLS_1) => any;
21
- } & {
22
- default?: (props: typeof __VLS_3) => any;
13
+ type __VLS_Slots = {
14
+ label?: () => any;
15
+ view?: () => any;
16
+ default?: (props: {
17
+ id?: string;
18
+ describedBy?: string;
19
+ invalid: boolean;
20
+ testid?: string;
21
+ }) => any;
23
22
  };
24
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
24
  mode: "view" | "edit" | "hidden";
@@ -0,0 +1,8 @@
1
+ import 'element-plus/es/components/message-box/style/css';
2
+ export interface EmooConfirmOptions {
3
+ title: string;
4
+ confirmText?: string;
5
+ cancelButtonText?: string;
6
+ tone?: 'default' | 'danger';
7
+ }
8
+ export declare function emooConfirm(message: string, options: EmooConfirmOptions): Promise<boolean>;
@@ -0,0 +1,11 @@
1
+ import 'element-plus/es/components/message/style/css';
2
+ export interface ToastOptions {
3
+ duration?: number;
4
+ showClose?: boolean;
5
+ }
6
+ export declare const toast: {
7
+ success: (message: string, options?: ToastOptions) => import("element-plus").MessageHandler;
8
+ info: (message: string, options?: ToastOptions) => import("element-plus").MessageHandler;
9
+ warning: (message: string, options?: ToastOptions) => import("element-plus").MessageHandler;
10
+ error: (message: string, options?: ToastOptions) => import("element-plus").MessageHandler;
11
+ };
package/dist/index.d.ts CHANGED
@@ -46,6 +46,10 @@ export type { ColPref, ColumnPrefDef, StoredSort, TablePrefs } from './composabl
46
46
  export { useSheetHeightDrag, nearestSheetTier } from './composables/useSheetHeightDrag';
47
47
  export { useMessageScroll } from './composables/useMessageScroll';
48
48
  export type { UseMessageScrollOptions } from './composables/useMessageScroll';
49
+ export { toast } from './feedback/toast';
50
+ export type { ToastOptions } from './feedback/toast';
51
+ export { emooConfirm } from './feedback/confirm';
52
+ export type { EmooConfirmOptions } from './feedback/confirm';
49
53
  export { getDrawerWidth, saveDrawerWidth } from './utils/drawer-size';
50
54
  export { avatarTintOf, AVATAR_TINT_PALETTE } from './utils/avatar-tint';
51
55
  export { elementPlusColorVars, PRESET_COLORS, mixColor, hexToRgbString, primaryColorVars } from './theme';