@idds/vue 1.2.2 → 1.2.3
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/dist/components/Tooltip.vue.d.ts +26 -40
- package/dist/components/Tooltip.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +38 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +138 -228
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,55 +1,49 @@
|
|
|
1
1
|
|
|
2
|
-
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right'
|
|
3
|
-
export type TooltipVariant = 'basic' | 'light' | 'dark' | 'media'
|
|
2
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export type TooltipVariant = 'basic' | 'light' | 'dark' | 'media';
|
|
4
4
|
export interface TooltipProps {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Konten tooltip (teks) - untuk basic variant
|
|
7
|
+
* Judul tooltip untuk light/dark/media variant
|
|
7
8
|
*/
|
|
8
9
|
title?: string;
|
|
9
10
|
/**
|
|
10
|
-
* Deskripsi tooltip (untuk light/dark/media variant)
|
|
11
|
+
* Deskripsi tooltip (untuk light/dark/media variant)
|
|
11
12
|
*/
|
|
12
13
|
description?: string;
|
|
13
14
|
/**
|
|
14
|
-
* Image/thumbnail untuk media variant
|
|
15
|
+
* Image/thumbnail untuk media variant
|
|
15
16
|
*/
|
|
16
17
|
image?: string;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
* User bisa pass pagination, actions, atau konten apapun sesuai kebutuhan.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Variant tooltip: basic, light, dark, media, custom.
|
|
19
|
+
* Variant tooltip: basic, light, dark, media
|
|
23
20
|
*/
|
|
24
21
|
variant?: TooltipVariant;
|
|
25
22
|
/**
|
|
26
|
-
* Posisi tooltip
|
|
23
|
+
* Posisi tooltip
|
|
27
24
|
*/
|
|
28
25
|
placement?: TooltipPlacement;
|
|
29
26
|
/**
|
|
30
|
-
* Apakah menampilkan arrow
|
|
27
|
+
* Apakah menampilkan arrow
|
|
31
28
|
*/
|
|
32
29
|
showArrow?: boolean;
|
|
33
30
|
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
delay?: number;
|
|
37
|
-
/**
|
|
38
|
-
* Delay sebelum hide (ms).
|
|
31
|
+
* Callback ketika close button diklik (untuk light/dark/media variant)
|
|
39
32
|
*/
|
|
40
|
-
|
|
33
|
+
onClose?: () => void;
|
|
41
34
|
/**
|
|
42
|
-
*
|
|
35
|
+
* Callback ketika button "Lanjut" diklik (untuk light/dark/media variant)
|
|
43
36
|
*/
|
|
44
|
-
|
|
37
|
+
onNext?: () => void;
|
|
45
38
|
/**
|
|
46
|
-
*
|
|
39
|
+
* Jika true, render content sebagai custom content sepenuhnya tanpa struktur card/bubble
|
|
40
|
+
* Content akan diambil dari slot `content` (VNode)
|
|
47
41
|
*/
|
|
48
|
-
|
|
42
|
+
customContent?: boolean;
|
|
49
43
|
/**
|
|
50
|
-
*
|
|
44
|
+
* ClassName tambahan
|
|
51
45
|
*/
|
|
52
|
-
|
|
46
|
+
className?: string;
|
|
53
47
|
}
|
|
54
48
|
declare function __VLS_template(): {
|
|
55
49
|
default?(_: {}): any;
|
|
@@ -64,38 +58,30 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
64
58
|
variant: string;
|
|
65
59
|
placement: string;
|
|
66
60
|
showArrow: boolean;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
disabled: boolean;
|
|
70
|
-
trigger: string;
|
|
61
|
+
customContent: boolean;
|
|
62
|
+
className: string;
|
|
71
63
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
64
|
close: () => void;
|
|
73
|
-
|
|
74
|
-
hide: () => void;
|
|
65
|
+
next: () => void;
|
|
75
66
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TooltipProps>, {
|
|
76
67
|
title: string;
|
|
77
68
|
description: string;
|
|
78
69
|
variant: string;
|
|
79
70
|
placement: string;
|
|
80
71
|
showArrow: boolean;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
disabled: boolean;
|
|
84
|
-
trigger: string;
|
|
72
|
+
customContent: boolean;
|
|
73
|
+
className: string;
|
|
85
74
|
}>>> & Readonly<{
|
|
86
75
|
onClose?: () => any;
|
|
87
|
-
|
|
88
|
-
onHide?: () => any;
|
|
76
|
+
onNext?: () => any;
|
|
89
77
|
}>, {
|
|
90
|
-
disabled: boolean;
|
|
91
78
|
title: string;
|
|
79
|
+
className: string;
|
|
92
80
|
variant: TooltipVariant;
|
|
93
81
|
placement: TooltipPlacement;
|
|
94
82
|
description: string;
|
|
95
|
-
trigger: "hover" | "focus" | "click";
|
|
96
83
|
showArrow: boolean;
|
|
97
|
-
|
|
98
|
-
leaveDelay: number;
|
|
84
|
+
customContent: boolean;
|
|
99
85
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
100
86
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
101
87
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.vue.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.vue"],"names":[],"mappings":"AAqGA;AAGA,OAAO,qCAAqC,CAAC;AAE7C,MAAM,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Tooltip.vue.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.vue"],"names":[],"mappings":"AAqGA;AAGA,OAAO,qCAAqC,CAAC;AA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