@robuust-digital/vue-components 2.2.1 → 2.3.0
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/CHANGELOG.md +13 -0
- package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js → ButtonBase.vue_vue_type_script_setup_true_lang-BLm8QzEC.js} +23 -23
- package/dist/_shared/{ChevronDownIcon-DaaXfD3C.js → ChevronDownIcon-CcE_K1lg.js} +12 -12
- package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-CxRv55TC.js +256 -0
- package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js → Drawer.vue_vue_type_script_setup_true_lang-XMND_Yzl.js} +62 -62
- package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-BtkiBqxy.js +115 -0
- package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js +74 -0
- package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js → Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js} +68 -71
- package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js → RichTextEditor.vue_vue_type_script_setup_true_lang-BLs_S_-D.js} +102 -133
- package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-DMUJ5Emt.js +670 -0
- package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-BfMkJm5T.js +78 -0
- package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CKp1wzE2.js +95 -0
- package/dist/combobox/index.js +1 -1
- package/dist/core/checkbox.css +10 -5
- package/dist/core/index.js +4 -4
- package/dist/core/radio.css +11 -6
- package/dist/core.d.ts +2 -2
- package/dist/dialogs/index.js +2 -2
- package/dist/dropdown/index.js +1 -1
- package/dist/index/index.js +11 -11
- package/dist/index.d.ts +2 -2
- package/dist/rich-text-editor/index.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/package.json +19 -19
- package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js +0 -266
- package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js +0 -115
- package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js +0 -75
- package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-DnzOq9GZ.js +0 -679
- package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js +0 -78
- package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js +0 -96
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, onMounted as y, watch as h, createBlock as a, openBlock as e, unref as i, withCtx as c, resolveDynamicComponent as m, normalizeClass as w, renderSlot as s, createElementVNode as C, createCommentVNode as n, createElementBlock as u, toDisplayString as $, createVNode as k } from "vue";
|
|
2
|
-
import { TransitionRoot as b } from "@headlessui/vue";
|
|
3
|
-
import { r as B } from "./XMarkIcon-90mcPzBs.js";
|
|
4
|
-
const T = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "rvc-toast-title"
|
|
7
|
-
}, S = /* @__PURE__ */ d({
|
|
8
|
-
__name: "Toast",
|
|
9
|
-
props: {
|
|
10
|
-
show: { type: Boolean, default: !1 },
|
|
11
|
-
as: { default: "div" },
|
|
12
|
-
title: { default: "" },
|
|
13
|
-
icon: { type: [Function, Object, null], default: null },
|
|
14
|
-
timeout: { type: [Number, Boolean], default: 5e3 },
|
|
15
|
-
position: { default: "bottom" },
|
|
16
|
-
type: { default: "info" },
|
|
17
|
-
showClose: { type: Boolean, default: !1 }
|
|
18
|
-
},
|
|
19
|
-
emits: ["toast:close"],
|
|
20
|
-
setup(f, { emit: p }) {
|
|
21
|
-
const o = f, v = p, l = () => {
|
|
22
|
-
o.timeout && o.show && setTimeout(() => {
|
|
23
|
-
v("toast:close");
|
|
24
|
-
}, o.timeout);
|
|
25
|
-
};
|
|
26
|
-
return y(() => {
|
|
27
|
-
l();
|
|
28
|
-
}), h(() => o.show, (t) => {
|
|
29
|
-
t && l();
|
|
30
|
-
}), (t, r) => (e(), a(i(b), {
|
|
31
|
-
show: t.show,
|
|
32
|
-
as: "template",
|
|
33
|
-
enter: "rvc-toast-transition-enter",
|
|
34
|
-
"enter-from": "rvc-toast-transition-enter-from",
|
|
35
|
-
"enter-to": "rvc-toast-transition-enter-to",
|
|
36
|
-
leave: "rvc-toast-transition-leave",
|
|
37
|
-
"leave-from": "rvc-toast-transition-leave-from",
|
|
38
|
-
"leave-to": "rvc-toast-transition-leave-to"
|
|
39
|
-
}, {
|
|
40
|
-
default: c(() => [
|
|
41
|
-
(e(), a(m(t.as), {
|
|
42
|
-
class: w(["rvc-toast", `rvc-toast-${t.position}`, `rvc-toast-${t.type}`, { "rvc-toast-open": t.show }])
|
|
43
|
-
}, {
|
|
44
|
-
default: c(() => [
|
|
45
|
-
s(t.$slots, "icon", {}, () => [
|
|
46
|
-
t.icon ? (e(), a(m(t.icon), {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "rvc-toast-icon"
|
|
49
|
-
})) : n("", !0)
|
|
50
|
-
]),
|
|
51
|
-
C("div", null, [
|
|
52
|
-
s(t.$slots, "title", {}, () => [
|
|
53
|
-
t.title ? (e(), u("span", T, $(t.title), 1)) : n("", !0)
|
|
54
|
-
]),
|
|
55
|
-
s(t.$slots, "default")
|
|
56
|
-
]),
|
|
57
|
-
s(t.$slots, "close", {}, () => [
|
|
58
|
-
t.showClose ? (e(), u("button", {
|
|
59
|
-
key: 0,
|
|
60
|
-
type: "button",
|
|
61
|
-
class: "rvc-toast-close",
|
|
62
|
-
"aria-label": "Close",
|
|
63
|
-
onClick: r[0] || (r[0] = (N) => t.$emit("toast:close"))
|
|
64
|
-
}, [
|
|
65
|
-
k(i(B))
|
|
66
|
-
])) : n("", !0)
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["class"]))
|
|
71
|
-
]),
|
|
72
|
-
_: 3
|
|
73
|
-
}, 8, ["show"]));
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
S as _
|
|
78
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, shallowRef as n, createElementBlock as f, openBlock as d, renderSlot as u, createElementVNode as w, normalizeStyle as k, normalizeClass as z, unref as h, createCommentVNode as S, mergeProps as x } from "vue";
|
|
2
|
-
import { useFloating as C, autoUpdate as W, autoPlacement as M, offset as P, shift as _, arrow as A, size as B } from "@floating-ui/vue";
|
|
3
|
-
const E = ["innerHTML"], L = /* @__PURE__ */ R({
|
|
4
|
-
__name: "Tooltip",
|
|
5
|
-
props: {
|
|
6
|
-
content: {},
|
|
7
|
-
blur: { type: Boolean, default: !0 },
|
|
8
|
-
maxWidth: { default: null },
|
|
9
|
-
tooltipClass: { default: "" },
|
|
10
|
-
placement: { default: void 0 },
|
|
11
|
-
size: { default: "base" }
|
|
12
|
-
},
|
|
13
|
-
setup(v) {
|
|
14
|
-
const o = v, s = n(), a = n(), l = n(), {
|
|
15
|
-
floatingStyles: y,
|
|
16
|
-
middlewareData: g,
|
|
17
|
-
placement: i
|
|
18
|
-
} = C(s, a, {
|
|
19
|
-
middleware: [
|
|
20
|
-
...o.placement ? [] : [M()],
|
|
21
|
-
P(o.size === "sm" ? 7 : 10),
|
|
22
|
-
_({ crossAxis: !0, padding: 5 }),
|
|
23
|
-
A({ element: l }),
|
|
24
|
-
B({
|
|
25
|
-
apply({ availableWidth: e, availableHeight: t, elements: r }) {
|
|
26
|
-
Object.assign(r.floating.style, {
|
|
27
|
-
maxWidth: o.maxWidth ? `${Math.min(e, o.maxWidth) / 16}rem` : "",
|
|
28
|
-
maxHeight: `${t / 16}rem `
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
],
|
|
33
|
-
whileElementsMounted: W,
|
|
34
|
-
placement: o.placement
|
|
35
|
-
}), b = (e) => {
|
|
36
|
-
const t = {
|
|
37
|
-
top: 0,
|
|
38
|
-
bottom: 180,
|
|
39
|
-
left: -90,
|
|
40
|
-
right: 90
|
|
41
|
-
}, r = e.split("-")[0];
|
|
42
|
-
return r && t[r] || 0;
|
|
43
|
-
}, $ = (e) => {
|
|
44
|
-
var m, c;
|
|
45
|
-
const t = i.value.split("-")[0], p = t ? {
|
|
46
|
-
left: "right",
|
|
47
|
-
right: "left",
|
|
48
|
-
bottom: "top",
|
|
49
|
-
top: "bottom"
|
|
50
|
-
}[t] : "";
|
|
51
|
-
return {
|
|
52
|
-
style: {
|
|
53
|
-
left: (m = e.arrow) != null && m.x ? `${e.arrow.x}px` : "",
|
|
54
|
-
top: (c = e.arrow) != null && c.y ? `${e.arrow.y}px` : "",
|
|
55
|
-
bottom: "",
|
|
56
|
-
right: "",
|
|
57
|
-
...p ? { [p]: l.value ? `${l.value.offsetWidth * -1}px` : "" } : {},
|
|
58
|
-
transform: `rotate(${b(i.value)}deg)`
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
return (e, t) => (d(), f("div", {
|
|
63
|
-
ref_key: "wrapperRef",
|
|
64
|
-
ref: s,
|
|
65
|
-
class: "rvc-tooltip-wrapper"
|
|
66
|
-
}, [
|
|
67
|
-
u(e.$slots, "default"),
|
|
68
|
-
w("div", {
|
|
69
|
-
ref_key: "tooltipRef",
|
|
70
|
-
ref: a,
|
|
71
|
-
class: z([
|
|
72
|
-
"rvc-tooltip",
|
|
73
|
-
e.tooltipClass,
|
|
74
|
-
`rvc-tooltip-${e.size}`,
|
|
75
|
-
{ "rvc-tooltip-blur": e.blur }
|
|
76
|
-
]),
|
|
77
|
-
style: k(h(y))
|
|
78
|
-
}, [
|
|
79
|
-
u(e.$slots, "content", { content: e.content }, () => [
|
|
80
|
-
e.content ? (d(), f("div", {
|
|
81
|
-
key: 0,
|
|
82
|
-
innerHTML: e.content
|
|
83
|
-
}, null, 8, E)) : S("", !0)
|
|
84
|
-
]),
|
|
85
|
-
w("div", x({
|
|
86
|
-
ref_key: "arrowRef",
|
|
87
|
-
ref: l,
|
|
88
|
-
class: "rvc-tooltip-arrow"
|
|
89
|
-
}, $(h(g))), null, 16)
|
|
90
|
-
], 6)
|
|
91
|
-
], 512));
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
L as _
|
|
96
|
-
};
|