@nexxtmove/ui 0.1.33 → 0.1.34

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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as D, ref as b, computed as Q, watch as OA, createBlock as M, openBlock as o, TransitionGroup as de, withCtx as x, createElementBlock as I, Fragment as Y, renderList as G, createVNode as u, Transition as $, toDisplayString as p, normalizeClass as g, createCommentVNode as B, renderSlot as J, createElementVNode as d, normalizeProps as IA, guardReactiveProps as dA, onMounted as mA, unref as O, nextTick as vA, mergeModels as rA, useModel as gA, mergeProps as cA, watchEffect as Ae, withDirectives as se, vModelCheckbox as ge, createTextVNode as H, onUnmounted as ee, normalizeStyle as xA, withKeys as iA, withModifiers as oA, createStaticVNode as NA, resolveDynamicComponent as ce, createSlots as ue } from "vue";
2
- import { PaginationRoot as le, PaginationList as ze, PaginationFirst as Qe, PaginationPrev as Be, PaginationListItem as fe, PaginationEllipsis as pe, PaginationNext as ve, PaginationLast as xe, TooltipProvider as Te, TooltipRoot as Fe, TooltipTrigger as Xe, TooltipPortal as De, TooltipContent as Ce } from "reka-ui";
1
+ import { defineComponent as D, ref as b, computed as Q, watch as OA, createBlock as M, openBlock as o, TransitionGroup as de, withCtx as x, createElementBlock as I, Fragment as Y, renderList as G, createVNode as u, Transition as $, toDisplayString as p, normalizeClass as g, createCommentVNode as f, renderSlot as J, createElementVNode as d, normalizeProps as IA, guardReactiveProps as dA, onMounted as mA, unref as O, nextTick as vA, mergeModels as rA, useModel as gA, mergeProps as cA, watchEffect as Ae, withDirectives as se, vModelCheckbox as ge, createTextVNode as H, onUnmounted as ee, normalizeStyle as xA, withKeys as iA, withModifiers as oA, createStaticVNode as NA, resolveDynamicComponent as ce, createSlots as ue } from "vue";
2
+ import { PaginationRoot as le, PaginationList as ze, PaginationFirst as Qe, PaginationPrev as fe, PaginationListItem as Be, PaginationEllipsis as pe, PaginationNext as ve, PaginationLast as xe, TooltipProvider as Te, TooltipRoot as Fe, TooltipTrigger as Xe, TooltipPortal as De, TooltipContent as Ce } from "reka-ui";
3
3
  const Pe = /* @__PURE__ */ D({
4
4
  name: "NexxtAnimatedNumber",
5
5
  __name: "AnimatedNumber",
@@ -123,7 +123,7 @@ const Pe = /* @__PURE__ */ D({
123
123
  key: 0,
124
124
  name: A.icon,
125
125
  class: g(["transition-all duration-200", { "order-last": A.iconRight, "opacity-0": A.loading }])
126
- }, null, 8, ["name", "class"])) : B("", !0),
126
+ }, null, 8, ["name", "class"])) : f("", !0),
127
127
  e.$slots.default ? (o(), I("span", {
128
128
  key: 1,
129
129
  class: g([
@@ -134,7 +134,7 @@ const Pe = /* @__PURE__ */ D({
134
134
  ])
135
135
  }, [
136
136
  J(e.$slots, "default")
137
- ], 2)) : B("", !0),
137
+ ], 2)) : f("", !0),
138
138
  u($, {
139
139
  "enter-active-class": "transition-opacity duration-200",
140
140
  "enter-from-class": "opacity-0",
@@ -150,7 +150,7 @@ const Pe = /* @__PURE__ */ D({
150
150
  type: "light",
151
151
  class: "fa-spin absolute text-sm"
152
152
  })
153
- ])) : B("", !0)
153
+ ])) : f("", !0)
154
154
  ]),
155
155
  _: 1
156
156
  })
