@robuust-digital/vue-components 2.3.2 → 2.3.4
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 +14 -0
- package/README.md +15 -0
- package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-BLm8QzEC.js → ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js} +2 -2
- package/dist/_shared/{ChevronDownIcon-CcE_K1lg.js → ChevronDownIcon-BYWciGnh.js} +1 -1
- package/dist/_shared/{Combobox.vue_vue_type_script_setup_true_lang-CxRv55TC.js → Combobox.vue_vue_type_script_setup_true_lang-BwTRzqr6.js} +3 -3
- package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-XMND_Yzl.js → Drawer.vue_vue_type_script_setup_true_lang-CZMVooMV.js} +4 -4
- package/dist/_shared/{Dropdown.vue_vue_type_script_setup_true_lang-BtkiBqxy.js → Dropdown.vue_vue_type_script_setup_true_lang-L_lQEUBC.js} +2 -2
- package/dist/_shared/{FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js → FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js} +9 -9
- package/dist/_shared/{Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js → Lightswitch.vue_vue_type_script_setup_true_lang-hiuDVfo5.js} +7 -7
- package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js → Modal.vue_vue_type_script_setup_true_lang-CB0Gez7v.js} +5 -5
- package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-BLs_S_-D.js → RichTextEditor.vue_vue_type_script_setup_true_lang-DaCv0Gii.js} +11 -11
- package/dist/_shared/{Tabs.vue_vue_type_script_setup_true_lang-DMUJ5Emt.js → Tabs.vue_vue_type_script_setup_true_lang-DdRAwz_B.js} +220 -212
- package/dist/_shared/{Toast.vue_vue_type_script_setup_true_lang-BfMkJm5T.js → Toast.vue_vue_type_script_setup_true_lang-DS6keeu7.js} +2 -2
- package/dist/_shared/{Tooltip.vue_vue_type_script_setup_true_lang-CKp1wzE2.js → Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js} +3 -3
- package/dist/_shared/{XMarkIcon-90mcPzBs.js → XMarkIcon-CPr_Rd8y.js} +2 -2
- package/dist/_shared/{icon-spinner-CP0VP_YM.js → icon-spinner-BYCMrTdL.js} +2 -2
- package/dist/combobox/index.js +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core.d.ts +8 -0
- package/dist/dialogs/index.js +2 -2
- package/dist/dropdown/index.js +1 -1
- package/dist/index/index.js +12 -12
- package/dist/index.d.ts +8 -0
- package/dist/lightswitch/index.js +1 -1
- 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 +37 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 2.3.4 (25-03-2026)
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
* `DataTable`: Forward built-in pagination props (`perPage`, `perPageLabel`, `perPageOptions`, `fromLabel`) to the `Pagination` component
|
|
6
|
+
* `Pagination`: Keep the per-page select in sync when `perPage` is updated externally
|
|
7
|
+
|
|
8
|
+
## 2.3.3 (23-01-2026)
|
|
9
|
+
|
|
10
|
+
### Updated
|
|
11
|
+
|
|
12
|
+
* Update dependencies
|
|
13
|
+
* Added Vue as a peer dependency
|
|
14
|
+
|
|
1
15
|
## 2.3.2 (16-12-2025)
|
|
2
16
|
|
|
3
17
|
### Fixed
|
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ A modern and customizable component library built with **Vue 3** and **Tailwind
|
|
|
16
16
|
- [📚 Table of Contents](#-table-of-contents)
|
|
17
17
|
- [Documentation](#documentation)
|
|
18
18
|
- [Three-shaking](#three-shaking)
|
|
19
|
+
- [MCP Server](#mcp-server)
|
|
19
20
|
- [Getting Started](#getting-started)
|
|
20
21
|
|
|
21
22
|
## Documentation
|
|
@@ -35,6 +36,20 @@ This library is built with Vue 3 and Tailwind 4 CSS, and is designed to be tree-
|
|
|
35
36
|
- [`@robuust-digital/vue-components/rich-text-editor`](./src/rich-text-editor) - `RichTextEditor` component
|
|
36
37
|
- [`@robuust-digital/vue-components/tooltip`](./src/tooltip) - `Tooltip` component with `@floating-ui/vue`
|
|
37
38
|
|
|
39
|
+
## MCP Server
|
|
40
|
+
|
|
41
|
+
This repository includes an MCP server that exposes component docs and CSS variables for AI agents.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Generate a JSON snapshot (optional, useful for CI checks)
|
|
45
|
+
yarn mcp:build-catalog
|
|
46
|
+
|
|
47
|
+
# Start the MCP server over stdio
|
|
48
|
+
yarn mcp:serve
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
See [`mcp/README.md`](./mcp/README.md) for setup examples in Codex and Claude Desktop.
|
|
52
|
+
|
|
38
53
|
## Getting Started
|
|
39
54
|
|
|
40
55
|
**Clone the repository** and install dependencies:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, watchEffect as r,
|
|
2
|
-
import { S as v } from "./icon-spinner-
|
|
1
|
+
import { defineComponent as b, watchEffect as r, openBlock as l, createBlock as a, resolveDynamicComponent as c, mergeProps as d, withCtx as f, createElementBlock as y, renderSlot as t, createTextVNode as u, toDisplayString as s, createCommentVNode as i, unref as m } from "vue";
|
|
2
|
+
import { S as v } from "./icon-spinner-BYCMrTdL.js";
|
|
3
3
|
const g = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "rvc-button-label"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, openBlock as l, createBlock as r, resolveDynamicComponent as o, normalizeClass as n, withCtx as c, renderSlot as d, createTextVNode as s, toDisplayString as i, createElementBlock as u, createElementVNode as f } from "vue";
|
|
2
2
|
const b = /* @__PURE__ */ t({
|
|
3
3
|
__name: "Badge",
|
|
4
4
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as n, createElementBlock as c, createElementVNode as i, defineComponent as j, ref as h, computed as D, createBlock as x, unref as r, mergeProps as F, withCtx as g, renderSlot as m, resolveDynamicComponent as O, createCommentVNode as p, createVNode as b, withModifiers as P, Fragment as q, renderList as z, createTextVNode as U, toDisplayString as w, normalizeClass as G } from "vue";
|
|
2
2
|
import { useDebounceFn as H } from "@vueuse/core";
|
|
3
3
|
import { Combobox as J, ComboboxInput as Q, ComboboxButton as W, ComboboxOptions as X, ComboboxOption as Y } from "@headlessui/vue";
|
|
4
|
-
import { r as _, _ as ee } from "./ChevronDownIcon-
|
|
5
|
-
import { S as te } from "./icon-spinner-
|
|
4
|
+
import { r as _, _ as ee } from "./ChevronDownIcon-BYWciGnh.js";
|
|
5
|
+
import { S as te } from "./icon-spinner-BYCMrTdL.js";
|
|
6
6
|
function le(e, V) {
|
|
7
7
|
return n(), c("svg", {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as S,
|
|
1
|
+
import { defineComponent as S, openBlock as c, createBlock as m, unref as t, withCtx as d, createVNode as s, withModifiers as L, createElementVNode as a, normalizeClass as w, createElementBlock as b, renderSlot as i, createTextVNode as T, toDisplayString as F, createCommentVNode as y } from "vue";
|
|
2
2
|
import { TransitionRoot as N, Dialog as V, TransitionChild as k, DialogPanel as R, DialogTitle as p } from "@headlessui/vue";
|
|
3
|
-
import { _ as C } from "./ButtonBase.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as A } from "./Modal.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { r as g } from "./XMarkIcon-
|
|
3
|
+
import { _ as C } from "./ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
|
|
4
|
+
import { u as A } from "./Modal.vue_vue_type_script_setup_true_lang-CB0Gez7v.js";
|
|
5
|
+
import { r as g } from "./XMarkIcon-CPr_Rd8y.js";
|
|
6
6
|
const H = {
|
|
7
7
|
class: "rvc-drawer-presentation",
|
|
8
8
|
role: "presentation"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as r, createElementBlock as p, createElementVNode as B, defineComponent as M, createBlock as l, unref as n, normalizeClass as u, withCtx as a, renderSlot as s, createVNode as i, mergeProps as f, Transition as $, Fragment as y, renderList as A, resolveDynamicComponent as m, createCommentVNode as L, createTextVNode as N, toDisplayString as V } from "vue";
|
|
2
2
|
import { Menu as x, MenuButton as v, MenuItems as D, MenuItem as w } from "@headlessui/vue";
|
|
3
|
-
import { _ as I } from "./ButtonBase.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as I } from "./ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
|
|
4
4
|
function Z(t, c) {
|
|
5
5
|
return r(), p("svg", {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as y, getCurrentInstance as I, defineComponent as g, useSlots as x, ref as B,
|
|
1
|
+
import { computed as y, getCurrentInstance as I, defineComponent as g, useSlots as x, ref as B, openBlock as n, createElementBlock as o, normalizeClass as C, unref as s, renderSlot as i, createBlock as p, resolveDynamicComponent as f, createCommentVNode as a, normalizeProps as V, guardReactiveProps as b, withDirectives as z, mergeProps as m, vModelDynamic as F } from "vue";
|
|
2
2
|
const M = () => ({ hasModelBinding: y(() => {
|
|
3
3
|
const l = I();
|
|
4
4
|
return !!(l?.vnode?.props && Object.prototype.hasOwnProperty.call(l.vnode.props, "onUpdate:modelValue"));
|
|
@@ -31,9 +31,9 @@ const M = () => ({ hasModelBinding: y(() => {
|
|
|
31
31
|
e.rootClass
|
|
32
32
|
])
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
s(r).prefix || s(r).prefixIcon || e.prefixIcon ? (n(), o("span", O, [
|
|
35
|
+
i(t.$slots, "prefix", {}, () => [
|
|
36
|
+
i(t.$slots, "prefixIcon", { icon: e.prefixIcon }, () => [
|
|
37
37
|
e.prefixIcon ? (n(), p(f(e.prefixIcon), {
|
|
38
38
|
key: 0,
|
|
39
39
|
"aria-hidden": "true"
|
|
@@ -41,8 +41,8 @@ const M = () => ({ hasModelBinding: y(() => {
|
|
|
41
41
|
])
|
|
42
42
|
])
|
|
43
43
|
])) : a("", !0),
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
i(t.$slots, "input", V(b(t.$attrs)), () => [
|
|
45
|
+
s(k) ? z((n(), o("input", m({ key: 0 }, t.$attrs, {
|
|
46
46
|
ref_key: "input",
|
|
47
47
|
ref: u,
|
|
48
48
|
"onUpdate:modelValue": d[0] || (d[0] = ($) => c.value = $),
|
|
@@ -55,9 +55,9 @@ const M = () => ({ hasModelBinding: y(() => {
|
|
|
55
55
|
type: t.$attrs.type || "text"
|
|
56
56
|
}), null, 16, j))
|
|
57
57
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
s(r).suffix || s(r).icon || e.icon ? (n(), o("span", D, [
|
|
59
|
+
i(t.$slots, "suffix", {}, () => [
|
|
60
|
+
i(t.$slots, "icon", { icon: e.icon }, () => [
|
|
61
61
|
e.icon ? (n(), p(f(e.icon), {
|
|
62
62
|
key: 0,
|
|
63
63
|
"aria-hidden": "true"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as p,
|
|
1
|
+
import { defineComponent as c, computed as p, openBlock as s, createBlock as r, unref as o, withCtx as a, createVNode as f, mergeProps as h, createElementVNode as g, renderSlot as V, createCommentVNode as w } from "vue";
|
|
2
2
|
import { SwitchGroup as v, Switch as S, SwitchLabel as b } from "@headlessui/vue";
|
|
3
3
|
const C = /* @__PURE__ */ c({
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -12,27 +12,27 @@ const C = /* @__PURE__ */ c({
|
|
|
12
12
|
get: () => i.modelValue,
|
|
13
13
|
set: (e) => n("update:modelValue", e)
|
|
14
14
|
});
|
|
15
|
-
return (e, t) => (
|
|
15
|
+
return (e, t) => (s(), r(o(v), {
|
|
16
16
|
as: "div",
|
|
17
17
|
class: "rvc-lightswitch-group"
|
|
18
18
|
}, {
|
|
19
19
|
default: a(() => [
|
|
20
|
-
f(o(S),
|
|
20
|
+
f(o(S), h({
|
|
21
21
|
modelValue: l.value,
|
|
22
22
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => l.value = m),
|
|
23
23
|
class: [{ "rvc-lightswitch-enabled": l.value }, "rvc-lightswitch"]
|
|
24
24
|
}, e.$attrs), {
|
|
25
25
|
default: a(() => [...t[1] || (t[1] = [
|
|
26
|
-
|
|
26
|
+
g("span", { class: "rvc-lightswitch-toggle" }, null, -1)
|
|
27
27
|
])]),
|
|
28
28
|
_: 1
|
|
29
29
|
}, 16, ["modelValue", "class"]),
|
|
30
|
-
e.$slots.default ? (
|
|
30
|
+
e.$slots.default ? (s(), r(o(b), { key: 0 }, {
|
|
31
31
|
default: a(() => [
|
|
32
|
-
|
|
32
|
+
V(e.$slots, "default")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
35
|
-
})) :
|
|
35
|
+
})) : w("", !0)
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as C, computed as f, defineComponent as D,
|
|
1
|
+
import { ref as C, computed as f, defineComponent as D, openBlock as p, createBlock as L, unref as o, withCtx as d, createVNode as n, withModifiers as T, createElementVNode as r, normalizeClass as I, createElementBlock as $, renderSlot as s, createTextVNode as N, toDisplayString as R, createCommentVNode as S } from "vue";
|
|
2
2
|
import { TransitionRoot as V, Dialog as h, TransitionChild as g, DialogPanel as x, DialogTitle as B } from "@headlessui/vue";
|
|
3
|
-
import { _ as E } from "./ButtonBase.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { r as w } from "./XMarkIcon-
|
|
3
|
+
import { _ as E } from "./ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js";
|
|
4
|
+
import { r as w } from "./XMarkIcon-CPr_Rd8y.js";
|
|
5
5
|
function A(t) {
|
|
6
6
|
const c = C(null), u = C(!1), l = f(() => t.as === "form"), b = f(() => `${t.id}-title`), m = f(() => `${t.id}-content`), v = f(() => c.value?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'));
|
|
7
7
|
return {
|
|
@@ -112,7 +112,7 @@ const H = {
|
|
|
112
112
|
class: "rvc-modal-title"
|
|
113
113
|
}, {
|
|
114
114
|
default: d(() => [
|
|
115
|
-
R(
|
|
115
|
+
N(R(t.title), 1)
|
|
116
116
|
]),
|
|
117
117
|
_: 1
|
|
118
118
|
}, 8, ["id"])
|
|
@@ -132,7 +132,7 @@ const H = {
|
|
|
132
132
|
n(o(w), { "aria-hidden": "true" })
|
|
133
133
|
])
|
|
134
134
|
])
|
|
135
|
-
]) :
|
|
135
|
+
]) : S("", !0)
|
|
136
136
|
])
|
|
137
137
|
])
|
|
138
138
|
])),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as o, createElementBlock as r, createElementVNode as s, defineComponent as L, ref as p, useAttrs as $, computed as x, watch as B, Fragment as C, createVNode as v, withCtx as A, renderSlot as _, normalizeClass as M, unref as f, renderList as y, createBlock as E, resolveDynamicComponent as S, createCommentVNode as U } from "vue";
|
|
2
2
|
import { useEditor as N, EditorContent as O } from "@tiptap/vue-3";
|
|
3
3
|
import T from "@tiptap/starter-kit";
|
|
4
|
-
import { _ as z } from "./Tooltip.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as D } from "./FormInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as I } from "./Modal.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as z } from "./Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js";
|
|
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-CB0Gez7v.js";
|
|
7
7
|
function q(n, c) {
|
|
8
8
|
return o(), r("svg", {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -187,7 +187,7 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
187
187
|
"onModal:close": i[1] || (i[1] = (t) => u.value = !1),
|
|
188
188
|
"onModal:save": H
|
|
189
189
|
}, {
|
|
190
|
-
default:
|
|
190
|
+
default: A(() => [
|
|
191
191
|
v(D, {
|
|
192
192
|
modelValue: d.value,
|
|
193
193
|
"onUpdate:modelValue": i[0] || (i[0] = (t) => d.value = t),
|
|
@@ -198,17 +198,17 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
200
|
}, 8, ["id", "show"]),
|
|
201
|
-
|
|
201
|
+
_(l.$slots, "default"),
|
|
202
202
|
s("div", {
|
|
203
203
|
class: M(["rvc-rich-text", n.rootClass, { "rvc-rich-text-disabled": n.disabled }])
|
|
204
204
|
}, [
|
|
205
|
-
f(e) ?
|
|
205
|
+
f(e) ? _(l.$slots, "toolbar", {
|
|
206
206
|
key: 0,
|
|
207
207
|
commands: g.value,
|
|
208
208
|
tiptap: f(e)
|
|
209
209
|
}, () => [
|
|
210
210
|
s("ul", j, [
|
|
211
|
-
(o(!0), r(C, null,
|
|
211
|
+
(o(!0), r(C, null, y(g.value.filter((t) => t.isVisible), (t) => (o(), r("li", {
|
|
212
212
|
key: `toolbar-item-command-${t.name}`
|
|
213
213
|
}, [
|
|
214
214
|
v(z, {
|
|
@@ -217,7 +217,7 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
217
217
|
size: "sm",
|
|
218
218
|
class: "rvc-rich-text-tooltip"
|
|
219
219
|
}, {
|
|
220
|
-
default:
|
|
220
|
+
default: A(() => [
|
|
221
221
|
s("button", {
|
|
222
222
|
disabled: t.disabled,
|
|
223
223
|
type: "button",
|
|
@@ -225,14 +225,14 @@ const j = { class: "rvc-rich-text-toolbar" }, G = ["disabled", "aria-label", "on
|
|
|
225
225
|
class: M([{ "rvc-rich-text-button-active": t.isActive() }, "rvc-rich-text-button"]),
|
|
226
226
|
onClick: t.action
|
|
227
227
|
}, [
|
|
228
|
-
(o(), S(
|
|
228
|
+
(o(), E(S(t.icon)))
|
|
229
229
|
], 10, G)
|
|
230
230
|
]),
|
|
231
231
|
_: 2
|
|
232
232
|
}, 1032, ["content"])
|
|
233
233
|
]))), 128))
|
|
234
234
|
])
|
|
235
|
-
]) :
|
|
235
|
+
]) : U("", !0),
|
|
236
236
|
v(f(O), { editor: f(e) }, null, 8, ["editor"])
|
|
237
237
|
], 2)
|
|
238
238
|
], 64));
|