@robuust-digital/vue-components 2.0.0-rc.7 → 2.0.0-rc.9

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 CHANGED
@@ -1,12 +1,14 @@
1
- ## 2.0.0-rc.7 (27-02-2025)
1
+ ## 2.0.0-rc.9 (15-05-2025)
2
2
 
3
3
  ### Added
4
4
 
5
- * `Radio` and `Checkbox` `modelValue` now allows `Number` type
5
+ * `Radio` and `Checkbox` `modelValue` now allows `Number` and `Object` type
6
6
  * `wrapperClass` prop to `DataTable` component
7
7
  * Introduced `--rvc-table-wrapper-border-radius` variable for `DataTable` component
8
8
  * `Radio`: background color is now customizable with `--rvc-radio-bg-color` CSS variable
9
9
  * `Checkbox`: background color is now customizable with `--rvc-checkbox-input-bg-color` CSS variable
10
+ * `Drawer`: Added `drawer:opened` event that triggers after drawer open transition is finished
11
+ * `Accordion`: Added `index` to `summary` slot
10
12
 
11
13
  ### Changed
12
14
 
@@ -1,25 +1,25 @@
1
- import { ref as g, computed as f, createBlock as B, openBlock as D, unref as t, withCtx as d, createVNode as i, withModifiers as E, createElementVNode as a, normalizeClass as L, renderSlot as c, createCommentVNode as T, createTextVNode as h, toDisplayString as F } from "vue";
2
- import { TransitionRoot as I, Dialog as N, TransitionChild as $, DialogPanel as R, DialogTitle as C } from "@headlessui/vue";
1
+ import { ref as g, computed as f, createBlock as B, openBlock as E, unref as t, withCtx as d, createVNode as r, withModifiers as D, createElementVNode as a, normalizeClass as L, renderSlot as c, createCommentVNode as T, createTextVNode as F, toDisplayString as I } from "vue";
2
+ import { TransitionRoot as N, Dialog as R, TransitionChild as $, DialogPanel as V, DialogTitle as C } from "@headlessui/vue";
3
3
  import { _ as k } from "./ButtonBase-DfkwHIhN.js";
4
4
  import { r as S } from "./XMarkIcon-90mcPzBs.js";