@@ -562,9 +562,9 @@ function q(A) {
562
562
  const t = a.width, i = t && A.matchPatterns[t] || A.matchPatterns[A.defaultMatchWidth], n = e.match(i);
563
563
  if (!n)
564
564
  return null;
565
- const r = n[0], m = t && A.parsePatterns[t] || A.parsePatterns[A.defaultParseWidth], E = Array.isArray(m) ? na(m, (f) => f.test(r)) : (
565
+ const r = n[0], m = t && A.parsePatterns[t] || A.parsePatterns[A.defaultParseWidth], E = Array.isArray(m) ? na(m, (B) => B.test(r)) : (
566
566
  // [TODO] -- I challenge you to fix the type
567
- ia(m, (f) => f.test(r))
567
+ ia(m, (B) => B.test(r))
568
568
  );
569
569
  let s;
570
570
  s = A.valueCallback ? A.valueCallback(E) : E, s = a.valueCallback ? (
@@ -701,7 +701,7 @@ const ra = /^(\d+)(th|st|nd|rd)?/i, oa = /\d+/i, ma = {
701
701
  parsePatterns: za,
702
702
  defaultParseWidth: "any"
703
703
  })
704
- }, Ba = {
704
+ }, fa = {
705
705
  code: "en-US",
706
706
  formatDistance: Ze,
707
707
  formatLong: We,
@@ -713,7 +713,7 @@ const ra = /^(\d+)(th|st|nd|rd)?/i, oa = /\d+/i, ma = {
713
713
  firstWeekContainsDate: 1
714
714
  }
715
715
  };
716
- function fa(A, e) {
716
+ function Ba(A, e) {
717
717
  const a = U(A, e?.in);
718
718
  return Ue(a, Ye(a)) + 1;
719
719
  }
@@ -988,7 +988,7 @@ const y = {
988
988
  },
989
989
  // Day of year
990
990
  D: function(A, e, a) {
991
- const t = fa(A);
991
+ const t = Ba(A);
992
992
  return e === "Do" ? a.ordinalNumber(t, { unit: "dayOfYear" }) : F(t, e.length);
993
993
  },
994
994
  // Day of week
@@ -1394,27 +1394,27 @@ function ha(A, e, a) {
1394
1394
  }
1395
1395
  const wa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ua = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ma = /^'([^]*?)'?$/, ba = /''/g, Va = /[a-zA-Z]/;
1396
1396
  function tA(A, e, a) {
1397
- const t = uA(), i = a?.locale ?? t.locale ?? Ba, n = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, r = a?.weekStartsOn ?? a?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, m = U(A, a?.in);
1397
+ const t = uA(), i = a?.locale ?? t.locale ?? fa, n = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, r = a?.weekStartsOn ?? a?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, m = U(A, a?.in);
1398
1398
  if (!Ve(m))
1399
1399
  throw new RangeError("Invalid time value");
1400
1400
  let E = e.match(Ua).map((c) => {
1401
- const f = c[0];
1402
- if (f === "p" || f === "P") {
1403
- const l = Fa[f];
1401
+ const B = c[0];
1402
+ if (B === "p" || B === "P") {
1403
+ const l = Fa[B];
1404
1404
  return l(c, i.formatLong);
1405
1405
  }
1406
1406
  return c;
1407
1407
  }).join("").match(wa).map((c) => {
1408
1408
  if (c === "''")
1409
1409
  return { isToken: !1, value: "'" };
1410
- const f = c[0];
1411
- if (f === "'")
1410
+ const B = c[0];
1411
+ if (B === "'")
1412
1412
  return { isToken: !1, value: ka(c) };
1413
- if (bA[f])
1413
+ if (bA[B])
1414
1414
  return { isToken: !0, value: c };
1415
- if (f.match(Va))
1415
+ if (B.match(Va))
1416
1416
  throw new RangeError(
1417
- "Format string contains an unescaped latin alphabet character `" + f + "`"
1417
+ "Format string contains an unescaped latin alphabet character `" + B + "`"
1418
1418
  );
1419
1419
  return { isToken: !1, value: c };
1420
1420
  });
@@ -1426,10 +1426,10 @@ function tA(A, e, a) {
1426
1426
  };
1427
1427
  return E.map((c) => {
1428
1428
  if (!c.isToken) return c.value;
1429
- const f = c.value;
1430
- (!a?.useAdditionalWeekYearTokens && Oa(f) || !a?.useAdditionalDayOfYearTokens && Pa(f)) && Na(f, e, String(A));
1431
- const l = bA[f[0]];
1432
- return l(m, f, i.localize, s);
1429
+ const B = c.value;
1430
+ (!a?.useAdditionalWeekYearTokens && Oa(B) || !a?.useAdditionalDayOfYearTokens && Pa(B)) && Na(B, e, String(A));
1431
+ const l = bA[B[0]];
1432
+ return l(m, B, i.localize, s);
1433
1433
  }).join("");
1434
1434
  }
1435
1435
  function ka(A) {
@@ -1525,7 +1525,7 @@ function hA(A, e, a, t, i, n, r) {
1525
1525
  const m = /* @__PURE__ */ new Date(0);
1526
1526
  return m.setUTCFullYear(A, e, a), m.setUTCHours(t, i, n, r), m;
1527
1527
  }
1528
- const GA = 36e5, Ja = 6e4, BA = {
1528
+ const GA = 36e5, Ja = 6e4, fA = {
1529
1529
  timezoneZ: /^(Z)$/,
1530
1530
  timezoneHH: /^([+-]\d{2})$/,
1531
1531
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -1533,13 +1533,13 @@ const GA = 36e5, Ja = 6e4, BA = {
1533
1533
  function wA(A, e, a) {
1534
1534
  if (!A)
1535
1535
  return 0;
1536
- let t = BA.timezoneZ.exec(A);
1536
+ let t = fA.timezoneZ.exec(A);
1537
1537
  if (t)
1538
1538
  return 0;
1539
1539
  let i, n;
1540
- if (t = BA.timezoneHH.exec(A), t)
1540
+ if (t = fA.timezoneHH.exec(A), t)
1541
1541
  return i = parseInt(t[1], 10), JA(i) ? -(i * GA) : NaN;
1542
- if (t = BA.timezoneHHMM.exec(A), t) {
1542
+ if (t = fA.timezoneHHMM.exec(A), t) {
1543
1543
  i = parseInt(t[2], 10);
1544
1544
  const r = parseInt(t[3], 10);
1545
1545
  return JA(i, r) ? (n = Math.abs(i) * GA + r * Ja, t[1] === "+" ? -n : n) : NaN;
@@ -1586,7 +1586,7 @@ function WA(A) {
1586
1586
  const e = new Date(Date.UTC(A.getFullYear(), A.getMonth(), A.getDate(), A.getHours(), A.getMinutes(), A.getSeconds(), A.getMilliseconds()));
1587
1587
  return e.setUTCFullYear(A.getFullYear()), +A - +e;
1588
1588
  }
1589
- const me = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, fA = 36e5, qA = 6e4, ya = 2, Z = {
1589
+ const me = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, BA = 36e5, qA = 6e4, ya = 2, Z = {
1590
1590
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
1591
1591
  datePattern: /^([0-9W+-]+)(.*)/,
1592
1592
  // year tokens
@@ -1714,13 +1714,13 @@ function $a(A, e) {
1714
1714
  function _a(A) {
1715
1715
  let e, a, t = Z.HH.exec(A);
1716
1716
  if (t)
1717
- return e = parseFloat(t[1].replace(",", ".")), pA(e) ? e % 24 * fA : NaN;
1717
+ return e = parseFloat(t[1].replace(",", ".")), pA(e) ? e % 24 * BA : NaN;
1718
1718
  if (t = Z.HHMM.exec(A), t)
1719
- return e = parseInt(t[1], 10), a = parseFloat(t[2].replace(",", ".")), pA(e, a) ? e % 24 * fA + a * qA : NaN;
1719
+ return e = parseInt(t[1], 10), a = parseFloat(t[2].replace(",", ".")), pA(e, a) ? e % 24 * BA + a * qA : NaN;
1720
1720
  if (t = Z.HHMMSS.exec(A), t) {
1721
1721
  e = parseInt(t[1], 10), a = parseInt(t[2], 10);
1722
1722
  const i = parseFloat(t[3].replace(",", "."));
1723
- return pA(e, a, i) ? e % 24 * fA + a * qA + i * 1e3 : NaN;
1723
+ return pA(e, a, i) ? e % 24 * BA + a * qA + i * 1e3 : NaN;
1724
1724
  }
1725
1725
  return null;
1726
1726
  }
@@ -1977,7 +1977,7 @@ const it = {
1977
1977
  values: lt,
1978
1978
  defaultWidth: "wide"
1979
1979
  })
1980
- }, Bt = /^(\d+)e?/i, ft = /\d+/i, pt = {
1980
+ }, ft = /^(\d+)e?/i, Bt = /\d+/i, pt = {
1981
1981
  narrow: /^([vn]\.? ?C\.?)/,
1982
1982
  abbreviated: /^([vn]\. ?Chr\.?)/,
1983
1983
  wide: /^((voor|na) Christus)/
@@ -2045,8 +2045,8 @@ const it = {
2045
2045
  }
2046
2046
  }, Nt = {
2047
2047
  ordinalNumber: ne({
2048
- matchPattern: Bt,
2049
- parsePattern: ft,
2048
+ matchPattern: ft,
2049
+ parsePattern: Bt,
2050
2050
  valueCallback: (A) => parseInt(A, 10)
2051
2051
  }),
2052
2052
  era: q({
@@ -2169,7 +2169,7 @@ const it = {
2169
2169
  ]),
2170
2170
  _: 1
2171
2171
  }, 16)
2172
- ])) : B("", !0),
2172
+ ])) : f("", !0),
2173
2173
  A.pickerView !== "years" ? (o(), I("div", kt, [
2174
2174
  u($, IA(dA(r)), {
2175
2175
  default: x(() => [
@@ -2185,8 +2185,8 @@ const it = {
2185
2185
  ]),
2186
2186
  _: 1
2187
2187
  }, 16)
2188
- ])) : B("", !0),
2189
- A.pickerView === "years" ? (o(), I("span", Ht, "Kies jaar")) : B("", !0)
2188
+ ])) : f("", !0),
2189
+ A.pickerView === "years" ? (o(), I("span", Ht, "Kies jaar")) : f("", !0)
2190
2190
  ]),
2191
2191
  A.pickerView === "days" ? (o(), I("button", {
2192
2192
  key: 3,
@@ -2234,7 +2234,7 @@ const it = {
2234
2234
  }), c = Q(() => t.calendarDays.length === 0 ? [] : t.calendarDays.slice(0, 7).map((l) => {
2235
2235
  const X = tA(l, "EEEEEE", { locale: t.locale });
2236
2236
  return X.charAt(0).toUpperCase() + X.slice(1);
2237
- })), f = (l, X) => {
2237
+ })), B = (l, X) => {
2238
2238
  let z = X;
2239
2239
  switch (l.key) {
2240
2240
  case "ArrowRight":
@@ -2309,7 +2309,7 @@ const it = {
2309
2309
  A.isDisabled(T) ? "cursor-not-allowed opacity-30" : ""
2310
2310
  ]),
2311
2311
  onClick: (h) => i("select", T),
2312
- onKeydown: (h) => f(h, N * 7 + v)
2312
+ onKeydown: (h) => B(h, N * 7 + v)
2313
2313
  }, [
2314
2314
  d("span", qt, p(O(tA)(T, "d")), 1),
2315
2315
  E(T) ? (o(), I("span", {
@@ -2318,7 +2318,7 @@ const it = {
2318
2318
  "absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full",
2319
2319
  m(T) ? "bg-white" : "bg-cornflower-blue-500"
2320
2320
  ])
2321
- }, null, 2)) : B("", !0)
2321
+ }, null, 2)) : f("", !0)
2322
2322
  ], 42, Wt)
