@robuust-digital/vue-components 2.0.0-rc.4 → 2.0.0-rc.5

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 (2) hide show
  1. package/dist/core/index.js +195 -185
  2. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { createElementBlock as l, openBlock as t, createElementVNode as o, Fragment as k, renderList as S, renderSlot as v, createTextVNode as A, toDisplayString as m, createVNode as V, unref as h, normalizeClass as p, createBlock as x, resolveDynamicComponent as B, withCtx as L, createCommentVNode as $, computed as C, useAttrs as F, withDirectives as M, mergeProps as b, vModelDynamic as N, normalizeProps as P, guardReactiveProps as H, vModelSelect as E, ref as q, vModelText as R } from "vue";
1
+ import { createElementBlock as l, openBlock as a, createElementVNode as o, Fragment as w, renderList as S, renderSlot as f, createTextVNode as A, toDisplayString as m, createVNode as V, unref as h, normalizeClass as p, createBlock as x, resolveDynamicComponent as B, withCtx as M, createCommentVNode as $, computed as C, useAttrs as F, withDirectives as j, mergeProps as b, vModelDynamic as N, normalizeProps as P, guardReactiveProps as H, vModelSelect as E, ref as q, 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 Ze } from "../_shared/ChevronDownIcon-z-5U4fIb.js";
5
5
  import { _ as Ge } from "../_shared/ButtonBase-CQjlJ85F.js";
6
- import { u as j } from "../_shared/FormInput-abFMz_J4.js";
6
+ import { u as O } from "../_shared/FormInput-abFMz_J4.js";
7
7
  import { _ as Qe } from "../_shared/FormInput-abFMz_J4.js";
8
8
  import { S as K } from "../_shared/icon-spinner-CmxIOqaK.js";
