@nexxtmove/ui 0.1.57 → 0.1.58

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/dist/index.d.ts CHANGED
@@ -45,7 +45,11 @@ declare const __VLS_component_12: DefineComponent<NexxtStepperHeaderProps, {}, {
45
45
  "onUpdate:currentStep"?: ((...args: any[]) => any) | undefined;
46
46
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
47
47
 
48
- declare const __VLS_component_13: DefineComponent<NexxtTabbedContent_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtTabbedContent_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
+ declare const __VLS_component_13: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
49
+ "update:modelValue": (value: string) => any;
50
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
51
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
52
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
53
 
50
54
  declare const __VLS_component_14: DefineComponent<NexxtTooltip_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtTooltip_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
51
55
 
@@ -265,6 +269,11 @@ declare type __VLS_Props = {
265
269
  };
266
270
 
267
271
  declare type __VLS_Props_10 = {
272
+ event: TimelineEvent;
273
+ splitView?: boolean;
274
+ };
275
+
276
+ declare type __VLS_Props_11 = {
268
277
  phase: TimelinePhase;
269
278
  /** Index within the filtered phases array (used to determine phase direction/date). */
270
279
  index: number;
@@ -286,12 +295,9 @@ declare type __VLS_Props_6 = NexxtModalProps;
286
295
 
287
296
  declare type __VLS_Props_7 = NexxtPaginationProps;
288
297
 
289
- declare type __VLS_Props_8 = NexxtTabs_2;
298
+ declare type __VLS_Props_8 = NexxtTabbedContent_2;
290
299
 
291
- declare type __VLS_Props_9 = {
292
- event: TimelineEvent;
293
- splitView?: boolean;
294
- };
300
+ declare type __VLS_Props_9 = NexxtTabs_2;
295
301
 
296
302
  declare type __VLS_PublicProps = {
297
303
  modelValue?: Date | null;
@@ -318,9 +324,13 @@ declare type __VLS_PublicProps_6 = {
318
324
  } & __VLS_Props_7;
319
325
 
320
326
  declare type __VLS_PublicProps_7 = {
321
- modelValue?: typeof selected['value'];
327
+ modelValue?: string;
322
328
  } & __VLS_Props_8;
323
329
 
330
+ declare type __VLS_PublicProps_8 = {
331
+ modelValue?: typeof selected['value'];
332
+ } & __VLS_Props_9;
333
+
324
334
  declare function __VLS_template(): {
325
335
  attrs: Partial<{}>;
326
336
  slots: {
@@ -1215,9 +1225,9 @@ declare interface NexxtTableProps<TKey extends string = string, TRow extends Rec
1215
1225
  loading?: boolean;
1216
1226
  }
1217
1227
 
1218
- export declare const NexxtTabs: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1228
+ export declare const NexxtTabs: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1219
1229
  "update:modelValue": (value: string) => any;
1220
- }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
1230
+ }, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
1221
1231
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1222
1232
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1223
1233
  containerRef: HTMLDivElement;
@@ -1228,11 +1238,11 @@ declare interface NexxtTabs_2 {
1228
1238
  tablistLabel?: string;
1229
1239
  }
1230
1240
 
1231
- export declare const NexxtTimelineEvent: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {
1241
+ export declare const NexxtTimelineEvent: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
1232
1242
  splitView: boolean;
1233
1243
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1234
1244
 
1235
- export declare const NexxtTimelinePhaseblock: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1245
+ export declare const NexxtTimelinePhaseblock: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1236
1246
 
1237
1247
  export declare const NexxtTooltip: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1238
1248
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as K, computed as U, inject as rx, createElementBlock as s, openBlock as R, mergeProps as Ni, unref as z, createBlock as D, normalizeClass as L, toDisplayString as k, createCommentVNode as E, createVNode as o, renderSlot as q, Transition as B, withCtx as F, createElementVNode as I, normalizeProps as Ei, guardReactiveProps as Ai, onMounted as xi, Fragment as r, renderList as Q, nextTick as ji, mergeModels as f, useModel as P, watch as Fi, watchEffect as Jx, withDirectives as kx, vModelCheckbox as dx, createTextVNode as H, vModelDynamic as Xx, onUnmounted as hi, withKeys as ai, TransitionGroup as xx, withModifiers as ei, resolveDynamicComponent as Tx, normalizeStyle as Ui, createSlots as zx, createStaticVNode as Pi } from "vue";
1
+ import { defineComponent as h, ref as K, computed as U, inject as rx, createElementBlock as s, openBlock as R, mergeProps as ti, unref as z, createBlock as D, normalizeClass as L, toDisplayString as k, createCommentVNode as E, createVNode as o, renderSlot as q, Transition as B, withCtx as F, createElementVNode as I, normalizeProps as Ei, guardReactiveProps as Ai, onMounted as xi, Fragment as r, renderList as Q, nextTick as ji, mergeModels as f, useModel as P, watch as ei, watchEffect as Jx, withDirectives as kx, vModelCheckbox as dx, createTextVNode as H, vModelDynamic as Xx, onUnmounted as hi, withKeys as ai, TransitionGroup as xx, withModifiers as Ui, resolveDynamicComponent as Tx, normalizeStyle as ui, createSlots as zx, createStaticVNode as Pi } from "vue";
2
2
  import { DialogRoot as Qx, DialogPortal as Vx, DialogOverlay as gx, DialogContent as Cx, DialogTitle as bx, DialogDescription as Bx, DialogClose as Mx, PaginationRoot as Px, PaginationList as fx, PaginationFirst as vx, PaginationPrev as $x, PaginationListItem as _x, PaginationEllipsis as iM, PaginationNext as xM, PaginationLast as MM, TooltipProvider as mM, TooltipRoot as cM, TooltipTrigger as lM, TooltipPortal as aM, TooltipContent as ZM } from "reka-ui";
3
3
  const RM = String.raw, sM = (() => {
4
4
  try {
@@ -490,7 +490,7 @@ const TM = /* @__PURE__ */ Symbol(), zM = ["batched", "trend", "plugins", "anima
490
490
  const m = K();
491
491
  x({ el: m });
492
492
  const c = M, l = U(() => new Intl.NumberFormat(i.locales, i.format)), a = U(() => eM(i.value, l.value, i.prefix, i.suffix)), Z = void 0, G = rx(TM, void 0);
493
- return G?.(m, a), (Y, y) => (R(), s("number-flow-vue", Ni({
493
+ return G?.(m, a), (Y, y) => (R(), s("number-flow-vue", ti({
494
494
  ref_key: "el",
495
495
  ref: m
496
496
  }, Y.$attrs, {
@@ -659,12 +659,12 @@ let wM = {};
659
659
  function ni() {
660
660
  return wM;
661
661
  }
662
- function ui(i, x) {
662
+ function Ni(i, x) {
663
663
  const M = ni(), m = x?.weekStartsOn ?? x?.locale?.options?.weekStartsOn ?? M.weekStartsOn ?? M.locale?.options?.weekStartsOn ?? 0, c = V(i, x?.in), l = c.getDay(), a = (l < m ? 7 : 0) + l - m;
664
664
  return c.setDate(c.getDate() - a), c.setHours(0, 0, 0, 0), c;
665
665
  }
666
666
  function Si(i, x) {
667
- return ui(i, { ...x, weekStartsOn: 1 });
667
+ return Ni(i, { ...x, weekStartsOn: 1 });
668
668
  }
669
669
  function Kx(i, x) {
670
670
  const M = V(i, x?.in), m = M.getFullYear(), c = v(M, 0);
@@ -1202,17 +1202,17 @@ function um(i, x) {
1202
1202
  function Dx(i, x) {
1203
1203
  const M = V(i, x?.in), m = M.getFullYear(), c = ni(), l = x?.firstWeekContainsDate ?? x?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, a = v(x?.in || i, 0);
1204
1204
  a.setFullYear(m + 1, 0, l), a.setHours(0, 0, 0, 0);
1205
- const Z = ui(a, x), G = v(x?.in || i, 0);
1205
+ const Z = Ni(a, x), G = v(x?.in || i, 0);
1206
1206
  G.setFullYear(m, 0, l), G.setHours(0, 0, 0, 0);
1207
- const Y = ui(G, x);
1207
+ const Y = Ni(G, x);
1208
1208
  return +M >= +Z ? m + 1 : +M >= +Y ? m : m - 1;
1209
1209
  }
1210
1210
  function Nm(i, x) {
1211
1211
  const M = ni(), m = x?.firstWeekContainsDate ?? x?.locale?.options?.firstWeekContainsDate ?? M.firstWeekContainsDate ?? M.locale?.options?.firstWeekContainsDate ?? 1, c = Dx(i, x), l = v(x?.in || i, 0);
1212
- return l.setFullYear(c, 0, m), l.setHours(0, 0, 0, 0), ui(l, x);
1212
+ return l.setFullYear(c, 0, m), l.setHours(0, 0, 0, 0), Ni(l, x);
1213
1213
  }
1214
1214
  function tm(i, x) {
1215
- const M = V(i, x?.in), m = +ui(M, x) - +Nm(M, x);
1215
+ const M = V(i, x?.in), m = +Ni(M, x) - +Nm(M, x);
1216
1216
  return Math.round(m / wx) + 1;
1217
1217
  }
1218
1218
  function O(i, x) {
@@ -2914,11 +2914,11 @@ const cc = {
2914
2914
  const M = P(i, "modelValue"), m = x, c = K(
2915
2915
  M.value ? d(new Date(M.value), i.timezone) : d(/* @__PURE__ */ new Date(), i.timezone)
2916
2916
  ), l = K("days"), a = K(null), Z = K("fade");
2917
- Fi(M, (W) => {
2917
+ ei(M, (W) => {
2918
2918
  W && (c.value = d(new Date(W), i.timezone));
2919
2919
  });
2920
2920
  const G = U(() => {
2921
- const W = ui(ki(c.value), { weekStartsOn: 1 }), A = dM(Qi(c.value), { weekStartsOn: 1 });
2921
+ const W = Ni(ki(c.value), { weekStartsOn: 1 }), A = dM(Qi(c.value), { weekStartsOn: 1 });
2922
2922
  return qM({ start: W, end: A });
2923
2923
  }), Y = (W) => {
2924
2924
  const A = d(W, i.timezone);
@@ -2994,7 +2994,7 @@ const cc = {
2994
2994
  I("div", {
2995
2995
  class: L(["relative", l.value === "days" && "overflow-hidden"])
2996
2996
  }, [
2997
- o(B, Ni(p.value, {
2997
+ o(B, ti(p.value, {
2998
2998
  mode: Z.value === "fade" ? "out-in" : void 0
2999
2999
  }), {
3000
3000
  default: F(() => [
@@ -3075,7 +3075,7 @@ const cc = {
3075
3075
  }), (m, c) => (R(), s("label", {
3076
3076
  class: L(["inline-flex cursor-pointer", i.disabled ? "cursor-not-allowed opacity-50" : ""])
3077
3077
  }, [
3078
- kx(I("input", Ni(m.$attrs, {
3078
+ kx(I("input", ti(m.$attrs, {
3079
3079
  ref_key: "inputRef",
3080
3080
  ref: M,
3081
3081
  type: "checkbox",
@@ -3194,7 +3194,7 @@ const cc = {
3194
3194
  i.leftIcon ? (R(), s("span", Il, [
3195
3195
  o(w, { name: i.leftIcon }, null, 8, ["name"])
3196
3196
  ])) : E("", !0),
3197
- kx(I("input", Ni({
3197
+ kx(I("input", ti({
3198
3198
  id: z(M),
3199
3199
  "onUpdate:modelValue": l[0] || (l[0] = (a) => m.value = a),
3200
3200
  placeholder: i.placeholder
@@ -3373,7 +3373,7 @@ const cc = {
3373
3373
  y.value && g.value ? (R(), s("div", {
3374
3374
  key: 0,
3375
3375
  class: "absolute top-full left-0 z-10 mt-1 w-full rounded-lg border border-gray-200 bg-white",
3376
- onMousedown: T[3] || (T[3] = ei(() => {
3376
+ onMousedown: T[3] || (T[3] = Ui(() => {
3377
3377
  }, ["prevent"]))
3378
3378
  }, [
3379
3379
  I("ul", el, [
@@ -3519,7 +3519,7 @@ const cc = {
3519
3519
  icon: c = "tag",
3520
3520
  placeholder: l = "Zoeken..."
3521
3521
  } = x, a = P(i, "modelValue"), Z = K(!1), G = K(null), Y = K(null);
3522
- Fi(Z, async (t) => {
3522
+ ei(Z, async (t) => {
3523
3523
  t && (await ji(), G.value?.focus());
3524
3524
  });
3525
3525
  const y = (t) => {
@@ -3925,7 +3925,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
3925
3925
  Object.entries(M).filter(([J]) => !m.has(J))
3926
3926
  )
3927
3927
  })), l = K(!1), a = K(null), Z = K(null), G = K(null);
3928
- Fi(l, async (N) => {
3928
+ ei(l, async (N) => {
3929
3929
  N ? (await ji(), G.value?.focus()) : (await ji(), Z.value?.querySelector(
3930
3930
  'button, input, [tabindex]:not([tabindex="-1"])'
3931
3931
  )?.focus());
@@ -3996,7 +3996,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
3996
3996
  tabindex: "-1",
3997
3997
  class: L(["absolute z-50 outline-none", e.value])
3998
3998
  }, [
3999
- o(cl, Ni({
3999
+ o(cl, ti({
4000
4000
  modelValue: x.value,
4001
4001
  "onUpdate:modelValue": J[1] || (J[1] = (u) => x.value = u)
4002
4002
  }, c.value, { onSelect: Y }), null, 16, ["modelValue"])
@@ -4060,7 +4060,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4060
4060
  "stroke-width": i.thickness,
4061
4061
  "stroke-linecap": "butt",
4062
4062
  "stroke-dasharray": `${x.value ? l.value : 0} ${m.value}`,
4063
- style: Ui({ transition: `stroke-dasharray ${i.duration}ms ease-out` })
4063
+ style: ui({ transition: `stroke-dasharray ${i.duration}ms ease-out` })
4064
4064
  }, null, 12, Ql)
4065
4065
  ], 8, dl),
4066
4066
  (R(), s("foreignObject", {
@@ -4612,7 +4612,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4612
4612
  }, [
4613
4613
  I("div", {
4614
4614
  class: "progress-bar-progress h-full transition-all duration-500 ease-out",
4615
- style: Ui({ width: `${m.value}%` }),
4615
+ style: ui({ width: `${m.value}%` }),
4616
4616
  "aria-hidden": !0
4617
4617
  }, null, 4)
4618
4618
  ], 8, Ra),
@@ -4635,7 +4635,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4635
4635
  onClick: (Y) => G < x.value && l.$emit("update:currentStep", G),
4636
4636
  onKeydown: [
4637
4637
  ai((Y) => G < x.value && l.$emit("update:currentStep", G), ["enter"]),
4638
- ai(ei((Y) => G < x.value && l.$emit("update:currentStep", G), ["prevent"]), ["space"])
4638
+ ai(Ui((Y) => G < x.value && l.$emit("update:currentStep", G), ["prevent"]), ["space"])
4639
4639
  ]
4640
4640
  }, k(Z), 43, Ya))), 128))
4641
4641
  ])) : E("", !0)
@@ -4716,7 +4716,7 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4716
4716
  }
4717
4717
  ]), 1032, ["image", "image-alt"]));
4718
4718
  }
4719
- }), ta = { class: "animate-pulse rounded bg-gray-200" }, ti = /* @__PURE__ */ h({
4719
+ }), ta = { class: "animate-pulse rounded bg-gray-200" }, Fi = /* @__PURE__ */ h({
4720
4720
  name: "NexxtSkeleton",
4721
4721
  __name: "Skeleton",
4722
4722
  setup(i) {
@@ -4734,14 +4734,14 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4734
4734
  role: "status",
4735
4735
  "aria-label": i.ariaLabel
4736
4736
  }, [
4737
- o(ti, { class: "h-40 w-full rounded-tl-lg rounded-tr-lg rounded-b-none" }),
4737
+ o(Fi, { class: "h-40 w-full rounded-tl-lg rounded-tr-lg rounded-b-none" }),
4738
4738
  I("div", Ja, [
4739
4739
  I("div", ka, [
4740
- o(ti, { class: "h-4 w-24" }),
4741
- o(ti, { class: "h-4 w-4" }),
4742
- o(ti, { class: "h-4 w-28" })
4740
+ o(Fi, { class: "h-4 w-24" }),
4741
+ o(Fi, { class: "h-4 w-4" }),
4742
+ o(Fi, { class: "h-4 w-28" })
4743
4743
  ]),
4744
- o(ti, { class: "h-4 w-36" })
4744
+ o(Fi, { class: "h-4 w-36" })
4745
4745
  ])
4746
4746
  ], 8, Fa));
4747
4747
  }
@@ -4868,8 +4868,8 @@ const PZ = /* @__PURE__ */ hl(nl, [["render", Wl]]), Dl = {
4868
4868
  onBlur: Z,
4869
4869
  onClick: Y[0] || (Y[0] = (y) => M("click")),
4870
4870
  onKeydown: [
4871
- Y[1] || (Y[1] = ai(ei((y) => M("click"), ["prevent"]), ["enter"])),
4872
- Y[2] || (Y[2] = ai(ei((y) => M("click"), ["prevent"]), ["space"]))
4871
+ Y[1] || (Y[1] = ai(Ui((y) => M("click"), ["prevent"]), ["enter"])),
4872
+ Y[2] || (Y[2] = ai(Ui((y) => M("click"), ["prevent"]), ["space"]))
4873
4873
  ]
4874
4874
  }, [
4875
4875
  i.mediaType === "image" ? (R(), s("picture", Ka, [
@@ -5013,7 +5013,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5013
5013
  ]),
5014
5014
  _: 1
5015
5015
  })) : E("", !0),
5016
- o(Sa, Ni({ class: "ml-auto" }, l.value, { "aria-hidden": "true" }), null, 16)
5016
+ o(Sa, ti({ class: "ml-auto" }, l.value, { "aria-hidden": "true" }), null, 16)
5017
5017
  ]),
5018
5018
  I("div", va, [
5019
5019
  (R(), D(Tx(c.value), {
@@ -5164,7 +5164,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5164
5164
  else return;
5165
5165
  y.preventDefault(), M.value = x.tabs[e], c.value[e]?.focus();
5166
5166
  };
5167
- return Fi(M, async () => await G()), xi(async () => {
5167
+ return ei(M, async () => await G()), xi(async () => {
5168
5168
  await document.fonts.ready, await G(), await ji(), Z.value = !0;
5169
5169
  }), (y, j) => (R(), s("div", {
5170
5170
  ref_key: "containerRef",
@@ -5176,7 +5176,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5176
5176
  I("div", {
5177
5177
  "aria-hidden": "true",
5178
5178
  class: L(["absolute h-9 rounded-full bg-cornflower-blue-500", Z.value ? "transition-all duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : ""]),
5179
- style: Ui(l.value)
5179
+ style: ui(l.value)
5180
5180
  }, null, 6),
5181
5181
  (R(!0), s(r, null, Q(i.tabs, (e, t) => (R(), s("button", {
5182
5182
  key: e,
@@ -5195,7 +5195,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5195
5195
  "pointer-events-none absolute inset-0 z-20 flex",
5196
5196
  Z.value ? "transition-[clip-path] duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : ""
5197
5197
  ]),
5198
- style: Ui({ clipPath: a.value })
5198
+ style: ui({ clipPath: a.value })
5199
5199
  }, [
5200
5200
  (R(!0), s(r, null, Q(i.tabs, (e) => (R(), s("span", {
5201
5201
  key: e,
@@ -5207,14 +5207,24 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5207
5207
  }), LZ = { class: "flex flex-col items-center" }, EZ = { class: "relative w-full overflow-hidden" }, AZ = ["aria-labelledby"], YR = /* @__PURE__ */ h({
5208
5208
  name: "NexxtTabbedContent",
5209
5209
  __name: "TabbedContent",
5210
- props: {
5210
+ props: /* @__PURE__ */ f({
5211
5211
  tabs: {},
5212
5212
  animated: { type: Boolean },
5213
5213
  label: {}
5214
- },
5214
+ }, {
5215
+ modelValue: { default: "" },
5216
+ modelModifiers: {}
5217
+ }),
5218
+ emits: ["update:modelValue"],
5215
5219
  setup(i) {
5216
- const x = i, M = K(x.tabs[0] ?? ""), m = K("forward");
5217
- Fi(M, (Z, G) => {
5220
+ const x = i, M = P(i, "modelValue"), m = K("forward");
5221
+ ei(
5222
+ () => x.tabs,
5223
+ (Z) => {
5224
+ !M.value && Z?.length > 0 && (M.value = Z[0]);
5225
+ },
5226
+ { immediate: !0 }
5227
+ ), ei(M, (Z, G) => {
5218
5228
  m.value = x.tabs.indexOf(Z) > x.tabs.indexOf(G) ? "forward" : "backward";
5219
5229
  });
5220
5230
  const c = (Z) => Z.toLowerCase().replace(/\s+/g, "-"), l = (Z) => `tab-${c(Z)}`, a = U(
@@ -5327,7 +5337,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5327
5337
  ])) : E("", !0),
5328
5338
  I("div", {
5329
5339
  class: "grid rounded-md bg-gray-50",
5330
- style: Ui({ gridTemplateColumns: J.value }),
5340
+ style: ui({ gridTemplateColumns: J.value }),
5331
5341
  role: "row",
5332
5342
  "aria-rowindex": "1"
5333
5343
  }, [
@@ -5350,8 +5360,8 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5350
5360
  tabindex: A.sortable ? 0 : void 0,
5351
5361
  onClick: (S) => u(A),
5352
5362
  onKeydown: [
5353
- ai(ei((S) => u(A), ["prevent"]), ["enter"]),
5354
- ai(ei((S) => u(A), ["prevent"]), ["space"])
5363
+ ai(Ui((S) => u(A), ["prevent"]), ["enter"]),
5364
+ ai(Ui((S) => u(A), ["prevent"]), ["space"])
5355
5365
  ]
5356
5366
  }, [
5357
5367
  I("span", {
@@ -5379,7 +5389,7 @@ const Pa = { render: Ba }, fa = { class: "flex items-center justify-end self-str
5379
5389
  },
5380
5390
  g(T)
5381
5391
  ]]),
5382
- style: Ui({ gridTemplateColumns: J.value }),
5392
+ style: ui({ gridTemplateColumns: J.value }),
5383
5393
  role: "row",
5384
5394
  "aria-rowindex": T + 2,
5385
5395
  "aria-selected": i.selectable ? j(A) : void 0,
@@ -5702,7 +5712,7 @@ export {
5702
5712
  Ia as NexxtProgressBar,
5703
5713
  cR as NexxtPropertyCard,
5704
5714
  ja as NexxtPropertyListing,
5705
- ti as NexxtSkeleton,
5715
+ Fi as NexxtSkeleton,
5706
5716
  lR as NexxtSkeletonPropertyCard,
5707
5717
  Sa as NexxtSocialIcons,
5708
5718
  aR as NexxtSocialMediaCustomTemplate,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nexxtmove/ui",
3
3
  "type": "module",
4
- "version": "0.1.57",
4
+ "version": "0.1.58",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -14,9 +14,19 @@ defineOptions({
14
14
 
15
15
  const props = defineProps<NexxtTabbedContent>()
16
16
 
17
- const selected = ref(props.tabs[0] ?? '')
17
+ const selected = defineModel<string>({ default: '' })
18
18
  const direction = ref<'forward' | 'backward'>('forward')
19
19
 
20
+ watch(
21
+ () => props.tabs,
22
+ (newTabs) => {
23
+ if (!selected.value && newTabs?.length > 0) {
24
+ selected.value = newTabs[0]
25
+ }
26
+ },
27
+ { immediate: true },
28
+ )
29
+
20
30
  watch(selected, (next, prev) => {
21
31
  direction.value = props.tabs.indexOf(next) > props.tabs.indexOf(prev) ? 'forward' : 'backward'
22
32
  })