2323
2323
  ], 8, Kt))), 128))
2324
2324
  ]))), 128))
@@ -2342,8 +2342,8 @@ const it = {
2342
2342
  setup(A, { emit: e }) {
2343
2343
  const a = A, t = e, i = Q(
2344
2344
  () => Array.from({ length: 12 }, (E, s) => {
2345
- const c = w(new Date(Date.UTC(a.viewYear, s, 1)), a.timezone), f = tA(c, "LLL", { locale: a.locale }).replace(".", "").trim();
2346
- return { index: s, label: f.charAt(0).toUpperCase() + f.slice(1) };
2345
+ const c = w(new Date(Date.UTC(a.viewYear, s, 1)), a.timezone), B = tA(c, "LLL", { locale: a.locale }).replace(".", "").trim();
2346
+ return { index: s, label: B.charAt(0).toUpperCase() + B.slice(1) };
2347
2347
  })
2348
2348
  ), n = (E) => {
2349
2349
  const s = a.viewYear, c = w(new Date(Date.UTC(s, E, 1)), a.timezone);
@@ -2364,7 +2364,7 @@ const it = {
2364
2364
  r(c.index) ? "bg-cornflower-blue-500 font-medium text-white" : m(c.index) ? "font-medium text-cornflower-blue-500 ring-1 ring-cornflower-blue-500" : "text-gray-700 hover:bg-cornflower-blue-50",
2365
2365
  n(c.index) ? "cursor-not-allowed opacity-30" : "cursor-pointer"
2366
2366
  ]),
2367
- onClick: (f) => t("select", c.index)
2367
+ onClick: (B) => t("select", c.index)
2368
2368
  }, p(c.label), 11, jt))), 128))