9
9
  function G(e, r) {
10
- return t(), l("svg", {
10
+ return a(), l("svg", {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  viewBox: "0 0 24 24",
13
13
  fill: "currentColor",
@@ -22,7 +22,7 @@ function G(e, r) {
22
22
  ]);
23
23
  }
24
24
  function J(e, r) {
25
- return t(), l("svg", {
25
+ return a(), l("svg", {
26
26
  xmlns: "http://www.w3.org/2000/svg",
27
27
  viewBox: "0 0 24 24",
28
28
  fill: "currentColor",
@@ -58,20 +58,20 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
58
58
  }
59
59
  },
60
60
  setup(e) {
61
- return (r, i) => (t(), l("div", Q, [
62
- (t(!0), l(k, null, S(e.items, (c, s) => (t(), l("details", {
61
+ return (r, i) => (a(), l("div", Q, [
62
+ (a(!0), l(w, null, S(e.items, (c, s) => (a(), l("details", {
63
63
  key: s,
64
64
  open: e.defaultOpenIndex === s,
65
65
  name: e.name,
66
66
  class: "group/accordion"
67
67
  }, [
68
68
  o("summary", null, [
69
- v(r.$slots, "summary", {
69
+ f(r.$slots, "summary", {
70
70
  item: c,
71
71
  active: e.defaultOpenIndex === s
72
72
  }, () => [
73
73
  A(m(c.title) + " ", 1),
74
- v(r.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
74
+ f(r.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
75
75
  V(h(J), { class: "size-5 group-open/accordion:rotate-45 transition-transform" })
76
76
  ])
77
77
  ])
@@ -79,7 +79,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
79
79
  o("div", {
80
80
  class: p(["rvc-accordion-content", e.contentClass])
81
81
  }, [
82
- v(r.$slots, "content", { item: c }, () => [
82
+ f(r.$slots, "content", { item: c }, () => [
83
83
  o("div", {
84
84
  innerHTML: c.content
85
85
  }, null, 8, X)
@@ -115,24 +115,24 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
115
115
  },
116
116
  emits: ["alert:close"],
117
117
  setup(e) {
118
- return (r, i) => (t(), x(B(e.as), {
118
+ return (r, i) => (a(), x(B(e.as), {
119
119
  class: p(["rvc-alert", `rvc-alert-${e.type}`])
120
120
  }, {
121
- default: L(() => [
122
- v(r.$slots, "icon", {}, () => [
123
- e.icon ? (t(), x(B(e.icon), {
121
+ default: M(() => [
122
+ f(r.$slots, "icon", {}, () => [
123
+ e.icon ? (a(), x(B(e.icon), {
124
124
  key: 0,
125
125
  class: "rvc-alert-icon"
126
126
  })) : $("", !0)
127
127
  ]),
128
128
  o("div", null, [
129
- v(r.$slots, "title", {}, () => [
129
+ f(r.$slots, "title", {}, () => [
130
130
  o("span", Y, m(e.title), 1)
131
131
  ]),
132
- v(r.$slots, "default")
132
+ f(r.$slots, "default")
133
133
  ]),
134
- v(r.$slots, "close", {}, () => [
135
- e.close ? (t(), l("button", {
134
+ f(r.$slots, "close", {}, () => [
135
+ e.close ? (a(), l("button", {
136
136
  key: 0,
137
137
  type: "button",
138
138
  class: "rvc-alert-close transition-colors",
@@ -171,26 +171,26 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
171
171
  setup(e, { emit: r }) {
172
172
  const i = e, c = r, s = C({
173
173
  get: () => i.modelValue,
174
- set: (a) => c("update:modelValue", a)
175
- }), { hasModelBinding: g } = j(), u = {
174
+ set: (n) => c("update:modelValue", n)
175
+ }), { hasModelBinding: g } = O(), u = {
176
176
  ...F(),
177
177
  id: i.id,
178
178
  type: "checkbox",
179
179
  class: "absolute opacity-0 inset-0 cursor-pointer peer/checkbox"
180
180
  };
181
- return (a, n) => (t(), l("div", {
181
+ return (n, t) => (a(), l("div", {
182
182
  class: p(["rvc-checkbox", e.rootClass])
183
183
  }, [
184
- h(g) ? M((t(), l("input", b({ key: 0 }, u, {
185
- "onUpdate:modelValue": n[0] || (n[0] = (d) => s.value = d)
184
+ h(g) ? j((a(), l("input", b({ key: 0 }, u, {
185
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => s.value = d)
186
186
  }), null, 16)), [
187
187
  [N, s.value]
188
- ]) : (t(), l("input", P(b({ key: 1 }, u)), null, 16)),
188
+ ]) : (a(), l("input", P(b({ key: 1 }, u)), null, 16)),
189
189
  o("span", _, [
190
190
  V(h(G))
191
191
  ]),
192
192
  o("div", null, [
193
- a.$slots.default || e.label ? v(a.$slots, "default", { key: 0 }, () => [
193
+ n.$slots.default || e.label ? f(n.$slots, "default", { key: 0 }, () => [
194
194
  o("label", { for: e.id }, m(e.label), 9, ee)
195
195
  ]) : $("", !0)
196
196
  ])
@@ -198,7 +198,7 @@ const Q = { class: "rvc-accordion" }, W = ["open", "name"], X = ["innerHTML"], I
198
198
  }
199
199
  });
200
200
  function te(e, r) {
201
- return t(), l("svg", {
201
+ return a(), l("svg", {
202
202
  xmlns: "http://www.w3.org/2000/svg",
203
203
  viewBox: "0 0 16 16",
204
204
  fill: "currentColor",
@@ -213,7 +213,7 @@ function te(e, r) {
213
213
  ]);
214
214
  }
215
215
  function ae(e, r) {
216
- return t(), l("svg", {
216
+ return a(), l("svg", {
217
217
  xmlns: "http://www.w3.org/2000/svg",
218
218
  viewBox: "0 0 20 20",
219
219
  fill: "currentColor",
@@ -228,7 +228,7 @@ function ae(e, r) {
228
228
  ]);
229
229
  }
230
230
  function ne(e, r) {
231
- return t(), l("svg", {
231
+ return a(), l("svg", {
232
232
  xmlns: "http://www.w3.org/2000/svg",
233
233
  viewBox: "0 0 20 20",
234
234
  fill: "currentColor",
@@ -273,34 +273,34 @@ const D = /* @__PURE__ */ Object.assign({
273
273
  setup(e, { emit: r }) {
274
274
  const i = e, c = r, s = C({
275
275
  get: () => i.modelValue,
276
- set: (f) => c("update:modelValue", f)
277
- }), { hasModelBinding: g } = j();
278
- return (f, u) => (t(), l("div", {
276
+ set: (v) => c("update:modelValue", v)
277
+ }), { hasModelBinding: g } = O();
278
+ return (v, u) => (a(), l("div", {
279
279
  class: p([
280
280
  "rvc-select",
281
281
  `rvc-select-${e.size}`,
282
282
  e.rootClass
283
283
  ])
284
284
  }, [
285
- e.prefixIcon ? v(f.$slots, "prefixIcon", {
285
+ e.prefixIcon ? f(v.$slots, "prefixIcon", {
286
286
  key: 0,
287
287
  icon: e.prefixIcon
288
288
  }, () => [
289
- (t(), x(B(e.prefixIcon), { "aria-hidden": "true" }))
289
+ (a(), x(B(e.prefixIcon), { "aria-hidden": "true" }))
290
290
  ]) : $("", !0),
291
- v(f.$slots, "select", P(H(f.$attrs)), () => [
292
- h(g) ? M((t(), l("select", b({ key: 0 }, f.$attrs, {
293
- "onUpdate:modelValue": u[0] || (u[0] = (a) => s.value = a)
291
+ f(v.$slots, "select", P(H(v.$attrs)), () => [
292
+ h(g) ? j((a(), l("select", b({ key: 0 }, v.$attrs, {
293
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => s.value = n)
294
294
  }), [
295
- v(f.$slots, "default")
295
+ f(v.$slots, "default")
296
296
  ], 16)), [
297
297
  [E, s.value]
298
- ]) : (t(), l("select", P(b({ key: 1 }, f.$attrs)), [
299
- v(f.$slots, "default")
298
+ ]) : (a(), l("select", P(b({ key: 1 }, v.$attrs)), [
299
+ f(v.$slots, "default")
300
300
  ], 16))
301
301
  ]),
302
- v(f.$slots, "icon", { icon: e.icon }, () => [
303
- (t(), x(B(e.icon ?? h(Z)), { "aria-hidden": "true" }))
302
+ f(v.$slots, "icon", { icon: e.icon }, () => [
303
+ (a(), x(B(e.icon ?? h(Z)), { "aria-hidden": "true" }))
304
304
  ])
305
305
  ], 2));
306
306
  }
@@ -334,29 +334,29 @@ const D = /* @__PURE__ */ Object.assign({
334
334
  emits: ["pagination:change", "pagination:perPage"],
335
335
  setup(e, { emit: r }) {
336
336
  const i = e, c = r, s = q(i.perPage);
337
- return (g, f) => {
337
+ return (g, v) => {
338
338
  var u;
339
- return (u = e.pagination) != null && u.total ? (t(), l("div", le, [
340
- v(g.$slots, "perPage", b(e.pagination, { perPage: s.value }), () => [
339
+ return (u = e.pagination) != null && u.total ? (a(), l("div", le, [
340
+ f(g.$slots, "perPage", b(e.pagination, { perPage: s.value }), () => [
341
341
  V(D, {
342
342
  modelValue: s.value,
343
343
  "onUpdate:modelValue": [
344
- f[0] || (f[0] = (a) => s.value = a),
345
- f[1] || (f[1] = (a) => c("pagination:perPage", a))
344
+ v[0] || (v[0] = (n) => s.value = n),
345
+ v[1] || (v[1] = (n) => c("pagination:perPage", n))
346
346
  ],
347
347
  size: "sm",
348
348
  "root-class": "w-fit"
349
349
  }, {
350
- default: L(() => [
351
- (t(!0), l(k, null, S(e.perPageOptions, (a) => (t(), l("option", {
352
- key: `pagination-items-per-page-option-${a}`,
353
- value: a
354
- }, m(a) + " " + m(e.perPageLabel), 9, se))), 128))
350
+ default: M(() => [
351
+ (a(!0), l(w, null, S(e.perPageOptions, (n) => (a(), l("option", {
352
+ key: `pagination-items-per-page-option-${n}`,
353
+ value: n
354
+ }, m(n) + " " + m(e.perPageLabel), 9, se))), 128))
355
355
  ]),
356
356
  _: 1
357
357
  }, 8, ["modelValue"])
358
358
  ]),
359
- v(g.$slots, "info", b(e.pagination, { fromLabel: e.fromLabel }), () => [
359
+ f(g.$slots, "info", b(e.pagination, { fromLabel: e.fromLabel }), () => [
360
360
  o("div", ie, [
361
361
  o("div", oe, m(e.pagination.from) + " - " + m(e.pagination.to) + " " + m(e.fromLabel) + " " + m(e.pagination.total), 1)
362
362
  ])
@@ -364,34 +364,34 @@ const D = /* @__PURE__ */ Object.assign({
364
364
  o("div", re, [
365
365
  o("nav", null, [
366
366
  o("ol", ue, [
367
- (t(!0), l(k, null, S(e.pagination.links, (a, n) => (t(), l("li", {
368
- key: `pagination-link-${a.label}-${n}`,
367
+ (a(!0), l(w, null, S(e.pagination.links, (n, t) => (a(), l("li", {
368
+ key: `pagination-link-${n.label}-${t}`,
369
369
  class: "hidden md:block first:block last:block"
370
370
  }, [
371
371
  o("button", {
372
372
  type: "button",
373
- disabled: a.label === "..." || !a.url,
373
+ disabled: n.label === "..." || !n.url,
374
374
  class: p([
375
375
  "rvc-pagination-button",
376
- { "rvc-pagination-button-active": a.active }
376
+ { "rvc-pagination-button-active": n.active }
377
377
  ]),
378
- onClick: (d) => a.url && c("pagination:change", a.url)
378
+ onClick: (d) => n.url && c("pagination:change", n.url)
379
379
  }, [
380
- a.url !== "..." && n === 0 ? (t(), x(h(ae), {
380
+ n.url !== "..." && t === 0 ? (a(), x(h(ae), {
381
381
  key: 0,
382
382
  "aria-hidden": "true",
383
383
  class: p([
384
384
  "size-5 text-slate-80",
385
- { "opacity-50": !a.url }
385
+ { "opacity-50": !n.url }
386
386
  ])
387
- }, null, 8, ["class"])) : a.label !== "..." && n === e.pagination.links.length - 1 ? (t(), x(h(ne), {
387
+ }, null, 8, ["class"])) : n.label !== "..." && t === e.pagination.links.length - 1 ? (a(), x(h(ne), {
388
388
  key: 1,
389
389
  "aria-hidden": "true",
390
390
  class: p([
391
391
  "size-5 text-slate-80",
392
- { "opacity-50": !a.url }
392
+ { "opacity-50": !n.url }
393
393
  ])
394
- }, null, 8, ["class"])) : a.label === "..." ? (t(), l("span", de, " ... ")) : (t(), l("span", ge, m(a.label), 1))
394
+ }, null, 8, ["class"])) : n.label === "..." ? (a(), l("span", de, " ... ")) : (a(), l("span", ge, m(n.label), 1))
395
395
  ], 10, ce)
396
396
  ]))), 128))
397
397
  ])
@@ -440,7 +440,7 @@ const D = /* @__PURE__ */ Object.assign({
440
440
  },
441
441
  emits: ["table:sortBy", "pagination:change", "pagination:perPage"],
442
442
  setup(e, { emit: r }) {
443
- const i = e, c = r, s = q(null), g = (u) => i.headers.find((a) => a.key === u), f = (u) => {
443
+ const i = e, c = r, s = q(null), g = (u) => i.headers.find((n) => n.key === u), v = (u) => {
444
444
  !s.value || s.value.key !== u.key ? s.value = {
445
445
  key: u.key,
446
446
  direction: "asc"
@@ -449,108 +449,118 @@ const D = /* @__PURE__ */ Object.assign({
449
449
  direction: "desc"
450
450
  } : s.value = null, c("table:sortBy", s.value);
451
451
  };
452
- return (u, a) => (t(), l("div", null, [
452
+ return (u, n) => (a(), l("div", null, [
453
453
  o("div", {
454
454
  class: p(["rvc-table-wrapper", e.wrapperClass])
455
455
  }, [
456
456
  o("table", {
457
457
  class: p([{ "rvc-table-striped": e.striped }, "w-full rvc-table"])
458
458
  }, [
459
- e.headers.length ? (t(), l("thead", ve, [
460
- o("tr", null, [
461
- v(u.$slots, "headers", { headers: e.headers }, () => [
462
- (t(!0), l(k, null, S(e.headers, (n) => {
463
- var d, y;
464
- return t(), l("th", b({ ref_for: !0 }, n, {
465
- key: `rvc-table-header-${n.id}`,
466
- class: {
467
- "text-left": n.align === "left" || !n.align,
468
- "text-center": n.align === "center",
469
- "text-right": n.align === "right"
470
- }
471
- }), [
472
- n.sortable && n.key ? (t(), l("button", {
473
- key: 0,
474
- type: "button",
475
- "aria-label": `Sort on ${n.label}`,
476
- class: p([
477
- "flex w-full gap-x-1.5 hover:underline group/table",
478
- {
479
- "justify-center": n.align === "center",
480
- "justify-start flex-row-reverse": n.align === "right"
481
- }
482
- ]),
483
- onClick: (w) => f(n)
484
- }, [
485
- v(u.$slots, "header-label", {
486
- sortBy: s.value,
487
- header: n
488
- }, () => [
489
- A(m(n.label), 1)
490
- ]),
491
- V(h(te), {
459
+ e.headers.length ? (a(), l("thead", ve, [
460
+ f(u.$slots, "headers", { headers: e.headers }, () => [
461
+ o("tr", null, [
462
+ (a(!0), l(w, null, S(e.headers, (t, d) => f(u.$slots, "header", {
463
+ header: t,
464
+ index: d
465
+ }, () => {
466
+ var y, k;
467
+ return [
468
+ (a(), l("th", b({ ref_for: !0 }, t, {
469
+ key: `rvc-table-header-${t.id}`,
470
+ class: {
471
+ "text-left": t.align === "left" || !t.align,
472
+ "text-center": t.align === "center",
473
+ "text-right": t.align === "right"
474
+ }
475
+ }), [
476
+ t.sortable && t.key ? (a(), l("button", {
477
+ key: 0,
478
+ type: "button",
479
+ "aria-label": `Sort on ${t.label}`,
492
480
  class: p([
493
- "size-4 shrink-0 transition",
481
+ "flex w-full gap-x-1.5 hover:underline group/table",
494
482
  {
495
- "opacity-100": ((d = s.value) == null ? void 0 : d.key) === n.key,
496
- "opacity-0 group-hover/table:opacity-30": !s.value || s.value.key !== n.key,
497
- "rotate-180": ((y = s.value) == null ? void 0 : y.key) === n.key && s.value.direction === "desc"
483
+ "justify-center": t.align === "center",
484
+ "justify-start flex-row-reverse": t.align === "right"
498
485
  }
499
- ])
500
- }, null, 8, ["class"])
501
- ], 10, me)) : v(u.$slots, "header-label", {
502
- key: 1,
503
- sortBy: s.value,
504
- header: n
505
- }, () => [
506
- A(m(n.label), 1)
507
- ])
508
- ], 16);
509
- }), 128))
486
+ ]),
487
+ onClick: (T) => v(t)
488
+ }, [
489
+ f(u.$slots, "header-label", {
490
+ sortBy: s.value,
491
+ header: t
492
+ }, () => [
493
+ A(m(t.label), 1)
494
+ ]),
495
+ V(h(te), {
496
+ class: p([
497
+ "size-4 shrink-0 transition",
498
+ {
499
+ "opacity-100": ((y = s.value) == null ? void 0 : y.key) === t.key,
500
+ "opacity-0 group-hover/table:opacity-30": !s.value || s.value.key !== t.key,
501
+ "rotate-180": ((k = s.value) == null ? void 0 : k.key) === t.key && s.value.direction === "desc"
502
+ }
503
+ ])
504
+ }, null, 8, ["class"])
505
+ ], 10, me)) : f(u.$slots, "header-label", {
506
+ key: 1,
507
+ sortBy: s.value,
508
+ header: t
509
+ }, () => [
510
+ A(m(t.label), 1)
511
+ ])
512
+ ], 16))
513
+ ];
514
+ })), 256))
510
515
  ])
511
516
  ])
512
517
  ])) : $("", !0),
513
518
  o("tbody", null, [
514
- e.items.length && !e.spinning ? (t(!0), l(k, { key: 0 }, S(e.items, (n, d) => (t(), l("tr", {
515
- key: `rvc-table-row-${d}-${n.id}`
516
- }, [
517
- v(u.$slots, "items", {
518
- item: n,
519
- index: d
520
- }, () => [
521
- (t(!0), l(k, null, S(n, (y, w) => {
522
- var O, T, I, z;
523
- return t(), l("td", b({
524
- key: `rvc-table-row-${d}-column-${w}-${n.id}`,
525
- ref_for: !0
526
- }, n.attrs, {
527
- class: {
528
- "text-left": ((O = g(w)) == null ? void 0 : O.align) === "left" || !((T = g(w)) != null && T.align),
529
- "text-center": ((I = g(w)) == null ? void 0 : I.align) === "center",
530
- "text-right": ((z = g(w)) == null ? void 0 : z.align) === "right"
531
- },
532
- innerHTML: y
533
- }), null, 16, pe);
534
- }), 128))
535
- ])
536
- ]))), 128)) : !e.items.length && !e.spinning ? (t(), l("tr", ye, [
519
+ e.items.length && !e.spinning ? (a(!0), l(w, { key: 0 }, S(e.items, (t, d) => f(u.$slots, "items", {
520
+ item: t,
521
+ index: d
522
+ }, () => [
523
+ (a(), l("tr", {
524
+ key: `rvc-table-row-${d}-${t.id}`
525
+ }, [
526
+ f(u.$slots, "item", {
527
+ item: t,
528
+ index: d
529
+ }, () => [
530
+ (a(!0), l(w, null, S(t, (y, k) => {
531
+ var T, L, I, z;
532
+ return a(), l("td", b({
533
+ key: `rvc-table-row-${d}-column-${k}-${t.id}`,
534
+ ref_for: !0
535
+ }, t.attrs, {
536
+ class: {
537
+ "text-left": ((T = g(k)) == null ? void 0 : T.align) === "left" || !((L = g(k)) != null && L.align),
538
+ "text-center": ((I = g(k)) == null ? void 0 : I.align) === "center",
539
+ "text-right": ((z = g(k)) == null ? void 0 : z.align) === "right"
540
+ },
541
+ innerHTML: y
542
+ }), null, 16, pe);
543
+ }), 128))
544
+ ])
545
+ ]))
546
+ ])), 256)) : !e.items.length && !e.spinning ? (a(), l("tr", ye, [
537
547
  o("td", {
538
548
  colspan: e.headers.length,
539
549
  class: "rvc-table-state"
540
550
  }, [
541
551
  o("p", null, m(e.noResultsText), 1)
542
552
  ], 8, be)
543
- ])) : (t(), l("tr", he, [
553
+ ])) : (a(), l("tr", he, [
544
554
  o("td", {
545
555
  colspan: e.headers.length,
546
556
  class: "rvc-table-state"
547
557
  }, [
548
- v(u.$slots, "spinner", {
558
+ f(u.$slots, "spinner", {
549
559
  spinning: e.spinning,
550
560
  label: e.loadingText
551
561
  }, () => [
552
562
  o("div", ke, [
553
- e.spinning ? (t(), x(h(K), {
563
+ e.spinning ? (a(), x(h(K), {
554
564
  key: 0,
555
565
  "aria-hidden": "true",
556
566
  class: "rvc-table-spinner"
@@ -563,16 +573,16 @@ const D = /* @__PURE__ */ Object.assign({
563
573
  ])
564
574
  ], 2)
565
575
  ], 2),
566
- e.pagination ? v(u.$slots, "pagination", P(b({ key: 0 }, e.pagination)), () => [
576
+ e.pagination ? f(u.$slots, "pagination", P(b({ key: 0 }, e.pagination)), () => [
567
577
  V(fe, {
568
578
  pagination: e.pagination,
569
- "onPagination:change": a[0] || (a[0] = (n) => c("pagination:change", n)),
570
- "onPagination:perPage": a[1] || (a[1] = (n) => c("pagination:perPage", n))
579
+ "onPagination:change": n[0] || (n[0] = (t) => c("pagination:change", t)),
580
+ "onPagination:perPage": n[1] || (n[1] = (t) => c("pagination:perPage", t))
571
581
  }, null, 8, ["pagination"])
572
582
  ]) : $("", !0)
573
583
  ]));
574
584
  }
575
- }, xe = {
585
+ }, we = {
576
586
  key: 1,
577
587
  class: "rvc-empty-state-title"
578
588
  }, qe = {
@@ -593,15 +603,15 @@ const D = /* @__PURE__ */ Object.assign({
593
603
  }
594
604
  },
595
605
  setup(e) {
596
- return (r, i) => (t(), l("div", {
606
+ return (r, i) => (a(), l("div", {
597
607
  class: p(["rvc-empty-state", { "rvc-empty-state-bg": e.background }])
598
608
  }, [
599
- e.icon ? (t(), x(B(e.icon), {
609
+ e.icon ? (a(), x(B(e.icon), {
600
610
  key: 0,
601
611
  class: "rvc-empty-state-icon"
602
612
  })) : $("", !0),
603
- e.title ? (t(), l("p", xe, m(e.title), 1)) : $("", !0),
604
- v(r.$slots, "default")
613
+ e.title ? (a(), l("p", we, m(e.title), 1)) : $("", !0),
614
+ f(r.$slots, "default")
605
615
  ], 2));
606
616
  }
607
617
  }, De = {
@@ -619,25 +629,25 @@ const D = /* @__PURE__ */ Object.assign({
619
629
  },
620
630
  emits: ["update:modelValue"],
621
631
  setup(e, { emit: r }) {
622
- const i = e, c = r, { hasModelBinding: s } = j(), g = C({
632
+ const i = e, c = r, { hasModelBinding: s } = O(), g = C({
623
633
  get: () => i.modelValue,
624
634
  set: (u) => c("update:modelValue", u)
625
- }), f = C(() => [
635
+ }), v = C(() => [
626
636
  "rvc-textarea",
627
637
  `rvc-textarea-${i.size}`
628
638
  ]);
629
- return (u, a) => h(s) ? M((t(), l("textarea", {
639
+ return (u, n) => h(s) ? j((a(), l("textarea", {
630
640
  key: 0,
631
- "onUpdate:modelValue": a[0] || (a[0] = (n) => g.value = n),
632
- class: p(f.value)
641
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => g.value = t),
642
+ class: p(v.value)
633
643
  }, null, 2)), [
634
644
  [R, g.value]
635
- ]) : (t(), l("textarea", {
645
+ ]) : (a(), l("textarea", {
636
646
  key: 1,
637
- class: p(f.value)
647
+ class: p(v.value)
638
648
  }, null, 2));
639
649
  }
640
- }, we = { class: "rvc-radio" }, Se = ["id"], Ve = { key: 2 }, Be = ["for"], He = /* @__PURE__ */ Object.assign({
650
+ }, xe = { class: "rvc-radio" }, Se = ["id"], Ve = { key: 2 }, Be = ["for"], He = /* @__PURE__ */ Object.assign({
641
651
  inheritAttrs: !1
642
652
  }, {
643
653
  __name: "Radio",
@@ -659,23 +669,23 @@ const D = /* @__PURE__ */ Object.assign({
659
669
  setup(e, { emit: r }) {
660
670
  const i = e, c = r, s = C({
661
671
  get: () => i.modelValue,
662
- set: (a) => c("update:modelValue", a)
663
- }), { hasModelBinding: g } = j(), u = {
672
+ set: (n) => c("update:modelValue", n)
673
+ }), { hasModelBinding: g } = O(), u = {
664
674
  ...F(),
665
675
  id: i.id,
666
676
  type: "radio",
667
677
  class: "absolute opacity-0 inset-0 cursor-pointer peer/radio"
668
678
  };
669
- return (a, n) => (t(), l("div", we, [
670
- h(g) ? M((t(), l("input", b({ key: 0 }, u, {
679
+ return (n, t) => (a(), l("div", xe, [
680
+ h(g) ? j((a(), l("input", b({ key: 0 }, u, {
671
681
  id: e.id,
672
- "onUpdate:modelValue": n[0] || (n[0] = (d) => s.value = d)
682
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => s.value = d)
673
683
  }), null, 16, Se)), [
674
684
  [N, s.value]
675
- ]) : (t(), l("input", P(b({ key: 1 }, u)), null, 16)),
676
- n[1] || (n[1] = o("span", { class: "rvc-radio-input peer-focus/radio:rvc-focus" }, null, -1)),
677
- a.$slots.default || e.label ? (t(), l("span", Ve, [
678
- v(a.$slots, "default", {}, () => [
685
+ ]) : (a(), l("input", P(b({ key: 1 }, u)), null, 16)),
686
+ t[1] || (t[1] = o("span", { class: "rvc-radio-input peer-focus/radio:rvc-focus" }, null, -1)),
687
+ n.$slots.default || e.label ? (a(), l("span", Ve, [
688
+ f(n.$slots, "default", {}, () => [
679
689
  o("label", { for: e.id }, m(e.label), 9, Be)
680
690
  ])
681
691
  ])) : $("", !0)
@@ -702,42 +712,42 @@ const D = /* @__PURE__ */ Object.assign({
702
712
  emits: ["update:modelValue", "tabs:change"],
703
713
  setup(e, { emit: r }) {
704
714
  const i = e, c = r, s = () => {
705
- const a = i.tabs.findIndex((n) => n.active);
706
- return a >= 0 ? a : 0;
715
+ const n = i.tabs.findIndex((t) => t.active);
716
+ return n >= 0 ? n : 0;
707
717
  }, g = C({
708
718
  get: () => i.modelValue ?? s(),
709
- set: (a) => {
710
- const n = i.tabs[a];
711
- c("update:modelValue", a), c("tabs:change", n);
719
+ set: (n) => {
720
+ const t = i.tabs[n];
721
+ c("update:modelValue", n), c("tabs:change", t);
712
722
  }
713
- }), f = (a) => {
714
- const n = +a.target.value;
715
- g.value = n;
716
- const d = i.tabs[n];
723
+ }), v = (n) => {
724
+ const t = +n.target.value;
725
+ g.value = t;
726
+ const d = i.tabs[t];
717
727
  d != null && d.selectEvent && d.selectEvent();
718
- }, u = (a) => {
728
+ }, u = (n) => {
719
729
  const {
720
- active: n,
730
+ active: t,
721
731
  as: d,
722
732
  bindAs: y,
723
- selectEvent: w,
724
- name: O,
725
- ...T
726
- } = a;
727
- return T;
733
+ selectEvent: k,
734
+ name: T,
735
+ ...L
736
+ } = n;
737
+ return L;
728
738
  };
729
- return (a, n) => (t(), l(k, null, [
739
+ return (n, t) => (a(), l(w, null, [
730
740
  o("div", {
731
741
  class: p(["rvc-tabs hidden md:flex", { "rvc-tabs-buttons": e.tabStyle === "buttons" }])
732
742
  }, [
733
743
  o("nav", Ce, [
734
- (t(!0), l(k, null, S(e.tabs, (d, y) => (t(), x(B(d.as ? d.as : "button"), b({ ref_for: !0 }, u(d), {
744
+ (a(!0), l(w, null, S(e.tabs, (d, y) => (a(), x(B(d.as ? d.as : "button"), b({ ref_for: !0 }, u(d), {
735
745
  key: `${y}-tab-item`,
736
746
  as: d.bindAs ? d.bindAs : void 0,
737
747
  class: ["rvc-tab", { "rvc-tab-active": g.value === y }],
738
- onClick: (w) => g.value = y
748
+ onClick: (k) => g.value = y
739
749
  }), {
740
- default: L(() => [
750
+ default: M(() => [
741
751
  A(m(d.name), 1)
742
752
  ]),
743
753
  _: 2
@@ -747,10 +757,10 @@ const D = /* @__PURE__ */ Object.assign({
747
757
  o("div", Ae, [
748
758
  V(D, {
749
759
  value: g.value,
750
- onChange: f
760
+ onChange: v
751
761
  }, {
752
- default: L(() => [
753
- (t(!0), l(k, null, S(e.tabs, (d, y) => (t(), l("option", {
762
+ default: M(() => [
763
+ (a(!0), l(w, null, S(e.tabs, (d, y) => (a(), l("option", {
754
764
  key: `${y}-tab-item-select-option`,
755
765
  value: y,
756
766
  selected: g.value === y
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.0.0-rc.4",
3
+ "version": "2.0.0-rc.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"