5
- function V(o) {
6
- const v = g(null), r = g(!1), b = f(() => o.as === "form"), p = f(() => `${o.id}-title`), m = f(() => `${o.id}-content`), u = f(() => {
5
+ function q(o) {
6
+ const v = g(null), n = g(!1), b = f(() => o.as === "form"), p = f(() => `${o.id}-title`), m = f(() => `${o.id}-content`), u = f(() => {
7
7
  var s;
8
8
  return (s = v.value) == null ? void 0 : s.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
9
9
  });
10
10
  return {
11
11
  contentRef: v,
12
- ready: r,
12
+ ready: n,
13
13
  isForm: b,
14
14
  titleId: p,
15
15
  descriptionId: m,
16
16
  initialFocusElement: u
17
17
  };
18
18
  }
19
- const q = {
19
+ const h = {
20
20
  role: "presentation",
21
21
  class: "rvc-modal-presentation"
22
- }, M = { class: "rvc-modal-container" }, x = { class: "rvc-modal-header" }, z = { class: "rvc-modal-header-inner" }, A = { class: "rvc-modal-close-wrapper" }, P = ["id"], j = { class: "rvc-modal-footer" }, O = {
22
+ }, A = { class: "rvc-modal-container" }, M = { class: "rvc-modal-header" }, x = { class: "rvc-modal-header-inner" }, z = { class: "rvc-modal-close-wrapper" }, P = ["id"], j = { class: "rvc-modal-footer" }, O = {
23
23
  __name: "Modal",
24
24
  props: {
25
25
  as: {
@@ -53,19 +53,19 @@ const q = {
53
53
  default: "rvc-modal-panel-max-width"
54
54
  }
55
55
  },
56
- emits: ["modal:open", "modal:close", "modal:save", "modal:closed"],
56
+ emits: ["modal:open", "modal:opened", "modal:close", "modal:save", "modal:closed"],
57
57
  setup(o, { emit: v }) {
58
- const r = v, b = o, {
58
+ const n = v, b = o, {
59
59
  contentRef: p,
60
60
  ready: m,
61
61
  isForm: u,
62
62
  titleId: s,
63
63
  descriptionId: y,
64
64
  initialFocusElement: w
65
- } = V(b);
66
- return (l, e) => (D(), B(t(I), { as: "template" }, {
65
+ } = q(b);
66
+ return (i, e) => (E(), B(t(N), { as: "template" }, {
67
67
  default: d(() => [
68
- i(t(N), {
68
+ r(t(R), {
69
69
  as: o.as,
70
70
  class: "rvc-modal",
71
71
  static: "",
@@ -73,11 +73,11 @@ const q = {
73
73
  role: "dialog",
74
74
  "initial-focus": t(w),
75
75
  "aria-labelledby": t(s),
76
- onClose: e[6] || (e[6] = (n) => l.$emit("modal:close")),
77
- onSubmit: e[7] || (e[7] = E((n) => r("modal:save", n), ["prevent"]))
76
+ onClose: e[7] || (e[7] = (l) => i.$emit("modal:close")),
77
+ onSubmit: e[8] || (e[8] = D((l) => n("modal:save", l), ["prevent"]))
78
78
  }, {
79
79
  default: d(() => [
80
- i(t($), {
80
+ r(t($), {
81
81
  as: "template",
82
82
  enter: "rvc-modal-backdrop-transition-enter",
83
83
  "enter-from": "rvc-modal-backdrop-transition-enter-from",
@@ -85,9 +85,10 @@ const q = {
85
85
  leave: "rvc-modal-backdrop-transition-leave",
86
86
  "leave-from": "rvc-modal-backdrop-transition-leave-from",
87
87
  "leave-to": "rvc-modal-backdrop-transition-leave-to",
88
- onBeforeEnter: e[0] || (e[0] = (n) => r("modal:open"))
88
+ onBeforeEnter: e[0] || (e[0] = (l) => n("modal:open")),
89
+ onAfterEnter: e[1] || (e[1] = (l) => n("modal:opened"))
89
90
  }, {
90
- default: d(() => e[8] || (e[8] = [
91
+ default: d(() => e[9] || (e[9] = [
91
92
  a("div", {
92
93
  "aria-hidden": "true",
93
94
  class: "rvc-modal-backdrop"
@@ -95,9 +96,9 @@ const q = {
95
96
  ])),
96
97
  _: 1
97
98
  }),
98
- a("div", q, [
99
- a("div", M, [
100
- i(t($), {
99
+ a("div", h, [
100
+ a("div", A, [
101
+ r(t($), {
101
102
  as: "template",
102
103
  enter: "rvc-modal-transition-enter",
103
104
  "enter-from": "rvc-modal-transition-enter-from",
@@ -105,47 +106,47 @@ const q = {
105
106
  leave: "rvc-modal-transition-leave",
106
107
  "leave-from": "rvc-modal-transition-leave-from",
107
108
  "leave-to": "rvc-modal-transition-leave-to",
108
- onBeforeEnter: e[4] || (e[4] = (n) => m.value = !0),
109
- onAfterLeave: e[5] || (e[5] = (n) => (m.value = !1, r("modal:closed")))
109
+ onBeforeEnter: e[5] || (e[5] = (l) => m.value = !0),
110
+ onAfterLeave: e[6] || (e[6] = (l) => (m.value = !1, n("modal:closed")))
110
111
  }, {
111
112
  default: d(() => [
112
- i(t(R), {
113
+ r(t(V), {
113
114
  class: L(["rvc-modal-panel", o.panelClass]),
114
115
  "aria-busy": o.spinning,
115
116
  "aria-describedby": t(y)
116
117
  }, {
117
118
  default: d(() => [
118
- a("header", x, [
119
- c(l.$slots, "header", { title: o.title }, () => [
120
- a("div", z, [
121
- c(l.$slots, "title", {
119
+ a("header", M, [
120
+ c(i.$slots, "header", { title: o.title }, () => [
121
+ a("div", x, [
122
+ c(i.$slots, "title", {
122
123
  id: t(s),
123
124
  dialogTitle: t(C),
124
125
  title: o.title
125
126
  }, () => [
126
- i(t(C), {
127
+ r(t(C), {
127
128
  id: t(s),
128
129
  class: "rvc-modal-title"
129
130
  }, {
130
131
  default: d(() => [
131
- h(F(o.title), 1)
132
+ F(I(o.title), 1)
132
133
  ]),
133
134
  _: 1
134
135
  }, 8, ["id"])
135
136
  ]),
136
- o.showClose ? c(l.$slots, "close", {
137
+ o.showClose ? c(i.$slots, "close", {
137
138
  key: 0,
138
139
  icon: t(S),
139
- emitClose: () => r("drawer:close")
140
+ emitClose: () => n("drawer:close")
140
141
  }, () => [
141
- a("div", A, [
142
+ a("div", z, [
142
143
  a("button", {
143
144
  type: "button",
144
145
  class: "rvc-modal-close",
145
146
  "aria-label": "Close panel",
146
- onClick: e[1] || (e[1] = (n) => r("modal:close"))
147
+ onClick: e[2] || (e[2] = (l) => n("modal:close"))
147
148
  }, [
148
- i(t(S), { "aria-hidden": "true" })
149
+ r(t(S), { "aria-hidden": "true" })
149
150
  ])
150
151
  ])
151
152
  ]) : T("", !0)
@@ -158,22 +159,22 @@ const q = {
158
159
  ref: p,
159
160
  class: "rvc-modal-content"
160
161
  }, [
161
- c(l.$slots, "default", { ready: t(m) })
162
+ c(i.$slots, "default", { ready: t(m) })
162
163
  ], 8, P),
163
164
  a("footer", j, [
164
- c(l.$slots, "footer", { loading: o.spinning }, () => [
165
- i(k, {
165
+ c(i.$slots, "footer", { loading: o.spinning }, () => [
166
+ r(k, {
166
167
  type: t(u) ? "submit" : "button",
167
168
  label: o.submitLabel,
168
169
  spinning: o.spinning,
169
170
  disabled: o.spinning,
170
- onClick: e[2] || (e[2] = (n) => !t(u) && l.$emit("modal:save"))
171
+ onClick: e[3] || (e[3] = (l) => !t(u) && i.$emit("modal:save"))
171
172
  }, null, 8, ["type", "label", "spinning", "disabled"]),
172
- i(k, {
173
+ r(k, {
173
174
  type: "button",
174
175
  color: "light",
175
176
  label: o.cancelLabel,
176
- onClick: e[3] || (e[3] = (n) => l.$emit("modal:close"))
177
+ onClick: e[4] || (e[4] = (l) => i.$emit("modal:close"))
177
178
  }, null, 8, ["label"])
178
179
  ])
179
180
  ])
@@ -195,5 +196,5 @@ const q = {
195
196
  };
196
197
  export {
197
198
  O as _,
198
- V as u
199
+ q as u
199
200
  };
@@ -1,4 +1,4 @@
1
- import { createElementBlock as l, openBlock as n, createElementVNode as u, Fragment as S, renderList as V, renderSlot as m, createTextVNode as A, toDisplayString as f, createVNode as C, unref as $, normalizeClass as b, createBlock as w, resolveDynamicComponent as x, withCtx as M, createCommentVNode as h, computed as B, useAttrs as N, withDirectives as O, mergeProps as p, vModelDynamic as q, normalizeProps as P, guardReactiveProps as z, vModelSelect as E, ref as D, vModelText as R } from "vue";
1
+ import { createElementBlock as l, openBlock as n, createElementVNode as u, Fragment as S, renderList as V, renderSlot as m, createTextVNode as A, toDisplayString as f, createVNode as C, unref as $, normalizeClass as b, createBlock as w, resolveDynamicComponent as x, withCtx as O, createCommentVNode as h, computed as B, useAttrs as N, withDirectives as M, mergeProps as p, vModelDynamic as q, normalizeProps as P, guardReactiveProps as z, vModelSelect as E, ref as D, vModelText as R } from "vue";
2
2
  import { r as U } from "../_shared/XMarkIcon-90mcPzBs.js";
3
3
  import { r as Z } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
4
4
  import { _ as Ee } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
@@ -36,7 +36,7 @@ function J(e, o) {
36
36
  })
37
37
  ]);
38
38
  }
39
- const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], Me = {
39
+ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], Oe = {
40
40
  __name: "Accordion",
41
41
  props: {
42
42
  items: {
@@ -67,6 +67,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
67
67
  u("summary", null, [
68
68
  m(o.$slots, "summary", {
69
69
  item: c,
70
+ index: s,
70
71
  active: e.defaultOpenIndex === s
71
72
  }, () => [
72
73
  A(f(c.title) + " ", 1),
@@ -87,7 +88,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
87
88
  ], 8, W))), 128))
88
89
  ]));
89
90
  }
90
- }, Y = { class: "rvc-alert-title" }, Oe = {
91
+ }, Y = { class: "rvc-alert-title" }, Me = {
91
92
  __name: "Alert",
92
93
  props: {
93
94
  as: {
@@ -117,7 +118,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
117
118
  return (o, i) => (n(), w(x(e.as), {
118
119
  class: b(["rvc-alert", `rvc-alert-${e.type}`])
119
120
  }, {
120
- default: M(() => [
121
+ default: O(() => [
121
122
  m(o.$slots, "icon", {}, () => [
122
123
  e.icon ? (n(), w(x(e.icon), {
123
124
  key: 0,
@@ -150,7 +151,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
150
151
  __name: "Checkbox",
151
152
  props: {
152
153
  modelValue: {
153
- type: [Boolean, String, Array, Number],
154
+ type: [Boolean, String, Array, Object, Number],
154
155
  default: null
155
156
  },
156
157
  id: {
@@ -179,7 +180,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
179
180
  return (t, a) => (n(), l("div", {
180
181
  class: b(["rvc-checkbox", e.rootClass])
181
182
  }, [
182
- $(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
183
+ $(g) ? M((n(), l("input", p({ key: 0 }, r.value, {
183
184
  "onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
184
185
  }), null, 16)), [
185
186
  [q, s.value]
@@ -287,7 +288,7 @@ const H = /* @__PURE__ */ Object.assign({
287
288
  (n(), w(x(e.prefixIcon), { "aria-hidden": "true" }))
288
289
  ]) : h("", !0),
289
290
  m(d.$slots, "select", P(z(d.$attrs)), () => [
290
- $(g) ? O((n(), l("select", p({ key: 0 }, d.$attrs, {
291
+ $(g) ? M((n(), l("select", p({ key: 0 }, d.$attrs, {
291
292
  "onUpdate:modelValue": r[0] || (r[0] = (t) => s.value = t)
292
293
  }), [
293
294
  m(d.$slots, "default")
@@ -345,7 +346,7 @@ const H = /* @__PURE__ */ Object.assign({
345
346
  size: "sm",
346
347
  "root-class": "rvc-pagination-per-page"
347
348
  }, {
348
- default: M(() => [
349
+ default: O(() => [
349
350
  (n(!0), l(S, null, V(e.perPageOptions, (t) => (n(), l("option", {
350
351
  key: `pagination-items-per-page-option-${t}`,
351
352
  value: t
@@ -630,7 +631,7 @@ const H = /* @__PURE__ */ Object.assign({
630
631
  "rvc-textarea",
631
632
  `rvc-textarea-${i.size}`
632
633
  ]);
633
- return (r, t) => $(s) ? O((n(), l("textarea", {
634
+ return (r, t) => $(s) ? M((n(), l("textarea", {
634
635
  key: 0,
635
636
  "onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a),
636
637
  class: b(d.value)
@@ -647,7 +648,7 @@ const H = /* @__PURE__ */ Object.assign({
647
648
  __name: "Radio",
648
649
  props: {
649
650
  modelValue: {
650
- type: [Boolean, String, Array, Number],
651
+ type: [Boolean, String, Array, Object, Number],
651
652
  default: null
652
653
  },
653
654
  id: {
@@ -670,7 +671,7 @@ const H = /* @__PURE__ */ Object.assign({
670
671
  type: "radio"
671
672
  }));
672
673
  return (t, a) => (n(), l("div", ke, [
673
- $(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
674
+ $(g) ? M((n(), l("input", p({ key: 0 }, r.value, {
674
675
  id: e.id,
675
676
  "onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
676
677
  }), null, 16, Se)), [
@@ -742,7 +743,7 @@ const H = /* @__PURE__ */ Object.assign({
742
743
  class: ["rvc-tab", { "rvc-tab-active": g.value === y }],
743
744
  onClick: (k) => g.value = y
744
745
  }), {
745
- default: M(() => [
746
+ default: O(() => [
746
747
  A(f(v.name), 1)
747
748
  ]),
748
749
  _: 2
@@ -754,7 +755,7 @@ const H = /* @__PURE__ */ Object.assign({
754
755
  value: g.value,
755
756
  onChange: d
756
757
  }), {
757
- default: M(() => [
758
+ default: O(() => [
758
759
  (n(!0), l(S, null, V(e.tabs, (v, y) => (n(), l("option", {
759
760
  key: `${y}-tab-item-select-option`,
760
761
  value: y,
@@ -767,8 +768,8 @@ const H = /* @__PURE__ */ Object.assign({
767
768
  }
768
769
  });
769
770
  export {
770
- Me as Accordion,
771
- Oe as Alert,
771
+ Oe as Accordion,
772
+ Me as Alert,
772
773
  Ee as Badge,
773
774
  Ue as ButtonBase,
774
775
  Ie as Checkbox,
@@ -1,13 +1,13 @@
1
- import { createBlock as f, openBlock as m, unref as e, withCtx as s, createVNode as i, withModifiers as B, createElementVNode as a, normalizeClass as w, renderSlot as d, createCommentVNode as b, createTextVNode as L, toDisplayString as T } from "vue";
2
- import { TransitionRoot as E, Dialog as N, TransitionChild as p, DialogPanel as V, DialogTitle as y } from "@headlessui/vue";
1
+ import { createBlock as u, openBlock as m, unref as r, withCtx as s, createVNode as i, withModifiers as B, createElementVNode as a, normalizeClass as w, renderSlot as d, createCommentVNode as b, createTextVNode as E, toDisplayString as L } from "vue";
2
+ import { TransitionRoot as T, Dialog as N, TransitionChild as p, DialogPanel as V, DialogTitle as y } from "@headlessui/vue";
3
3
  import { _ as g } from "../_shared/ButtonBase-DfkwHIhN.js";
4
- import { u as R } from "../_shared/Modal-BztsrTZC.js";
5
- import { _ as W } from "../_shared/Modal-BztsrTZC.js";
4
+ import { u as R } from "../_shared/Modal-DdpJnce6.js";
5
+ import { _ as W } from "../_shared/Modal-DdpJnce6.js";
6
6
  import { r as k } from "../_shared/XMarkIcon-90mcPzBs.js";
7
7
  const q = {
8
8
  class: "rvc-drawer-presentation",
9
9
  role: "presentation"
10
- }, F = { class: "rvc-drawer-container" }, I = { class: "rvc-drawer-inner" }, M = { class: "rvc-drawer-panel-inner" }, x = { class: "rvc-drawer-header-inner" }, z = { class: "rvc-drawer-close-wrapper" }, A = ["id"], P = { class: "rvc-drawer-footer" }, O = {
10
+ }, A = { class: "rvc-drawer-container" }, F = { class: "rvc-drawer-inner" }, I = { class: "rvc-drawer-panel-inner" }, M = { class: "rvc-drawer-header-inner" }, x = { class: "rvc-drawer-close-wrapper" }, z = ["id"], P = { class: "rvc-drawer-footer" }, O = {
11
11
  __name: "Drawer",
12
12
  props: {
13
13
  as: {
@@ -47,31 +47,31 @@ const q = {
47
47
  default: "rvc-drawer-panel-max-width"
48
48
  }
49
49
  },
50
- emits: ["drawer:open", "drawer:close", "drawer:save", "drawer:closed"],
51
- setup(r, { emit: C }) {
52
- const o = C, $ = r, {
50
+ emits: ["drawer:open", "drawer:opened", "drawer:close", "drawer:save", "drawer:closed"],
51
+ setup(t, { emit: C }) {
52
+ const o = C, $ = t, {
53
53
  contentRef: S,
54
54
  ready: c,
55
55
  isForm: h,
56
56
  titleId: v,
57
- descriptionId: u,
57
+ descriptionId: f,
58
58
  initialFocusElement: D
59
59
  } = R($);
60
- return (l, t) => (m(), f(e(E), { as: "template" }, {
60
+ return (l, e) => (m(), u(r(T), { as: "template" }, {
61
61
  default: s(() => [
62
- i(e(N), {
63
- as: r.as,
62
+ i(r(N), {
63
+ as: t.as,
64
64
  class: "rvc-drawer",
65
65
  static: "",
66
66
  "aria-modal": "true",
67
67
  role: "dialog",
68
- "initial-focus": e(D),
69
- "aria-labelledby": e(v),
70
- onClose: t[5] || (t[5] = (n) => l.$emit("drawer:close")),
71
- onSubmit: t[6] || (t[6] = B((n) => o("drawer:save", n), ["prevent"]))
68
+ "initial-focus": r(D),
69
+ "aria-labelledby": r(v),
70
+ onClose: e[6] || (e[6] = (n) => l.$emit("drawer:close")),
71
+ onSubmit: e[7] || (e[7] = B((n) => o("drawer:save", n), ["prevent"]))
72
72
  }, {
73
73
  default: s(() => [
74
- i(e(p), {
74
+ i(r(p), {
75
75
  as: "template",
76
76
  enter: "rvc-drawer-backdrop-transition-enter",
77
77
  "enter-from": "rvc-drawer-backdrop-transition-enter-from",
@@ -79,9 +79,10 @@ const q = {
79
79
  leave: "rvc-drawer-backdrop-transition-leave",
80
80
  "leave-from": "rvc-drawer-backdrop-transition-leave-from",
81
81
  "leave-to": "rvc-drawer-backdrop-transition-leave-to",
82
- onBeforeEnter: t[0] || (t[0] = (n) => o("drawer:open"))
82
+ onBeforeEnter: e[0] || (e[0] = (n) => o("drawer:open")),
83
+ onAfterEnter: e[1] || (e[1] = (n) => o("drawer:opened"))
83
84
  }, {
84
- default: s(() => t[7] || (t[7] = [
85
+ default: s(() => e[8] || (e[8] = [
85
86
  a("div", {
86
87
  class: "rvc-drawer-backdrop",
87
88
  "aria-hidden": "true"
@@ -90,9 +91,9 @@ const q = {
90
91
  _: 1
91
92
  }),
92
93
  a("div", q, [
93
- a("div", F, [
94
- a("div", I, [
95
- i(e(p), {
94
+ a("div", A, [
95
+ a("div", F, [
96
+ i(r(p), {
96
97
  as: "template",
97
98
  enter: "rvc-drawer-transition-enter",
98
99
  "enter-from": "rvc-drawer-transition-enter-from",
@@ -100,53 +101,53 @@ const q = {
100
101
  leave: "rvc-drawer-transition-leave",
101
102
  "leave-from": "rvc-drawer-transition-leave-from",
102
103
  "leave-to": "rvc-drawer-transition-leave-to",
103
- onBeforeEnter: t[3] || (t[3] = (n) => c.value = !0),
104
- onAfterLeave: t[4] || (t[4] = (n) => (c.value = !1, o("drawer:closed")))
104
+ onBeforeEnter: e[4] || (e[4] = (n) => c.value = !0),
105
+ onAfterLeave: e[5] || (e[5] = (n) => (c.value = !1, o("drawer:closed")))
105
106
  }, {
106
107
  default: s(() => [
107
- i(e(V), {
108
- class: w(["rvc-drawer-panel", r.panelClass]),
109
- "aria-busy": r.spinning,
110
- "aria-describedby": e(u)
108
+ i(r(V), {
109
+ class: w(["rvc-drawer-panel", t.panelClass]),
110
+ "aria-busy": t.spinning,
111
+ "aria-describedby": r(f)
111
112
  }, {
112
113
  default: s(() => [
113
- a("div", M, [
114
+ a("div", I, [
114
115
  a("header", {
115
- class: w([{ "rvc-drawer-header-sticky": r.headerSticky }, "rvc-drawer-header"])
116
+ class: w([{ "rvc-drawer-header-sticky": t.headerSticky }, "rvc-drawer-header"])
116
117
  }, [
117
118
  d(l.$slots, "header", {
118
- title: r.title,
119
- showClose: r.showClose
119
+ title: t.title,
120
+ showClose: t.showClose
120
121
  }, () => [
121
- a("div", x, [
122
+ a("div", M, [
122
123
  d(l.$slots, "title", {
123
- id: e(v),
124
- dialogTitle: e(y),
125
- title: r.title
124
+ id: r(v),
125
+ dialogTitle: r(y),
126
+ title: t.title
126
127
  }, () => [
127
- i(e(y), {
128
- id: e(v),
128
+ i(r(y), {
129
+ id: r(v),
129
130
  class: "rvc-drawer-title"
130
131
  }, {
131
132
  default: s(() => [
132
- L(T(r.title), 1)
133
+ E(L(t.title), 1)
133
134
  ]),
134
135
  _: 1
135
136
  }, 8, ["id"])
136
137
  ]),
137
- r.showClose ? d(l.$slots, "close", {
138
+ t.showClose ? d(l.$slots, "close", {
138
139
  key: 0,
139
- icon: e(k),
140
+ icon: r(k),
140
141
  emitClose: () => o("drawer:close")
141
142
  }, () => [
142
- a("div", z, [
143
+ a("div", x, [
143
144
  a("button", {
144
145
  type: "button",
145
146
  class: "rvc-drawer-close",
146
147
  "aria-label": "Close panel",
147
- onClick: t[1] || (t[1] = (n) => o("drawer:close"))
148
+ onClick: e[2] || (e[2] = (n) => o("drawer:close"))
148
149
  }, [
149
- i(e(k), { "aria-hidden": "true" })
150
+ i(r(k), { "aria-hidden": "true" })
150
151
  ])
151
152
  ])
152
153
  ]) : b("", !0)
@@ -154,31 +155,31 @@ const q = {
154
155
  ])
155
156
  ], 2),
156
157
  a("div", {
157
- class: w([{ "rvc-drawer-scroll-reverse": r.scrolledDown }, "rvc-drawer-scroll"])
158
+ class: w([{ "rvc-drawer-scroll-reverse": t.scrolledDown }, "rvc-drawer-scroll"])
158
159
  }, [
159
160
  a("div", {
160
- id: e(u),
161
+ id: r(f),
161
162
  ref_key: "contentRef",
162
163
  ref: S,
163
164
  class: "rvc-drawer-content"
164
165
  }, [
165
- d(l.$slots, "default", { ready: e(c) })
166
- ], 8, A)
166
+ d(l.$slots, "default", { ready: r(c) })
167
+ ], 8, z)
167
168
  ], 2),
168
169
  a("footer", P, [
169
- d(l.$slots, "footer", { loading: r.spinning }, () => [
170
+ d(l.$slots, "footer", { loading: t.spinning }, () => [
170
171
  i(g, {
171
172
  type: "button",
172
- label: r.cancelLabel,
173
+ label: t.cancelLabel,
173
174
  color: "light",
174
- onClick: t[2] || (t[2] = (n) => o("drawer:close"))
175
+ onClick: e[3] || (e[3] = (n) => o("drawer:close"))
175
176
  }, null, 8, ["label"]),
176
- e(h) ? (m(), f(g, {
177
+ r(h) ? (m(), u(g, {
177
178
  key: 0,
178
179
  type: "submit",
179
- label: r.submitLabel,
180
- spinning: r.spinning,
181
- disabled: r.spinning
180
+ label: t.submitLabel,
181
+ spinning: t.spinning,
182
+ disabled: t.spinning
182
183
  }, null, 8, ["label", "spinning", "disabled"])) : b("", !0)
183
184
  ])
184
185
  ])
@@ -4,7 +4,7 @@ import N from "@tiptap/extension-link";
4
4
  import U from "@tiptap/starter-kit";
5
5
  import { _ as q } from "../_shared/Tooltip-B93ZF7IF.js";
6
6
  import { _ as z } from "../_shared/FormInput-abFMz_J4.js";
7
- import { _ as D } from "../_shared/Modal-BztsrTZC.js";
7
+ import { _ as D } from "../_shared/Modal-DdpJnce6.js";
8
8
  function I(i, d) {
9
9
  return s(), r("svg", {
10
10
  xmlns: "http://www.w3.org/2000/svg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.0.0-rc.7",
3
+ "version": "2.0.0-rc.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -61,7 +61,7 @@
61
61
  "@tiptap/extension-link": "^2.11.5",
62
62
  "@tiptap/starter-kit": "^2.11.5",
63
63
  "@tiptap/vue-3": "^2.11.5",
64
- "@vueuse/core": "^12.6.1",
64
+ "@vueuse/core": "^13.0.0",
65
65
  "vue": "^3.5.13"
66
66
  },
67
67
  "devDependencies": {
@@ -80,16 +80,19 @@
80
80
  "postcss-scss": "^4.0.9",
81
81
  "stylelint": "^16.14.1",
82
82
  "stylelint-config-property-sort-order-smacss": "^10.0.0",
83
- "stylelint-config-standard": "^37.0.0",
83
+ "stylelint-config-standard": "^38.0.0",
84
84
  "tailwindcss": "^4.0.6",
85
85
  "vite": "^6.1.0",
86
86
  "vite-plugin-eslint": "^1.8.1",
87
- "vite-plugin-static-copy": "^2.2.0",
87
+ "vite-plugin-static-copy": "^3.0.0",
88
88
  "vite-plugin-stylelint": "^6.0.0",
89
89
  "vite-plugin-vue-devtools": "^7.7.2",
90
90
  "vite-svg-loader": "^5.1.0",
91
91
  "vitepress": "^2.0.0-alpha.2",
92
92
  "vitest": "^3.0.5"
93
93
  },
94
- "packageManager": "yarn@4.6.0"
94
+ "resolutions": {
95
+ "@vueuse/core": "^13.0.0"
96
+ },
97
+ "packageManager": "yarn@4.9.1"
95
98
  }