2369
2369
  ]));
2370
2370
  }
@@ -2448,7 +2448,7 @@ const it = {
2448
2448
  }, c = (k) => {
2449
2449
  const R = w(k, A.timezone);
2450
2450
  s(R) || (DA(R, i.value) || (i.value = EA(R)), a.value = tt(R, A.timezone), t("select", a.value));
2451
- }, f = (k) => {
2451
+ }, B = (k) => {
2452
2452
  m.value = "fade";
2453
2453
  const R = w(
2454
2454
  new Date(Date.UTC(i.value.getUTCFullYear(), k, 1)),
@@ -2541,7 +2541,7 @@ const it = {
2541
2541
  "max-date": A.maxDate,
2542
2542
  locale: A.locale,
2543
2543
  timezone: A.timezone,
2544
- onSelect: f
2544
+ onSelect: B
2545
2545
  }, null, 8, ["view-year", "model-value", "current-month", "min-date", "max-date", "locale", "timezone"])) : n.value === "years" ? (o(), M(ai, {
2546
2546
  key: "years",
2547
2547
  "view-year": i.value.getFullYear(),
@@ -2549,7 +2549,7 @@ const it = {
2549
2549
  "max-date": A.maxDate,
2550
2550
  timezone: A.timezone,
2551
2551
  onSelect: l
2552
- }, null, 8, ["view-year", "min-date", "max-date", "timezone"])) : B("", !0)
2552
+ }, null, 8, ["view-year", "min-date", "max-date", "timezone"])) : f("", !0)
2553
2553
  ]),
2554
2554
  _: 1
2555
2555
  }, 16, ["mode"])
@@ -2588,8 +2588,8 @@ const it = {
2588
2588
  "aria-hidden": "true",
2589
2589
  class: g([
2590
2590
  "flex h-5 w-5 shrink-0 items-center justify-center rounded border transition-colors duration-200",
2591
- "peer-focus-visible:ring-primary peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",
2592
- e.value || A.indeterminate ? "border-primary text-cornflower-blue-600" : "border-gray-300 text-transparent"
2591
+ "peer-focus-visible:ring-2 peer-focus-visible:ring-cornflower-blue-400 peer-focus-visible:ring-offset-2",
2592
+ e.value || A.indeterminate ? "border-cornflower-blue-600 text-cornflower-blue-600" : "border-gray-300 text-transparent"
2593
2593
  ])
2594
2594
  }, [
2595
2595
  u(C, {
@@ -2678,26 +2678,26 @@ const it = {
2678
2678
  class: "text-2xl text-purple-500",
2679
2679
  "aria-hidden": "true"
2680
2680
  }, null, 8, ["name"])
2681
- ])) : B("", !0),
2681
+ ])) : f("", !0),
2682
2682
  d("div", {
2683
2683
  class: g(["flex flex-col items-start gap-1", a.value ? "py-6 pr-4" : ""])
2684
2684
  }, [
2685
- A.title ? (o(), I("span", Ei, p(A.title), 1)) : B("", !0),
2685
+ A.title ? (o(), I("span", Ei, p(A.title), 1)) : f("", !0),
2686
2686
  A.amount ? (o(), I("span", {
2687
2687
  key: 1,
2688
2688
  class: g(["heading-1", a.value ? "text-purple-500" : "text-sapphire-900"])
2689
- }, p(A.amount), 3)) : B("", !0),
2689
+ }, p(A.amount), 3)) : f("", !0),
2690
2690
  A.percentage ? (o(), I("div", Ii, [
2691
2691
  d("span", {
2692
2692
  class: g(["extra-small-semibold", A.percentage > 0 ? "text-green-500" : "text-brick-500"])
2693
2693
  }, [
2694
2694
  A.percentage > 0 ? (o(), I(Y, { key: 0 }, [
2695
2695
  H("+")
2696
- ], 64)) : B("", !0),
2696
+ ], 64)) : f("", !0),
2697
2697
  H(p(A.percentage) + "%", 1)
2698
2698
  ], 2),
