@robuust-digital/vue-components 2.4.0-beta.1 → 2.4.0-beta.11

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +15 -0
  3. 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
  4. package/dist/_shared/{ChevronDownIcon-CcE_K1lg.js → ChevronDownIcon-BYWciGnh.js} +1 -1
  5. 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
  6. 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
  7. 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
  8. 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
  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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. package/dist/_shared/{XMarkIcon-90mcPzBs.js → XMarkIcon-CPr_Rd8y.js} +2 -2
  16. package/dist/_shared/{icon-spinner-CP0VP_YM.js → icon-spinner-BYCMrTdL.js} +2 -2
  17. package/dist/combobox/index.js +1 -1
  18. package/dist/core/index.js +4 -4
  19. package/dist/core.d.ts +8 -0
  20. package/dist/dialogs/index.js +2 -2
  21. package/dist/dropdown/index.js +1 -1
  22. package/dist/index/index.js +12 -12
  23. package/dist/index.d.ts +8 -0
  24. package/dist/lightswitch/index.js +1 -1
  25. package/dist/rich-text-editor/index.js +1 -1
  26. package/dist/toast/index.js +1 -1
  27. package/dist/tooltip/index.js +1 -1
  28. 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, createBlock as a, openBlock as l, resolveDynamicComponent as c, mergeProps as d, withCtx as f, createElementBlock as y, renderSlot as t, createCommentVNode as i, createTextVNode as u, toDisplayString as s, unref as m } from "vue";
2
- import { S as v } from "./icon-spinner-CP0VP_YM.js";
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, createBlock as r, openBlock as l, 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";
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 { createElementBlock as c, openBlock as n, createElementVNode as i, defineComponent as j, ref as h, computed as D, createBlock as x, unref as r, mergeProps as F, withCtx as g, createCommentVNode as p, renderSlot as m, createVNode as b, resolveDynamicComponent as O, withModifiers as P, Fragment as q, renderList as z, createTextVNode as U, toDisplayString as w, normalizeClass as G } from "vue";
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-CcE_K1lg.js";
5
- import { S as te } from "./icon-spinner-CP0VP_YM.js";
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, createBlock as m, openBlock as c, unref as t, withCtx as d, createVNode as s, withModifiers as L, createElementVNode as a, normalizeClass as w, createElementBlock as b, renderSlot as i, createCommentVNode as y, createTextVNode as T, toDisplayString as F } from "vue";
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-BLm8QzEC.js";
4
- import { u as A } from "./Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js";
5
- import { r as g } from "./XMarkIcon-90mcPzBs.js";
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 { createElementBlock as p, openBlock as r, 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";
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-BLm8QzEC.js";
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, createElementBlock as o, openBlock as n, normalizeClass as C, createCommentVNode as a, renderSlot as s, unref as i, createBlock as p, resolveDynamicComponent as f, normalizeProps as V, guardReactiveProps as b, withDirectives as z, mergeProps as m, vModelDynamic as F } from "vue";
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
- i(r).prefix || i(r).prefixIcon || e.prefixIcon ? (n(), o("span", O, [
35
- s(t.$slots, "prefix", {}, () => [
36
- s(t.$slots, "prefixIcon", { icon: e.prefixIcon }, () => [
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
- s(t.$slots, "input", V(b(t.$attrs)), () => [
45
- i(k) ? z((n(), o("input", m({ key: 0 }, t.$attrs, {
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
- i(r).suffix || i(r).icon || e.icon ? (n(), o("span", D, [
59
- s(t.$slots, "suffix", {}, () => [
60
- s(t.$slots, "icon", { icon: e.icon }, () => [
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, createBlock as s, openBlock as r, unref as o, withCtx as a, createVNode as f, createCommentVNode as h, mergeProps as g, createElementVNode as V, renderSlot as w } from "vue";
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) => (r(), s(o(v), {
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), g({
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
- V("span", { class: "rvc-lightswitch-toggle" }, null, -1)
26
+ g("span", { class: "rvc-lightswitch-toggle" }, null, -1)
27
27
  ])]),
28
28
  _: 1
29
29
  }, 16, ["modelValue", "class"]),
30
- e.$slots.default ? (r(), s(o(b), { key: 0 }, {
30
+ e.$slots.default ? (s(), r(o(b), { key: 0 }, {
31
31
  default: a(() => [
32
- w(e.$slots, "default")
32
+ V(e.$slots, "default")
33
33
  ]),
34
34
  _: 3
35
- })) : h("", !0)
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, createBlock as L, openBlock as p, unref as o, withCtx as d, createVNode as n, withModifiers as T, createElementVNode as r, normalizeClass as I, createElementBlock as $, renderSlot as s, createCommentVNode as N, createTextVNode as R, toDisplayString as S } from "vue";
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-BLm8QzEC.js";
4
- import { r as w } from "./XMarkIcon-90mcPzBs.js";
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(S(t.title), 1)
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
- ]) : N("", !0)
135
+ ]) : S("", !0)
136
136
  ])
137
137
  ])
138
138
  ])),
@@ -1,9 +1,9 @@
1
- import { createElementBlock as r, openBlock as o, createElementVNode as s, defineComponent as L, ref as p, useAttrs as $, computed as x, watch as B, Fragment as C, createVNode as v, renderSlot as A, withCtx as _, normalizeClass as M, createCommentVNode as y, unref as f, renderList as E, createBlock as S, resolveDynamicComponent as U } from "vue";
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-CKp1wzE2.js";
5
- import { _ as D } from "./FormInput.vue_vue_type_script_setup_true_lang-C_1WSzbH.js";
6
- import { _ as I } from "./Modal.vue_vue_type_script_setup_true_lang-2AljJgxw.js";
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
- A(l.$slots, "default"),
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) ? A(l.$slots, "toolbar", {
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, E(g.value.filter((t) => t.isVisible), (t) => (o(), r("li", {
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(U(t.icon)))
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
- ]) : y("", !0),
235
+ ]) : U("", !0),
236
236
  v(f(O), { editor: f(e) }, null, 8, ["editor"])
237
237
  ], 2)
238
238
  ], 64));