@robuust-digital/vue-components 2.5.0-beta.4 → 2.5.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 +25 -1
- package/dist/_shared/Drawer.vue_vue_type_script_setup_true_lang-DjP68vua.js +197 -0
- package/dist/_shared/Modal.vue_vue_type_script_setup_true_lang-MN3D46CX.js +198 -0
- package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-DaCv0Gii.js → RichTextEditor.vue_vue_type_script_setup_true_lang-t14vKtCW.js} +44 -40
- package/dist/core/badge.css +4 -0
- package/dist/core/empty-state.css +4 -0
- package/dist/core/pagination.css +9 -4
- package/dist/core/table.css +8 -0
- package/dist/core/tabs.css +6 -0
- package/dist/dialogs/index.js +2 -2
- package/dist/dialogs.d.ts +75 -2
- package/dist/index/index.js +3 -3
- package/dist/index.d.ts +75 -2
- package/dist/rich-text-editor/index.js +1 -1
- package/package.json +1 -1
- package/dist/_shared/Drawer.vue_vue_type_script_setup_true_lang-CZMVooMV.js +0 -185
- package/dist/_shared/Modal.vue_vue_type_script_setup_true_lang-CB0Gez7v.js +0 -183
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { useEditor as N, EditorContent as
|
|
3
|
-
import
|
|
1
|
+
import { openBlock as s, createElementBlock as r, createElementVNode as o, defineComponent as $, ref as h, useAttrs as B, computed as x, watch as y, Fragment as C, createVNode as v, withCtx as A, renderSlot as _, normalizeClass as M, unref as f, renderList as E, createBlock as S, resolveDynamicComponent as O, createCommentVNode as U } from "vue";
|
|
2
|
+
import { useEditor as N, EditorContent as T } from "@tiptap/vue-3";
|
|
3
|
+
import j from "@tiptap/starter-kit";
|
|
4
4
|
import { _ as z } from "./Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js";
|
|
5
5
|
import { _ as D } from "./FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js";
|
|
6
|
-
import { _ as I } from "./Modal.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as I } from "./Modal.vue_vue_type_script_setup_true_lang-MN3D46CX.js";
|
|
7
7
|
function q(n, c) {
|
|
8
|
-
return
|
|
8
|
+
return s(), r("svg", {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
viewBox: "0 0 16 16",
|
|
11
11
|
fill: "currentColor",
|
|
12
12
|
"aria-hidden": "true",
|
|
13
13
|
"data-slot": "icon"
|
|
14
14
|
}, [
|
|
15
|
-
|
|
15
|
+
o("path", {
|
|
16
16
|
"fill-rule": "evenodd",
|
|
17
17
|
d: "M3 3a1 1 0 0 1 1-1h5a3.5 3.5 0 0 1 2.843 5.541A3.75 3.75 0 0 1 9.25 14H4a1 1 0 0 1-1-1V3Zm2.5 3.5v-2H9a1 1 0 0 1 0 2H5.5Zm0 2.5v2.5h3.75a1.25 1.25 0 1 0 0-2.5H5.5Z",
|
|
18
18
|
"clip-rule": "evenodd"
|
|
@@ -20,14 +20,14 @@ function q(n, c) {
|
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
22
|
function F(n, c) {
|
|
23
|
-
return
|
|
23
|
+
return s(), r("svg", {
|
|
24
24
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25
25
|
viewBox: "0 0 16 16",
|
|
26
26
|
fill: "currentColor",
|
|
27
27
|
"aria-hidden": "true",
|
|
28
28
|
"data-slot": "icon"
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
o("path", {
|
|
31
31
|
"fill-rule": "evenodd",
|
|
32
32
|
d: "M6.25 2.75A.75.75 0 0 1 7 2h6a.75.75 0 0 1 0 1.5h-2.483l-3.429 9H9A.75.75 0 0 1 9 14H3a.75.75 0 0 1 0-1.5h2.483l3.429-9H7a.75.75 0 0 1-.75-.75Z",
|
|
33
33
|
"clip-rule": "evenodd"
|
|
@@ -35,19 +35,19 @@ function F(n, c) {
|
|
|
35
35
|
]);
|
|
36
36
|
}
|
|
37
37
|
function K(n, c) {
|
|
38
|
-
return
|
|
38
|
+
return s(), r("svg", {
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
40
|
viewBox: "0 0 16 16",
|
|
41
41
|
fill: "currentColor",
|
|
42
42
|
"aria-hidden": "true",
|
|
43
43
|
"data-slot": "icon"
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
o("path", {
|
|
46
46
|
"fill-rule": "evenodd",
|
|
47
47
|
d: "M8.914 6.025a.75.75 0 0 1 1.06 0 3.5 3.5 0 0 1 0 4.95l-2 2a3.5 3.5 0 0 1-5.396-4.402.75.75 0 0 1 1.251.827 2 2 0 0 0 3.085 2.514l2-2a2 2 0 0 0 0-2.828.75.75 0 0 1 0-1.06Z",
|
|
48
48
|
"clip-rule": "evenodd"
|
|
49
49
|
}),
|
|
50
|
-
|
|
50
|
+
o("path", {
|
|
51
51
|
"fill-rule": "evenodd",
|
|
52
52
|
d: "M7.086 9.975a.75.75 0 0 1-1.06 0 3.5 3.5 0 0 1 0-4.95l2-2a3.5 3.5 0 0 1 5.396 4.402.75.75 0 0 1-1.251-.827 2 2 0 0 0-3.085-2.514l-2 2a2 2 0 0 0 0 2.828.75.75 0 0 1 0 1.06Z",
|
|
53
53
|
"clip-rule": "evenodd"
|
|
@@ -55,28 +55,28 @@ function K(n, c) {
|
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
57
|
function P(n, c) {
|
|
58
|
-
return
|
|
58
|
+
return s(), r("svg", {
|
|
59
59
|
xmlns: "http://www.w3.org/2000/svg",
|
|
60
60
|
viewBox: "0 0 16 16",
|
|
61
61
|
fill: "currentColor",
|
|
62
62
|
"aria-hidden": "true",
|
|
63
63
|
"data-slot": "icon"
|
|
64
64
|
}, [
|
|
65
|
-
|
|
65
|
+
o("path", { d: "M3 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM6.25 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 7.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 11.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM4 12.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" })
|
|
66
66
|
]);
|
|
67
67
|
}
|
|
68
68
|
function R(n, c) {
|
|
69
|
-
return
|
|
69
|
+
return s(), r("svg", {
|
|
70
70
|
xmlns: "http://www.w3.org/2000/svg",
|
|
71
71
|
viewBox: "0 0 16 16",
|
|
72
72
|
fill: "currentColor",
|
|
73
73
|
"aria-hidden": "true",
|
|
74
74
|
"data-slot": "icon"
|
|
75
75
|
}, [
|
|
76
|
-
|
|
76
|
+
o("path", { d: "M2.995 1a.625.625 0 1 0 0 1.25h.38v2.125a.625.625 0 1 0 1.25 0v-2.75A.625.625 0 0 0 4 1H2.995ZM3.208 7.385a2.37 2.37 0 0 1 1.027-.124L2.573 8.923a.625.625 0 0 0 .439 1.067l1.987.011a.625.625 0 0 0 .006-1.25l-.49-.003.777-.776c.215-.215.335-.506.335-.809 0-.465-.297-.957-.842-1.078a3.636 3.636 0 0 0-1.993.121.625.625 0 1 0 .416 1.179ZM2.625 11a.625.625 0 1 0 0 1.25H4.25a.125.125 0 0 1 0 .25H3.5a.625.625 0 1 0 0 1.25h.75a.125.125 0 0 1 0 .25H2.625a.625.625 0 1 0 0 1.25H4.25a1.375 1.375 0 0 0 1.153-2.125A1.375 1.375 0 0 0 4.25 11H2.625ZM7.25 2a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM7.25 7.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM6.5 13.25a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Z" })
|
|
77
77
|
]);
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const G = { class: "rvc-rich-text-toolbar" }, J = ["disabled", "aria-label", "onClick"], le = /* @__PURE__ */ $({
|
|
80
80
|
inheritAttrs: !1,
|
|
81
81
|
__name: "RichTextEditor",
|
|
82
82
|
props: {
|
|
@@ -90,16 +90,20 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
90
90
|
},
|
|
91
91
|
emits: ["update:modelValue", "tiptap:onCreate"],
|
|
92
92
|
setup(n, { emit: c }) {
|
|
93
|
-
const a = n, b = c,
|
|
93
|
+
const a = n, b = c, g = h(!1), u = h(!1), d = h(""), m = B(), k = m.class ? `${m.class} ` : "", V = Object.fromEntries(
|
|
94
|
+
Object.entries(m).filter(
|
|
95
|
+
(l) => l[0] !== "class" && typeof l[1] == "string"
|
|
96
|
+
)
|
|
97
|
+
), Z = j.configure({
|
|
94
98
|
link: {
|
|
95
99
|
openOnClick: !1
|
|
96
100
|
}
|
|
97
101
|
}), e = N({
|
|
98
|
-
extensions: [
|
|
102
|
+
extensions: [Z, ...a.customExtensions],
|
|
99
103
|
content: a.modelValue,
|
|
100
104
|
editorProps: {
|
|
101
105
|
attributes: {
|
|
102
|
-
...
|
|
106
|
+
...V,
|
|
103
107
|
id: a.id,
|
|
104
108
|
class: `${k}rvc-textarea rvc-rich-text-textarea`
|
|
105
109
|
}
|
|
@@ -112,9 +116,9 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
112
116
|
b("update:modelValue", i);
|
|
113
117
|
},
|
|
114
118
|
onSelectionUpdate({ editor: l }) {
|
|
115
|
-
|
|
119
|
+
g.value = !l.view.state.selection.empty;
|
|
116
120
|
}
|
|
117
|
-
}),
|
|
121
|
+
}), H = x(() => [
|
|
118
122
|
{
|
|
119
123
|
name: "bold",
|
|
120
124
|
icon: q,
|
|
@@ -152,40 +156,40 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
152
156
|
icon: K,
|
|
153
157
|
title: "Hyperlink",
|
|
154
158
|
isVisible: a.config === "default",
|
|
155
|
-
disabled: !
|
|
159
|
+
disabled: !g.value && !(e.value?.isActive("link") ?? !1),
|
|
156
160
|
isActive: () => e.value?.isActive("link") ?? !1,
|
|
157
161
|
action: () => {
|
|
158
162
|
d.value = e.value?.getAttributes("link").href || "", u.value = !0;
|
|
159
163
|
}
|
|
160
164
|
}
|
|
161
|
-
]),
|
|
162
|
-
const l =
|
|
163
|
-
let
|
|
164
|
-
return typeof t.disabled == "function" ?
|
|
165
|
+
]), w = x(() => {
|
|
166
|
+
const l = H.value.filter((t) => a.config === "default" || ["bold", "italic"].includes(t.name)), i = a.customCommands.map((t) => {
|
|
167
|
+
let p = !1;
|
|
168
|
+
return typeof t.disabled == "function" ? p = e.value ? t.disabled(e.value) : !1 : p = t.disabled ?? !1, {
|
|
165
169
|
...t,
|
|
166
170
|
isVisible: t.isVisible ?? !0,
|
|
167
|
-
disabled:
|
|
171
|
+
disabled: p,
|
|
168
172
|
isActive: () => t.isActive && e.value ? t.isActive(e.value) : !1,
|
|
169
173
|
action: () => e.value && t.action(e.value)
|
|
170
174
|
};
|
|
171
175
|
});
|
|
172
176
|
return [...l, ...i];
|
|
173
177
|
});
|
|
174
|
-
|
|
178
|
+
y(() => a.modelValue, (l) => {
|
|
175
179
|
if (!e.value) return;
|
|
176
180
|
e.value.getHTML() === l || e.value.commands.setContent(l, { emitUpdate: !1 });
|
|
177
181
|
});
|
|
178
|
-
const
|
|
182
|
+
const L = () => {
|
|
179
183
|
e.value && (e.value.commands.setLink({ href: d.value }), u.value = !1, d.value = "");
|
|
180
184
|
};
|
|
181
|
-
return (l, i) => (
|
|
185
|
+
return (l, i) => (s(), r(C, null, [
|
|
182
186
|
v(I, {
|
|
183
187
|
id: `${a.id}-modal-add-hyperlink`,
|
|
184
188
|
title: "Add Hyperlink",
|
|
185
189
|
as: "form",
|
|
186
190
|
show: u.value,
|
|
187
191
|
"onModal:close": i[1] || (i[1] = (t) => u.value = !1),
|
|
188
|
-
"onModal:save":
|
|
192
|
+
"onModal:save": L
|
|
189
193
|
}, {
|
|
190
194
|
default: A(() => [
|
|
191
195
|
v(D, {
|
|
@@ -199,16 +203,16 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
199
203
|
_: 1
|
|
200
204
|
}, 8, ["id", "show"]),
|
|
201
205
|
_(l.$slots, "default"),
|
|
202
|
-
|
|
206
|
+
o("div", {
|
|
203
207
|
class: M(["rvc-rich-text", n.rootClass, { "rvc-rich-text-disabled": n.disabled }])
|
|
204
208
|
}, [
|
|
205
209
|
f(e) ? _(l.$slots, "toolbar", {
|
|
206
210
|
key: 0,
|
|
207
|
-
commands:
|
|
211
|
+
commands: w.value,
|
|
208
212
|
tiptap: f(e)
|
|
209
213
|
}, () => [
|
|
210
|
-
|
|
211
|
-
(
|
|
214
|
+
o("ul", G, [
|
|
215
|
+
(s(!0), r(C, null, E(w.value.filter((t) => t.isVisible), (t) => (s(), r("li", {
|
|
212
216
|
key: `toolbar-item-command-${t.name}`
|
|
213
217
|
}, [
|
|
214
218
|
v(z, {
|
|
@@ -218,26 +222,26 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
218
222
|
class: "rvc-rich-text-tooltip"
|
|
219
223
|
}, {
|
|
220
224
|
default: A(() => [
|
|
221
|
-
|
|
225
|
+
o("button", {
|
|
222
226
|
disabled: t.disabled,
|
|
223
227
|
type: "button",
|
|
224
228
|
"aria-label": t.title,
|
|
225
229
|
class: M([{ "rvc-rich-text-button-active": t.isActive() }, "rvc-rich-text-button"]),
|
|
226
230
|
onClick: t.action
|
|
227
231
|
}, [
|
|
228
|
-
(
|
|
229
|
-
], 10,
|
|
232
|
+
(s(), S(O(t.icon)))
|
|
233
|
+
], 10, J)
|
|
230
234
|
]),
|
|
231
235
|
_: 2
|
|
232
236
|
}, 1032, ["content"])
|
|
233
237
|
]))), 128))
|
|
234
238
|
])
|
|
235
239
|
]) : U("", !0),
|
|
236
|
-
v(f(
|
|
240
|
+
v(f(T), { editor: f(e) }, null, 8, ["editor"])
|
|
237
241
|
], 2)
|
|
238
242
|
], 64));
|
|
239
243
|
}
|
|
240
244
|
});
|
|
241
245
|
export {
|
|
242
|
-
|
|
246
|
+
le as _
|
|
243
247
|
};
|
package/dist/core/badge.css
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
--rvc-badge-padding-y: calc(var(--spacing) * 1.5);
|
|
6
6
|
--rvc-badge-font-weight: var(--font-weight-medium);
|
|
7
7
|
--rvc-badge-border-radius: calc(infinity * 1px);
|
|
8
|
+
--rvc-badge-border-width: 0;
|
|
9
|
+
--rvc-badge-border-style: solid;
|
|
10
|
+
--rvc-badge-border-color: transparent;
|
|
8
11
|
--rvc-badge-font-size: var(--text-base);
|
|
9
12
|
--rvc-badge-gap: calc(var(--spacing) * 1);
|
|
10
13
|
|
|
@@ -61,6 +64,7 @@
|
|
|
61
64
|
height: var(--rvc-badge-height);
|
|
62
65
|
padding-block: var(--rvc-badge-padding-y);
|
|
63
66
|
padding-inline: var(--rvc-badge-padding-x);
|
|
67
|
+
border: var(--rvc-badge-border-width) var(--rvc-badge-border-style) var(--rvc-badge-border-color);
|
|
64
68
|
border-radius: var(--rvc-badge-border-radius);
|
|
65
69
|
background-color: var(--rvc-badge-bg-color);
|
|
66
70
|
color: var(--rvc-badge-color);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--rvc-empty-state-border-radius: var(--rvc-base-border-radius);
|
|
3
|
+
--rvc-empty-state-border-width: 0;
|
|
4
|
+
--rvc-empty-state-border-style: solid;
|
|
5
|
+
--rvc-empty-state-border-color: transparent;
|
|
3
6
|
--rvc-empty-state-color: var(--color-slate-700);
|
|
4
7
|
--rvc-empty-state-bg-color: var(--color-slate-50);
|
|
5
8
|
--rvc-empty-state-padding-x: calc(var(--spacing) * 12);
|
|
@@ -15,6 +18,7 @@
|
|
|
15
18
|
|
|
16
19
|
@layer components {
|
|
17
20
|
.rvc-empty-state {
|
|
21
|
+
border: var(--rvc-empty-state-border-width) var(--rvc-empty-state-border-style) var(--rvc-empty-state-border-color);
|
|
18
22
|
color: var(--rvc-empty-state-color);
|
|
19
23
|
font-size: var(--rvc-empty-state-font-size);
|
|
20
24
|
|
package/dist/core/pagination.css
CHANGED
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
--rvc-pagination-color: var(--color-slate-600);
|
|
10
10
|
--rvc-pagination-color-active: var(--color-slate-800);
|
|
11
11
|
--rvc-pagination-bg-color: transparent;
|
|
12
|
+
--rvc-pagination-bg-color-active: var(--rvc-pagination-bg-color);
|
|
12
13
|
--rvc-pagination-bg-color-hover: var(--color-slate-100);
|
|
13
14
|
--rvc-pagination-border-color: transparent;
|
|
15
|
+
--rvc-pagination-nav-gap-md: calc(var(--spacing) * 0.5);
|
|
16
|
+
--rvc-pagination-nav-gap-xl: calc(var(--spacing) * 1);
|
|
14
17
|
--rvc-pagination-info-color: var(--color-slate-400);
|
|
15
18
|
--rvc-pagination-info-font-size: var(--text-sm);
|
|
19
|
+
--rvc-pagination-icon-color: var(--color-slate-800);
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
@layer components {
|
|
@@ -46,11 +50,12 @@
|
|
|
46
50
|
text-align: center;
|
|
47
51
|
|
|
48
52
|
&.rvc-pagination-button-active {
|
|
53
|
+
background-color: var(--rvc-pagination-bg-color-active);
|
|
49
54
|
color: var(--rvc-pagination-color-active);
|
|
50
55
|
font-weight: var(--rvc-pagination-font-weight-active);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
&:not([disabled]):hover {
|
|
58
|
+
&:not(.rvc-pagination-button-active, [disabled]):hover {
|
|
54
59
|
background-color: var(--rvc-pagination-bg-color-hover);
|
|
55
60
|
}
|
|
56
61
|
}
|
|
@@ -72,11 +77,11 @@
|
|
|
72
77
|
justify-content: flex-end;
|
|
73
78
|
|
|
74
79
|
@media (width >= theme(--breakpoint-md)) {
|
|
75
|
-
gap:
|
|
80
|
+
gap: var(--rvc-pagination-nav-gap-md);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
@media (width >= theme(--breakpoint-xl)) {
|
|
79
|
-
gap:
|
|
84
|
+
gap: var(--rvc-pagination-nav-gap-xl);
|
|
80
85
|
}
|
|
81
86
|
}
|
|
82
87
|
|
|
@@ -99,7 +104,7 @@
|
|
|
99
104
|
.rvc-pagination-button-icon {
|
|
100
105
|
width: calc(var(--spacing) * 5);
|
|
101
106
|
height: calc(var(--spacing) * 5);
|
|
102
|
-
color: var(--
|
|
107
|
+
color: var(--rvc-pagination-icon-color);
|
|
103
108
|
|
|
104
109
|
&.rvc-pagination-button-icon-disabled {
|
|
105
110
|
opacity: 0.5;
|
package/dist/core/table.css
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
--rvc-table-white-space: nowrap;
|
|
17
17
|
--rvc-table-line-height: 1.1;
|
|
18
18
|
--rvc-table-spinner-size: calc(var(--spacing) * 5);
|
|
19
|
+
--rvc-table-striped-cell-border-color: transparent;
|
|
20
|
+
--rvc-table-striped-cell-border-style: solid;
|
|
21
|
+
--rvc-table-striped-cell-border-width: 0;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
@layer components {
|
|
@@ -40,6 +43,11 @@
|
|
|
40
43
|
|
|
41
44
|
td {
|
|
42
45
|
padding-inline: var(--rvc-table-padding-x);
|
|
46
|
+
border-bottom: var(--rvc-table-striped-cell-border-width) var(--rvc-table-striped-cell-border-style) var(--rvc-table-striped-cell-border-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
tr:hover td {
|
|
50
|
+
background-color: var(--rvc-table-striped-row-bg-color-hover);
|
|
43
51
|
}
|
|
44
52
|
}
|
|
45
53
|
|
package/dist/core/tabs.css
CHANGED
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
--rvc-tabs-tab-active-border-color: var(--color-indigo-600);
|
|
17
17
|
--rvc-tabs-tab-button-height: calc(var(--spacing) * 9);
|
|
18
18
|
--rvc-tabs-tab-button-padding-x: calc(var(--spacing) * 3);
|
|
19
|
+
--rvc-tabs-tab-button-border-width: 0;
|
|
20
|
+
--rvc-tabs-tab-button-border-style: solid;
|
|
21
|
+
--rvc-tabs-tab-button-border-color: transparent;
|
|
22
|
+
--rvc-tabs-tab-button-border-color-active: var(--rvc-tabs-tab-button-border-color);
|
|
19
23
|
--rvc-tabs-tab-active-button-bg-color: var(--color-indigo-100);
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -43,10 +47,12 @@
|
|
|
43
47
|
height: var(--rvc-tabs-tab-button-height);
|
|
44
48
|
padding-bottom: 0;
|
|
45
49
|
padding-inline: var(--rvc-tabs-tab-button-padding-x);
|
|
50
|
+
border: var(--rvc-tabs-tab-button-border-width) var(--rvc-tabs-tab-button-border-style) var(--rvc-tabs-tab-button-border-color);
|
|
46
51
|
border-bottom: 0;
|
|
47
52
|
border-radius: var(--rvc-tabs-tab-button-border-radius);
|
|
48
53
|
|
|
49
54
|
&.rvc-tab-active {
|
|
55
|
+
border-color: var(--rvc-tabs-tab-button-border-color-active);
|
|
50
56
|
background-color: var(--rvc-tabs-tab-active-button-bg-color);
|
|
51
57
|
}
|
|
52
58
|
}
|
package/dist/dialogs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as f } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as a } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-DjP68vua.js";
|
|
2
|
+
import { _ as f } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-MN3D46CX.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Drawer,
|
|
5
5
|
f as Modal
|
package/dist/dialogs.d.ts
CHANGED
|
@@ -16,13 +16,13 @@ declare const __VLS_component: DefineComponent<DrawerProps, {}, {}, {}, {}, Comp
|
|
|
16
16
|
"drawer:open": () => any;
|
|
17
17
|
"drawer:opened": () => any;
|
|
18
18
|
"drawer:close": () => any;
|
|
19
|
-
"drawer:save": (event
|
|
19
|
+
"drawer:save": (event?: Event | undefined) => any;
|
|
20
20
|
"drawer:closed": () => any;
|
|
21
21
|
}, string, PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
22
22
|
"onDrawer:open"?: (() => any) | undefined;
|
|
23
23
|
"onDrawer:opened"?: (() => any) | undefined;
|
|
24
24
|
"onDrawer:close"?: (() => any) | undefined;
|
|
25
|
-
"onDrawer:save"?: ((event
|
|
25
|
+
"onDrawer:save"?: ((event?: Event | undefined) => any) | undefined;
|
|
26
26
|
"onDrawer:closed"?: (() => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
as: string;
|
|
@@ -67,6 +67,42 @@ contentRef: HTMLDivElement;
|
|
|
67
67
|
declare function __VLS_template(): {
|
|
68
68
|
attrs: Partial<{}>;
|
|
69
69
|
slots: {
|
|
70
|
+
panel?(_: {
|
|
71
|
+
title: string;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
isForm: boolean;
|
|
74
|
+
titleId: string;
|
|
75
|
+
descriptionId: string;
|
|
76
|
+
contentRef: HTMLElement | null;
|
|
77
|
+
dialogTitle: DefineComponent< {
|
|
78
|
+
as: {
|
|
79
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
id: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: null;
|
|
85
|
+
};
|
|
86
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
91
|
+
as: {
|
|
92
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
id: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
}>>, {
|
|
100
|
+
id: string;
|
|
101
|
+
as: string | Record<string, any>;
|
|
102
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
emitClose: () => void;
|
|
104
|
+
emitSave: (event?: undefined) => void;
|
|
105
|
+
}): any;
|
|
70
106
|
header?(_: {
|
|
71
107
|
title: string;
|
|
72
108
|
showClose: boolean;
|
|
@@ -123,8 +159,45 @@ declare function __VLS_template(): {
|
|
|
123
159
|
declare function __VLS_template_2(): {
|
|
124
160
|
attrs: Partial<{}>;
|
|
125
161
|
slots: {
|
|
162
|
+
panel?(_: {
|
|
163
|
+
title: string;
|
|
164
|
+
loading: boolean;
|
|
165
|
+
isForm: boolean;
|
|
166
|
+
titleId: string;
|
|
167
|
+
descriptionId: string;
|
|
168
|
+
contentRef: HTMLElement | null;
|
|
169
|
+
dialogTitle: DefineComponent< {
|
|
170
|
+
as: {
|
|
171
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
id: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
default: null;
|
|
177
|
+
};
|
|
178
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
183
|
+
as: {
|
|
184
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
id: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: null;
|
|
190
|
+
};
|
|
191
|
+
}>>, {
|
|
192
|
+
id: string;
|
|
193
|
+
as: string | Record<string, any>;
|
|
194
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
195
|
+
emitClose: () => void;
|
|
196
|
+
emitSave: (event?: undefined) => void;
|
|
197
|
+
}): any;
|
|
126
198
|
header?(_: {
|
|
127
199
|
title: string;
|
|
200
|
+
showClose: boolean;
|
|
128
201
|
}): any;
|
|
129
202
|
header?(_: {}): any;
|
|
130
203
|
title?(_: {
|
package/dist/index/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { _ as d } from "../_shared/ChevronDownIcon-BYWciGnh.js";
|
|
|
3
3
|
import { _ as n } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
|
|
4
4
|
import { _ as h } from "../_shared/FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js";
|
|
5
5
|
import { _ as g } from "../_shared/Combobox.vue_vue_type_script_setup_true_lang-BwTRzqr6.js";
|
|
6
|
-
import { _ as B } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as F } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as B } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-DjP68vua.js";
|
|
7
|
+
import { _ as F } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-MN3D46CX.js";
|
|
8
8
|
import { _ as A } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-L_lQEUBC.js";
|
|
9
9
|
import { _ as E } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-hiuDVfo5.js";
|
|
10
|
-
import { _ as S } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as S } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-t14vKtCW.js";
|
|
11
11
|
import { _ as y } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-DS6keeu7.js";
|
|
12
12
|
import { _ as L } from "../_shared/Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js";
|
|
13
13
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -89,13 +89,13 @@ declare const __VLS_component_13: DefineComponent<DrawerProps, {}, {}, {}, {}, C
|
|
|
89
89
|
"drawer:open": () => any;
|
|
90
90
|
"drawer:opened": () => any;
|
|
91
91
|
"drawer:close": () => any;
|
|
92
|
-
"drawer:save": (event
|
|
92
|
+
"drawer:save": (event?: Event | undefined) => any;
|
|
93
93
|
"drawer:closed": () => any;
|
|
94
94
|
}, string, PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
95
95
|
"onDrawer:open"?: (() => any) | undefined;
|
|
96
96
|
"onDrawer:opened"?: (() => any) | undefined;
|
|
97
97
|
"onDrawer:close"?: (() => any) | undefined;
|
|
98
|
-
"onDrawer:save"?: ((event
|
|
98
|
+
"onDrawer:save"?: ((event?: Event | undefined) => any) | undefined;
|
|
99
99
|
"onDrawer:closed"?: (() => any) | undefined;
|
|
100
100
|
}>, {
|
|
101
101
|
as: string;
|
|
@@ -399,6 +399,42 @@ declare function __VLS_template_12(): {
|
|
|
399
399
|
declare function __VLS_template_13(): {
|
|
400
400
|
attrs: Partial<{}>;
|
|
401
401
|
slots: {
|
|
402
|
+
panel?(_: {
|
|
403
|
+
title: string;
|
|
404
|
+
loading: boolean;
|
|
405
|
+
isForm: boolean;
|
|
406
|
+
titleId: string;
|
|
407
|
+
descriptionId: string;
|
|
408
|
+
contentRef: HTMLElement | null;
|
|
409
|
+
dialogTitle: DefineComponent< {
|
|
410
|
+
as: {
|
|
411
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
412
|
+
default: string;
|
|
413
|
+
};
|
|
414
|
+
id: {
|
|
415
|
+
type: StringConstructor;
|
|
416
|
+
default: null;
|
|
417
|
+
};
|
|
418
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
419
|
+
[key: string]: any;
|
|
420
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
421
|
+
[key: string]: any;
|
|
422
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
423
|
+
as: {
|
|
424
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
425
|
+
default: string;
|
|
426
|
+
};
|
|
427
|
+
id: {
|
|
428
|
+
type: StringConstructor;
|
|
429
|
+
default: null;
|
|
430
|
+
};
|
|
431
|
+
}>>, {
|
|
432
|
+
id: string;
|
|
433
|
+
as: string | Record<string, any>;
|
|
434
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
435
|
+
emitClose: () => void;
|
|
436
|
+
emitSave: (event?: undefined) => void;
|
|
437
|
+
}): any;
|
|
402
438
|
header?(_: {
|
|
403
439
|
title: string;
|
|
404
440
|
showClose: boolean;
|
|
@@ -455,8 +491,45 @@ declare function __VLS_template_13(): {
|
|
|
455
491
|
declare function __VLS_template_14(): {
|
|
456
492
|
attrs: Partial<{}>;
|
|
457
493
|
slots: {
|
|
494
|
+
panel?(_: {
|
|
495
|
+
title: string;
|
|
496
|
+
loading: boolean;
|
|
497
|
+
isForm: boolean;
|
|
498
|
+
titleId: string;
|
|
499
|
+
descriptionId: string;
|
|
500
|
+
contentRef: HTMLElement | null;
|
|
501
|
+
dialogTitle: DefineComponent< {
|
|
502
|
+
as: {
|
|
503
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
504
|
+
default: string;
|
|
505
|
+
};
|
|
506
|
+
id: {
|
|
507
|
+
type: StringConstructor;
|
|
508
|
+
default: null;
|
|
509
|
+
};
|
|
510
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
511
|
+
[key: string]: any;
|
|
512
|
+
}> | VNode<RendererNode, RendererElement, {
|
|
513
|
+
[key: string]: any;
|
|
514
|
+
}>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
515
|
+
as: {
|
|
516
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
517
|
+
default: string;
|
|
518
|
+
};
|
|
519
|
+
id: {
|
|
520
|
+
type: StringConstructor;
|
|
521
|
+
default: null;
|
|
522
|
+
};
|
|
523
|
+
}>>, {
|
|
524
|
+
id: string;
|
|
525
|
+
as: string | Record<string, any>;
|
|
526
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
527
|
+
emitClose: () => void;
|
|
528
|
+
emitSave: (event?: undefined) => void;
|
|
529
|
+
}): any;
|
|
458
530
|
header?(_: {
|
|
459
531
|
title: string;
|
|
532
|
+
showClose: boolean;
|
|
460
533
|
}): any;
|
|
461
534
|
header?(_: {}): any;
|
|
462
535
|
title?(_: {
|