2699
- A.percentageExplanaition ? (o(), I("span", di, p(A.percentageExplanaition), 1)) : B("", !0)
2700
- ])) : B("", !0)
2699
+ A.percentageExplanaition ? (o(), I("span", di, p(A.percentageExplanaition), 1)) : f("", !0)
2700
+ ])) : f("", !0)
2701
2701
  ], 2)
2702
2702
  ], 10, oi));
2703
2703
  }
@@ -2736,10 +2736,10 @@ const it = {
2736
2736
  a.autoClose && (n.value = !1);
2737
2737
  }, c = (z) => {
2738
2738
  n.value && z.key === "Escape" && (n.value = !1);
2739
- }, f = (z) => {
2739
+ }, B = (z) => {
2740
2740
  r.value && !r.value.contains(z.target) && (n.value = !1);
2741
2741
  };
2742
- mA(() => document.addEventListener("mousedown", f)), ee(() => document.removeEventListener("mousedown", f));
2742
+ mA(() => document.addEventListener("mousedown", B)), ee(() => document.removeEventListener("mousedown", B));
2743
2743
  const l = Q(() => ({
2744
2744
  "bottom-right": "top-full right-0 mt-2 origin-top-right",
2745
2745
  "bottom-left": "top-full left-0 mt-2 origin-top-left",
@@ -2802,7 +2802,7 @@ const it = {
2802
2802
  modelValue: e.value,
2803
2803
  "onUpdate:modelValue": N[1] || (N[1] = (T) => e.value = T)
2804
2804
  }, i.value, { onSelect: s }), null, 16, ["modelValue"])
2805
- ], 2)) : B("", !0)
2805
+ ], 2)) : f("", !0)
2806
2806
  ]),
2807
2807
  _: 1
2808
2808
  }, 16)
@@ -2834,7 +2834,7 @@ const it = {
2834
2834
  }), ee(() => {
2835
2835
  document.removeEventListener("mousedown", E);
2836
2836
  });
2837
- const s = Q(() => A.variant === "primary" ? "bg-button-bg-primary-default text-button-text-primary-default" : A.variant === "secondary" ? "bg-button-bg-secondary-default text-button-text-secondary-default border-button-border-secondary-default border border-solid" : ""), c = Q(() => A.variant === "primary" ? "bg-button-bg-primary-default hover:bg-button-bg-primary-hover focus-visible:bg-button-bg-primary-focussed focus-visible:outline-button-border-primary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-primary-selected" : A.variant === "secondary" ? "bg-button-bg-secondary-default hover:bg-button-bg-secondary-hover focus-visible:bg-button-bg-secondary-focussed focus-visible:outline-button-border-secondary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-secondary-selected" : ""), f = Q(() => {
2837
+ const s = Q(() => A.variant === "primary" ? "bg-button-bg-primary-default text-button-text-primary-default" : A.variant === "secondary" ? "bg-button-bg-secondary-default text-button-text-secondary-default border-button-border-secondary-default border border-solid" : ""), c = Q(() => A.variant === "primary" ? "bg-button-bg-primary-default hover:bg-button-bg-primary-hover focus-visible:bg-button-bg-primary-focussed focus-visible:outline-button-border-primary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-primary-selected" : A.variant === "secondary" ? "bg-button-bg-secondary-default hover:bg-button-bg-secondary-hover focus-visible:bg-button-bg-secondary-focussed focus-visible:outline-button-border-secondary-focussed focus-visible:outline focus-visible:outline-solid active:bg-button-bg-secondary-selected" : ""), B = Q(() => {
2838
2838
  const l = A.placement === "right" ? "origin-top-right" : "origin-top-left";
2839
2839
  return {
2840
2840
  enterActiveClass: `transition-all duration-200 ease-out ${l}`,
@@ -2861,7 +2861,7 @@ const it = {
2861
2861
  key: 0,
2862
2862
  name: A.icon,
2863
2863
  "aria-hidden": "true"
2864
- }, null, 8, ["name"])) : B("", !0),
2864
+ }, null, 8, ["name"])) : f("", !0),
2865
2865
  H(" " + p(A.label), 1)
2866
2866
  ], 2),
2867
2867
  d("span", {
@@ -2882,7 +2882,7 @@ const it = {
2882
2882
  }, null, 8, ["class"])
2883
2883
  ], 10, si)
2884
2884
  ], 2),
