@robuust-digital/vue-components 2.0.0-rc.10 → 2.0.0-rc.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 2.0.0-rc.10 (19-05-2025)
1
+ ## 2.0.0-rc.11 (26-05-2025)
2
2
 
3
3
  ### Added
4
4
 
@@ -17,6 +17,7 @@
17
17
  * `DataTable`: `headers` slot is renamed to `header` and added a parent `headers` slot to customize the whole row
18
18
  * `Accordion`: `defaultOpenIndex` param can now accept `Number` and `String` as type
19
19
  * `Accordion`: `active` prop is removed from the `summary` slot, as it's not needed
20
+ * `Accordion`: `items` prop can now also accept an `Object` as type
20
21
 
21
22
  ### Updated
22
23
 
@@ -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,11 +36,11 @@ 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: {
43
- type: Array,
43
+ type: [Array, Object],
44
44
  required: !0,
45
45
  default: () => []
46
46
  },
@@ -87,7 +87,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
87
87
  ], 8, W))), 128))
88
88
  ]));
89
89
  }
90
- }, Y = { class: "rvc-alert-title" }, Oe = {
90
+ }, Y = { class: "rvc-alert-title" }, Me = {
91
91
  __name: "Alert",
92
92
  props: {
93
93
  as: {
@@ -117,7 +117,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
117
117
  return (o, i) => (n(), w(x(e.as), {
118
118
  class: b(["rvc-alert", `rvc-alert-${e.type}`])
119
119
  }, {
120
- default: M(() => [
120
+ default: O(() => [
121
121
  m(o.$slots, "icon", {}, () => [
122
122
  e.icon ? (n(), w(x(e.icon), {
123
123
  key: 0,
@@ -179,7 +179,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], M
179
179
  return (t, a) => (n(), l("div", {
180
180
  class: b(["rvc-checkbox", e.rootClass])
181
181
  }, [
182
- $(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
182
+ $(g) ? M((n(), l("input", p({ key: 0 }, r.value, {
183
183
  "onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
184
184
  }), null, 16)), [
185
185
  [q, s.value]
@@ -287,7 +287,7 @@ const H = /* @__PURE__ */ Object.assign({
287
287
  (n(), w(x(e.prefixIcon), { "aria-hidden": "true" }))
288
288
  ]) : h("", !0),
289
289
  m(d.$slots, "select", P(z(d.$attrs)), () => [
290
- $(g) ? O((n(), l("select", p({ key: 0 }, d.$attrs, {
290
+ $(g) ? M((n(), l("select", p({ key: 0 }, d.$attrs, {
291
291
  "onUpdate:modelValue": r[0] || (r[0] = (t) => s.value = t)
292
292
  }), [
293
293
  m(d.$slots, "default")
@@ -345,7 +345,7 @@ const H = /* @__PURE__ */ Object.assign({
345
345
  size: "sm",
346
346
  "root-class": "rvc-pagination-per-page"
347
347
  }, {
348
- default: M(() => [
348
+ default: O(() => [
349
349
  (n(!0), l(S, null, V(e.perPageOptions, (t) => (n(), l("option", {
350
350
  key: `pagination-items-per-page-option-${t}`,
351
351
  value: t
@@ -630,7 +630,7 @@ const H = /* @__PURE__ */ Object.assign({
630
630
  "rvc-textarea",
631
631
  `rvc-textarea-${i.size}`
632
632
  ]);
633
- return (r, t) => $(s) ? O((n(), l("textarea", {
633
+ return (r, t) => $(s) ? M((n(), l("textarea", {
634
634
  key: 0,
635
635
  "onUpdate:modelValue": t[0] || (t[0] = (a) => g.value = a),
636
636
  class: b(d.value)
@@ -670,7 +670,7 @@ const H = /* @__PURE__ */ Object.assign({
670
670
  type: "radio"
671
671
  }));
672
672
  return (t, a) => (n(), l("div", ke, [
673
- $(g) ? O((n(), l("input", p({ key: 0 }, r.value, {
673
+ $(g) ? M((n(), l("input", p({ key: 0 }, r.value, {
674
674
  id: e.id,
675
675
  "onUpdate:modelValue": a[0] || (a[0] = (v) => s.value = v)
676
676
  }), null, 16, Se)), [
@@ -742,7 +742,7 @@ const H = /* @__PURE__ */ Object.assign({
742
742
  class: ["rvc-tab", { "rvc-tab-active": g.value === y }],
743
743
  onClick: (k) => g.value = y
744
744
  }), {
745
- default: M(() => [
745
+ default: O(() => [
746
746
  A(f(v.name), 1)
747
747
  ]),
748
748
  _: 2
@@ -754,7 +754,7 @@ const H = /* @__PURE__ */ Object.assign({
754
754
  value: g.value,
755
755
  onChange: d
756
756
  }), {
757
- default: M(() => [
757
+ default: O(() => [
758
758
  (n(!0), l(S, null, V(e.tabs, (v, y) => (n(), l("option", {
759
759
  key: `${y}-tab-item-select-option`,
760
760
  value: y,
@@ -767,8 +767,8 @@ const H = /* @__PURE__ */ Object.assign({
767
767
  }
768
768
  });
769
769
  export {
770
- Me as Accordion,
771
- Oe as Alert,
770
+ Oe as Accordion,
771
+ Me as Alert,
772
772
  Ee as Badge,
773
773
  Ue as ButtonBase,
774
774
  je as Checkbox,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.0.0-rc.10",
3
+ "version": "2.0.0-rc.11",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"