@aitronos/freddy-plugins 0.2.0 → 0.2.1
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/freddy-plugins.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -7
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ close: (...args: any[]) => void;
|
|
|
94
94
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
96
96
|
|
|
97
|
-
declare const __VLS_component_6: DefineComponent<
|
|
97
|
+
declare const __VLS_component_6: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
98
98
|
tooltipWrapper: HTMLDivElement;
|
|
99
99
|
}, HTMLDivElement>;
|
|
100
100
|
|
|
@@ -139,12 +139,6 @@ declare type __VLS_Props_7 = {
|
|
|
139
139
|
size?: 's' | 'sm' | 'md' | 'lg' | 'xl';
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
declare type __VLS_Props_8 = {
|
|
143
|
-
text?: string;
|
|
144
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
145
|
-
html?: boolean;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
142
|
declare function __VLS_template(): {
|
|
149
143
|
attrs: Partial<{}>;
|
|
150
144
|
slots: {
|
|
@@ -973,6 +967,17 @@ declare type ToastType = "success" | "danger" | "info";
|
|
|
973
967
|
|
|
974
968
|
export declare const Tooltip: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
975
969
|
|
|
970
|
+
declare interface TooltipProps {
|
|
971
|
+
/** The text content to display in the tooltip */
|
|
972
|
+
text?: string;
|
|
973
|
+
/** The placement of the tooltip relative to the trigger element */
|
|
974
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
975
|
+
/** Whether to render the text as HTML */
|
|
976
|
+
html?: boolean;
|
|
977
|
+
/** Custom CSS class to apply to the tooltip content */
|
|
978
|
+
contentClass?: string;
|
|
979
|
+
}
|
|
980
|
+
|
|
976
981
|
export declare const useSnackBar: () => {
|
|
977
982
|
snackQueue: Ref< {
|
|
978
983
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,8 @@ const z0 = {
|
|
|
53
53
|
props: {
|
|
54
54
|
text: {},
|
|
55
55
|
placement: {},
|
|
56
|
-
html: { type: Boolean }
|
|
56
|
+
html: { type: Boolean },
|
|
57
|
+
contentClass: {}
|
|
57
58
|
},
|
|
58
59
|
setup(o) {
|
|
59
60
|
const t = Q(!1), e = Q(!1), l = Q(null);
|
|
@@ -85,7 +86,11 @@ const z0 = {
|
|
|
85
86
|
default: x1(() => [
|
|
86
87
|
t.value ? (s(), i("div", {
|
|
87
88
|
key: 0,
|
|
88
|
-
class: _(["tooltip-content", [
|
|
89
|
+
class: _(["tooltip-content", [
|
|
90
|
+
g.placement,
|
|
91
|
+
e.value ? "force-bottom" : "",
|
|
92
|
+
g.contentClass
|
|
93
|
+
]])
|
|
89
94
|
}, [
|
|
90
95
|
X(g.$slots, "content", {}, () => [
|
|
91
96
|
g.html ? (s(), i("span", {
|
|
@@ -104,7 +109,7 @@ const z0 = {
|
|
|
104
109
|
for (const [l, c] of t)
|
|
105
110
|
e[l] = c;
|
|
106
111
|
return e;
|
|
107
|
-
}, C0 = /* @__PURE__ */ p($0, [["__scopeId", "data-v-
|
|
112
|
+
}, C0 = /* @__PURE__ */ p($0, [["__scopeId", "data-v-6df39f10"]]), t3 = ["disabled", "aria-disabled", "aria-label"], e3 = {
|
|
108
113
|
key: 0,
|
|
109
114
|
class: "button-custom-content"
|
|
110
115
|
}, o3 = {
|