2885
- u($, IA(dA(f.value)), {
2885
+ u($, IA(dA(B.value)), {
2886
2886
  default: x(() => [
2887
2887
  t.value ? (o(), I("div", {
2888
2888
  key: 0,
@@ -2899,10 +2899,10 @@ const it = {
2899
2899
  key: 0,
2900
2900
  name: z.icon,
2901
2901
  "aria-hidden": "true"
2902
- }, null, 8, ["name"])) : B("", !0),
2902
+ }, null, 8, ["name"])) : f("", !0),
2903
2903
  H(" " + p(z.label), 1)
2904
2904
  ], 8, gi))), 128))
2905
- ], 2)) : B("", !0)
2905
+ ], 2)) : f("", !0)
2906
2906
  ]),
2907
2907
  _: 1
2908
2908
  }, 16)
@@ -2936,18 +2936,18 @@ const it = {
2936
2936
  H(p(A.backButtonText), 1)
2937
2937
  ]),
2938
2938
  _: 1
2939
- }, 8, ["onClick"])) : B("", !0),
2939
+ }, 8, ["onClick"])) : f("", !0),
2940
2940
  d("span", ui, p(A.title), 1)
2941
2941
  ]),
2942
2942
  e.$slots.center ? (o(), I("div", li, [
2943
2943
  J(e.$slots, "center")
2944
- ])) : B("", !0),
2944
+ ])) : f("", !0),
2945
2945
  e.$slots.right ? (o(), I("div", {
2946
2946
  key: 1,
2947
2947
  class: g(e.$slots.center ? "col-span-1 col-start-3 flex justify-end" : "ml-auto")
2948
2948
  }, [
2949
2949
  J(e.$slots, "right")
2950
- ], 2)) : B("", !0)
2950
+ ], 2)) : f("", !0)
2951
2951
  ], 2));
2952
2952
  }
2953
2953
  }), Qi = { class: "p-5" }, Un = /* @__PURE__ */ D({
@@ -3052,7 +3052,7 @@ const it = {
3052
3052
  ]),
3053
3053
  _: 1
3054
3054
  }, 8, ["disabled"]),
3055
- u(O(Be), {
3055
+ u(O(fe), {
3056
3056
  class: "mr-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50",
3057
3057
  disabled: A.disabled
3058
3058
  }, {
@@ -3062,7 +3062,7 @@ const it = {
3062
3062
  _: 1
3063
3063
  }, 8, ["disabled"]),
3064
3064
  (o(!0), I(Y, null, G(i, (n, r) => (o(), I(Y, null, [
3065
- n.type === "page" ? (o(), M(O(fe), {
3065
+ n.type === "page" ? (o(), M(O(Be), {
3066
3066
  key: r,
3067
3067
  value: n.value,
3068
3068
  disabled: A.disabled,
@@ -3108,7 +3108,7 @@ const it = {
3108
3108
  _: 1
3109
3109
  }, 8, ["total", "items-per-page", "sibling-count", "page", "show-edges"]));
3110
3110
  }
3111
- }), Bi = { class: "@container" }, fi = { class: "flex flex-col @md:gap-2" }, pi = { class: "flex items-center justify-between gap-2" }, vi = ["aria-label", "aria-valuenow", "aria-valuetext"], xi = {
3111
+ }), fi = { class: "@container" }, Bi = { class: "flex flex-col @md:gap-2" }, pi = { class: "flex items-center justify-between gap-2" }, vi = ["aria-label", "aria-valuenow", "aria-valuetext"], xi = {
3112
3112
  key: 0,
3113
3113
  class: "flex items-center small-normal tabular-nums @md:hidden",
3114
3114
  "aria-hidden": "true"
@@ -3132,8 +3132,8 @@ const it = {
3132
3132
  A.stepTitles && A.stepTitles.length !== A.steps && console.warn(
3133
3133
  `[NexxtProgressBar] The "stepTitles" array length (${A.stepTitles.length}) must match the "steps" prop (${A.steps}).`
3134
3134
  );
3135
- }), (n, r) => (o(), I("div", Bi, [
3136
- d("div", fi, [
3135
+ }), (n, r) => (o(), I("div", fi, [
3136
+ d("div", Bi, [
3137
3137
  d("div", pi, [
3138
3138
  d("div", {
3139
3139
  class: "progress-bar progress-bar-bar h-2 w-full overflow-hidden rounded-full",
@@ -3153,7 +3153,7 @@ const it = {
3153
3153
  i.value ? (o(), I("div", xi, [
3154
3154
  u(Pe, { value: a.value }, null, 8, ["value"]),
3155
3155
  d("span", null, "/" + p(A.steps), 1)
3156
- ])) : B("", !0)
3156
+ ])) : f("", !0)
3157
3157
  ]),
3158
3158
  i.value ? (o(), I("ol", Ti, [
3159
3159
  (o(!0), I(Y, null, G(A.stepTitles, (m, E) => (o(), I("li", {
@@ -3172,7 +3172,7 @@ const it = {
3172
3172
  iA(oA((s) => E < e.value && n.$emit("update:currentStep", E), ["prevent"]), ["space"])
3173
3173
  ]
3174
3174
  }, p(m), 43, Fi))), 128))
3175
- ])) : B("", !0)
3175
+ ])) : f("", !0)
3176
3176
  ])
3177
3177
  ]));
3178
3178
  }
@@ -3443,7 +3443,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3443
3443
  H(p(A.chip), 1)
3444
3444
  ]),
3445
3445
  _: 1
3446
- })) : B("", !0),
3446
+ })) : f("", !0),
3447
3447
  u(Pi, cA({ class: "ml-auto" }, n.value, { "aria-hidden": "true" }), null, 16)
3448
3448
  ]),
3449
3449
  d("div", ji, [
@@ -3463,7 +3463,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3463
3463
  type: "solid",
3464
3464
  class: "absolute top-1/2 -translate-x-[calc(100%+4px)] -translate-y-[calc(50%+1px)] text-white",
3465
3465
  "aria-hidden": "true"
3466
- })) : B("", !0),
3466
+ })) : f("", !0),
3467
3467
  H(" " + p(A.label ?? t[A.variant]), 1)
3468
3468
  ])
3469
3469
  ])
@@ -3547,7 +3547,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3547
3547
  i("update:modelValue", h);
3548
3548
  }, c = Q(
3549
3549
  () => t.columns.map((v) => `minmax(100px, ${v.width ?? "1fr"})`).join(" ")
3550
- ), f = Q(
3550
+ ), B = Q(
3551
3551
  () => t.selectable ? `40px ${c.value}` : c.value
3552
3552
  ), l = (v) => {
3553
3553
  if (!v.sortable) return;
@@ -3576,10 +3576,10 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3576
3576
  d("div", tn, [
3577
3577
  v.$slots.toolbar ? (o(), I("div", nn, [
3578
3578
  J(v.$slots, "toolbar")
3579
- ])) : B("", !0),
3579
+ ])) : f("", !0),
3580
3580
  d("div", {
3581
3581
  class: "grid rounded-md bg-gray-50",
3582
- style: xA({ gridTemplateColumns: f.value }),
3582
+ style: xA({ gridTemplateColumns: B.value }),
3583
3583
  role: "row",
3584
3584
  "aria-rowindex": "1"
3585
3585
  }, [
@@ -3590,7 +3590,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3590
3590
  "aria-label": "Select all rows",
3591
3591
  "onUpdate:modelValue": E
3592
3592
  }, null, 8, ["model-value", "indeterminate"])
3593
- ])) : B("", !0),
3593
+ ])) : f("", !0),
3594
3594
  (o(!0), I(Y, null, G(A.columns, (P, S) => (o(), I("div", {
3595
3595
  key: P.key,
3596
3596
  class: g(["flex items-center gap-1.5 px-4 py-3 heading-4 text-slate-700", {
@@ -3611,7 +3611,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3611
3611
  key: 0,
3612
3612
  name: A.sortKey === P.key ? A.sortDirection === "asc" ? "angle-down" : "angle-up" : "angles-up-down",
3613
3613
  class: g(["shrink-0 text-xs", A.sortKey === P.key ? "text-cornflower-blue-600" : "text-slate-400"])
3614
- }, null, 8, ["name", "class"])) : B("", !0)
3614
+ }, null, 8, ["name", "class"])) : f("", !0)
3615
3615
  ], 42, on))), 128))
3616
3616
  ], 4)
3617
3617
  ]),
@@ -3628,7 +3628,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3628
3628
  },
3629
3629
  z(S)
3630
3630
  ]]),
3631
- style: xA({ gridTemplateColumns: f.value }),
3631
+ style: xA({ gridTemplateColumns: B.value }),
3632
3632
  role: "row",
3633
3633
  "aria-rowindex": S + 2,
3634
3634
  "aria-selected": A.selectable ? n.value.includes(S) : void 0,
@@ -3642,7 +3642,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3642
3642
  "aria-label": `Select row ${S + 1}`,
3643
3643
  "onUpdate:modelValue": (V) => s(S)
3644
3644
  }, null, 8, ["model-value", "aria-label", "onUpdate:modelValue"])
3645
- ])) : B("", !0),
3645
+ ])) : f("", !0),
3646
3646
  (o(!0), I(Y, null, G(A.columns, (V, zA) => (o(), I("div", {
3647
3647
  key: V.key,
3648
3648
  class: "flex items-center truncate px-4 py-4 extra-small-normal text-slate-700",
@@ -3657,7 +3657,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3657
3657
  ])
3658
3658
  ], 8, dn))), 128))
3659
3659
  ], 46, En))), 128)),
3660
- A.rows.length ? B("", !0) : (o(), I("div", sn, [
3660
+ A.rows.length ? f("", !0) : (o(), I("div", sn, [
3661
3661
  J(v.$slots, "empty", {}, () => [
3662
3662
  h[0] || (h[0] = H("Geen data beschikbaar", -1))
3663
3663
  ])
@@ -3858,7 +3858,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3858
3858
  }, cn = ["data-event-source", "data-event-date", "date-event-type"], un = { class: "heading-3" }, ln = ["href"], zn = { class: "truncate group-hover:underline" }, Qn = {
3859
3859
  key: 1,
3860
3860
  class: "mt-1 text-sm text-gray-500"
3861
- }, Bn = /* @__PURE__ */ D({
3861
+ }, fn = /* @__PURE__ */ D({
3862
3862
  name: "NexxtTimelineEvent",
3863
3863
  __name: "TimelineEvent",
3864
3864
  props: {
@@ -3923,8 +3923,8 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3923
3923
  name: "external-link",
3924
3924
  class: "ml-1 h-4 w-4 text-gray-950"
3925
3925
  })
3926
- ], 8, ln)) : B("", !0),
3927
- A.event.request_reason ? (o(), I("span", Qn, " Reden: " + p(A.event.request_reason), 1)) : B("", !0)
3926
+ ], 8, ln)) : f("", !0),
3927
+ A.event.request_reason ? (o(), I("span", Qn, " Reden: " + p(A.event.request_reason), 1)) : f("", !0)
3928
3928
  ], 2)
3929
3929
  ], 2)
3930
3930
  ], 10, cn));
@@ -3976,7 +3976,7 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
3976
3976
  _: 3
3977
3977
  }));
3978
3978
  }
3979
- }), fn = ["data-phase"], pn = {
3979
+ }), Bn = ["data-phase"], pn = {
3980
3980
  key: 0,
3981
3981
  class: "relative z-10 bg-white"
3982
3982
  }, vn = { class: "flex items-center justify-between px-4 py-2" }, xn = { class: "flex gap-1" }, Tn = { class: "flex gap-1" }, Fn = { class: "text-sm font-semibold tracking-wider uppercase" }, Xn = { class: "mt-2 font-medium text-xs text-gray-500" }, Dn = {
@@ -4053,15 +4053,15 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
4053
4053
  })
4054
4054
  ])
4055
4055
  ])
4056
- ])) : B("", !0),
4056
+ ])) : f("", !0),
4057
4057
  d("div", {
4058
4058
  class: g(["absolute top-0 bottom-0 left-5 w-0 border-l", O(L)[A.phase.phase.value].color])
4059
4059
  }, null, 2),
4060
4060
  A.isSplitView ? (o(), I("div", {
4061
4061
  key: 1,
4062
4062
  class: g(["absolute top-0 right-5 bottom-0 w-0 border-l", O(L)[A.phase.phase.value].color])
4063
- }, null, 2)) : B("", !0),
4064
- (o(!0), I(Y, null, G(A.phase.events, (E) => (o(), M(Bn, {
4063
+ }, null, 2)) : f("", !0),
4064
+ (o(!0), I(Y, null, G(A.phase.events, (E) => (o(), M(fn, {
4065
4065
  key: E.id,
4066
4066
  event: E,
4067
4067
  "split-view": A.isSplitView
@@ -4078,23 +4078,23 @@ const yi = { render: qi }, Li = { class: "flex items-center justify-end self-str
4078
4078
  key: 0,
4079
4079
  name: n() === "up" ? "arrow-up" : "arrow-down",
4080
4080
  class: "h-4 w-4 text-white"
4081
- }, null, 8, ["name"])) : B("", !0)
4081
+ }, null, 8, ["name"])) : f("", !0)
4082
4082
  ], 2),
4083
4083
  d("span", Xn, p(i()), 1),
4084
4084
  A.isSplitView ? (o(), I("div", {
4085
4085
  key: 0,
4086
4086
  class: g(["mt-4 h-px w-[75%]", O(L)[A.phase.phase.value].bgColor])
4087
- }, null, 2)) : B("", !0),
4088
- A.isLast ? B("", !0) : (o(), I("div", Dn)),
4087
+ }, null, 2)) : f("", !0),
4088
+ A.isLast ? f("", !0) : (o(), I("div", Dn)),
4089
4089
  d("div", {
4090
4090
  class: g(["absolute top-0 bottom-0 left-5 w-[1px] bg-linear-to-b", a.value])
4091
4091
  }, null, 2),
4092
4092
  A.isSplitView ? (o(), I("div", {
4093
4093
  key: 2,
4094
4094
  class: g(["absolute top-0 right-5 bottom-0 w-[1px] bg-linear-to-b", a.value])
4095
- }, null, 2)) : B("", !0)
4096
- ], 2)) : B("", !0)
4097
- ], 8, fn));
4095
+ }, null, 2)) : f("", !0)
4096
+ ], 2)) : f("", !0)
4097
+ ], 8, Bn));
4098
4098
  }
4099
4099
  });
4100
4100
  export {
@@ -4118,7 +4118,7 @@ export {
4118
4118
  kn as NexxtSocialMediaType,
4119
4119
  Hn as NexxtStepperHeader,
4120
4120
  Yn as NexxtTable,
4121
- Bn as NexxtTimelineEvent,
4121
+ fn as NexxtTimelineEvent,
4122
4122
  Sn as NexxtTimelinePhaseblock,
4123
4123
  _A as NexxtTooltip
4124
4124
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nexxtmove/ui",
3
3
  "type": "module",
4
- "version": "0.1.33",
4
+ "version": "0.1.34",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -34,9 +34,9 @@ watchEffect(() => {
34
34
  aria-hidden="true"
35
35
  :class="[
36
36
  'flex h-5 w-5 shrink-0 items-center justify-center rounded border transition-colors duration-200',
37
- 'peer-focus-visible:ring-primary peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2',
37
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-cornflower-blue-400 peer-focus-visible:ring-offset-2',
38
38
  model || indeterminate
39
- ? 'border-primary text-cornflower-blue-600'
39
+ ? 'border-cornflower-blue-600 text-cornflower-blue-600'
40
40
  : 'border-gray-300 text-transparent',
41
41
  ]"
42
42
  >