@koide-labs/ui 0.1.0 → 0.1.2

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 (93) hide show
  1. package/dist/accordion.css +1 -1
  2. package/dist/alert-dialog.css +1 -1
  3. package/dist/anchor.css +1 -1
  4. package/dist/avatar.css +1 -1
  5. package/dist/badge.css +1 -1
  6. package/dist/button.css +1 -1
  7. package/dist/checkbox.css +1 -1
  8. package/dist/code.css +1 -1
  9. package/dist/collapse.css +1 -1
  10. package/dist/command.css +1 -1
  11. package/dist/components/accordion/accordion.js +40 -40
  12. package/dist/components/alert-dialog/alert-dialog.js +9 -9
  13. package/dist/components/anchor/anchor.js +5 -5
  14. package/dist/components/avatar/avatar.js +26 -26
  15. package/dist/components/badge/badge.js +13 -13
  16. package/dist/components/button/button.js +13 -13
  17. package/dist/components/checkbox/checkbox.js +1 -1
  18. package/dist/components/code/code.js +48 -48
  19. package/dist/components/collapse/collapse.js +14 -14
  20. package/dist/components/command/command.js +121 -121
  21. package/dist/components/context-menu/context-menu.js +6 -6
  22. package/dist/components/dialog/dialog.js +1 -1
  23. package/dist/components/heading/heading.js +6 -6
  24. package/dist/components/icon/icon.js +12 -12
  25. package/dist/components/icon-button/icon-button.js +26 -26
  26. package/dist/components/inline-code/inline-code.js +2 -2
  27. package/dist/components/input/input.js +1 -1
  28. package/dist/components/meter/meter.js +40 -40
  29. package/dist/components/multiline-input/multiline-input.js +1 -1
  30. package/dist/components/number-input/number-input.js +7 -7
  31. package/dist/components/password-input/password-input.js +2 -2
  32. package/dist/components/pill/pill.js +11 -11
  33. package/dist/components/popover/popover.js +21 -21
  34. package/dist/components/preview-card/preview-card.js +2 -2
  35. package/dist/components/radio-group/radio-group.js +54 -54
  36. package/dist/components/search-bar/search-bar.js +8 -8
  37. package/dist/components/select/select.js +75 -75
  38. package/dist/components/separator/index.js +1 -1
  39. package/dist/components/separator/separator.js +1 -1
  40. package/dist/components/slider/slider.js +128 -128
  41. package/dist/components/spinner/spinner.js +4 -4
  42. package/dist/components/stacked-avatars/stacked-avatars.js +35 -35
  43. package/dist/components/status-banner/status-banner.js +22 -22
  44. package/dist/components/surface/surface.js +14 -14
  45. package/dist/components/switch/switch.js +28 -28
  46. package/dist/components/tabs/tabs.js +132 -132
  47. package/dist/components/text/text.js +15 -15
  48. package/dist/components/timestamp/timestamp.js +73 -73
  49. package/dist/components/toaster/toaster.js +165 -165
  50. package/dist/components/tooltip/index.js +1 -1
  51. package/dist/components/tooltip/tooltip.js +1 -1
  52. package/dist/components/view/view.js +40 -40
  53. package/dist/context-menu.css +1 -1
  54. package/dist/dialog.css +1 -1
  55. package/dist/{dialog.module-DsbQRp-d.js → dialog.module-Pi1eHwli.js} +13 -13
  56. package/dist/heading.css +1 -1
  57. package/dist/icon-button.css +1 -1
  58. package/dist/icon.css +1 -1
  59. package/dist/index.js +2 -2
  60. package/dist/inline-code.css +1 -1
  61. package/dist/input.css +1 -1
  62. package/dist/input.module-zw1dlr1_.js +8 -0
  63. package/dist/integrations/react-markdown/index.js +1 -1
  64. package/dist/meter.css +1 -1
  65. package/dist/number-input.css +1 -1
  66. package/dist/password-input.css +1 -1
  67. package/dist/pill.css +1 -1
  68. package/dist/popover.css +1 -1
  69. package/dist/preview-card.css +1 -1
  70. package/dist/radio-group.css +1 -1
  71. package/dist/search-bar.css +1 -1
  72. package/dist/select.css +1 -1
  73. package/dist/{separator-fh_wDZNf.js → separator-wNYojB9q.js} +8 -8
  74. package/dist/separator.css +1 -1
  75. package/dist/slider.css +1 -1
  76. package/dist/spinner.css +1 -1
  77. package/dist/stacked-avatars.css +1 -1
  78. package/dist/status-banner.css +1 -1
  79. package/dist/styles/core.css +1 -1
  80. package/dist/surface.css +1 -1
  81. package/dist/switch.css +1 -1
  82. package/dist/tabs.css +1 -1
  83. package/dist/text.css +1 -1
  84. package/dist/timestamp.css +1 -1
  85. package/dist/toaster.css +1 -1
  86. package/dist/{tooltip-oCp-elli.js → tooltip-DZkByWDR.js} +63 -63
  87. package/dist/tooltip.css +1 -1
  88. package/dist/view.css +1 -1
  89. package/dist/view.module-DlwuNdUj.js +6 -0
  90. package/dist/view2.css +1 -1
  91. package/package.json +1 -1
  92. package/dist/input.module-CtE19OH8.js +0 -8
  93. package/dist/view.module-Dj7wj0kk.js +0 -6
@@ -2,7 +2,7 @@ import { jsx as p } from "react/jsx-runtime";
2
2
  import { c as B } from "../../clsx-OuTLNxxd.js";
3
3
  import { useState as V } from "react";
4
4
  import { Text as J } from "../text/text.js";
5
- import { T as $ } from "../../tooltip-oCp-elli.js";
5
+ import { T as $ } from "../../tooltip-DZkByWDR.js";
6
6
  import { View as z } from "../view/view.js";
7
7
  import '../../timestamp.css';const U = {
8
8
  lessThanXSeconds: {
@@ -166,7 +166,7 @@ const ot = {
166
166
  "November",
167
167
  "December"
168
168
  ]
169
- }, ut = {
169
+ }, ct = {
170
170
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
171
171
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
172
172
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -179,7 +179,7 @@ const ot = {
179
179
  "Friday",
180
180
  "Saturday"
181
181
  ]
182
- }, ct = {
182
+ }, ut = {
183
183
  narrow: {
184
184
  am: "a",
185
185
  pm: "p",
@@ -269,24 +269,24 @@ const ot = {
269
269
  defaultWidth: "wide"
270
270
  }),
271
271
  day: O({
272
- values: ut,
272
+ values: ct,
273
273
  defaultWidth: "wide"
274
274
  }),
275
275
  dayPeriod: O({
276
- values: ct,
276
+ values: ut,
277
277
  defaultWidth: "wide",
278
278
  formattingValues: dt,
279
279
  defaultFormattingWidth: "wide"
280
280
  })
281
281
  };
282
- function P(t) {
282
+ function x(t) {
283
283
  return (e, n = {}) => {
284
284
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
285
285
  if (!o)
286
286
  return null;
287
- const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(i) ? lt(i, (c) => c.test(s)) : (
287
+ const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(i) ? lt(i, (u) => u.test(s)) : (
288
288
  // [TODO] -- I challenge you to fix the type
289
- mt(i, (c) => c.test(s))
289
+ mt(i, (u) => u.test(s))
290
290
  );
291
291
  let m;
292
292
  m = t.valueCallback ? t.valueCallback(f) : f, m = n.valueCallback ? (
@@ -335,7 +335,7 @@ const wt = /^(\d+)(th|st|nd|rd)?/i, yt = /\d+/i, bt = {
335
335
  narrow: /^[jfmasond]/i,
336
336
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
337
337
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
338
- }, Pt = {
338
+ }, xt = {
339
339
  narrow: [
340
340
  /^j/i,
341
341
  /^f/i,
@@ -364,7 +364,7 @@ const wt = /^(\d+)(th|st|nd|rd)?/i, yt = /\d+/i, bt = {
364
364
  /^n/i,
365
365
  /^d/i
366
366
  ]
367
- }, xt = {
367
+ }, Pt = {
368
368
  narrow: /^[smtwf]/i,
369
369
  short: /^(su|mo|tu|we|th|fr|sa)/i,
370
370
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -392,32 +392,32 @@ const wt = /^(\d+)(th|st|nd|rd)?/i, yt = /\d+/i, bt = {
392
392
  parsePattern: yt,
393
393
  valueCallback: (t) => parseInt(t, 10)
394
394
  }),
395
- era: P({
395
+ era: x({
396
396
  matchPatterns: bt,
397
397
  defaultMatchWidth: "wide",
398
398
  parsePatterns: Mt,
399
399
  defaultParseWidth: "any"
400
400
  }),
401
- quarter: P({
401
+ quarter: x({
402
402
  matchPatterns: Dt,
403
403
  defaultMatchWidth: "wide",
404
404
  parsePatterns: pt,
405
405
  defaultParseWidth: "any",
406
406
  valueCallback: (t) => t + 1
407
407
  }),
408
- month: P({
408
+ month: x({
409
409
  matchPatterns: Ot,
410
410
  defaultMatchWidth: "wide",
411
- parsePatterns: Pt,
411
+ parsePatterns: xt,
412
412
  defaultParseWidth: "any"
413
413
  }),
414
- day: P({
415
- matchPatterns: xt,
414
+ day: x({
415
+ matchPatterns: Pt,
416
416
  defaultMatchWidth: "wide",
417
417
  parsePatterns: vt,
418
418
  defaultParseWidth: "any"
419
419
  }),
420
- dayPeriod: P({
420
+ dayPeriod: x({
421
421
  matchPatterns: kt,
422
422
  defaultMatchWidth: "any",
423
423
  parsePatterns: St,
@@ -487,12 +487,12 @@ function _t(t, e) {
487
487
  const n = l(t, e?.in);
488
488
  return Ft(n, Et(n)) + 1;
489
489
  }
490
- function x(t, e) {
490
+ function P(t, e) {
491
491
  const n = v(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = l(t, e?.in), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
492
492
  return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
493
493
  }
494
494
  function T(t, e) {
495
- return x(t, { ...e, weekStartsOn: 1 });
495
+ return P(t, { ...e, weekStartsOn: 1 });
496
496
  }
497
497
  function j(t, e) {
498
498
  const n = l(t, e?.in), r = n.getFullYear(), a = g(n, 0);
@@ -513,20 +513,20 @@ function Nt(t, e) {
513
513
  function G(t, e) {
514
514
  const n = l(t, e?.in), r = n.getFullYear(), a = v(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = g(e?.in || t, 0);
515
515
  s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
516
- const i = x(s, e), f = g(e?.in || t, 0);
516
+ const i = P(s, e), f = g(e?.in || t, 0);
517
517
  f.setFullYear(r, 0, o), f.setHours(0, 0, 0, 0);
518
- const m = x(f, e);
518
+ const m = P(f, e);
519
519
  return +n >= +i ? r + 1 : +n >= +m ? r : r - 1;
520
520
  }
521
521
  function qt(t, e) {
522
522
  const n = v(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = G(t, e), o = g(e?.in || t, 0);
523
- return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), x(o, e);
523
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), P(o, e);
524
524
  }
525
525
  function Xt(t, e) {
526
- const n = l(t, e?.in), r = +x(n, e) - +qt(n, e);
526
+ const n = l(t, e?.in), r = +P(n, e) - +qt(n, e);
527
527
  return Math.round(r / Q) + 1;
528
528
  }
529
- function u(t, e) {
529
+ function c(t, e) {
530
530
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
531
531
  return n + r;
532
532
  }
@@ -534,16 +534,16 @@ const y = {
534
534
  // Year
535
535
  y(t, e) {
536
536
  const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
537
- return u(e === "yy" ? r % 100 : r, e.length);
537
+ return c(e === "yy" ? r % 100 : r, e.length);
538
538
  },
539
539
  // Month
540
540
  M(t, e) {
541
541
  const n = t.getMonth();
542
- return e === "M" ? String(n + 1) : u(n + 1, 2);
542
+ return e === "M" ? String(n + 1) : c(n + 1, 2);
543
543
  },
544
544
  // Day of the month
545
545
  d(t, e) {
546
- return u(t.getDate(), e.length);
546
+ return c(t.getDate(), e.length);
547
547
  },
548
548
  // AM or PM
549
549
  a(t, e) {
@@ -562,26 +562,26 @@ const y = {
562
562
  },
563
563
  // Hour [1-12]
564
564
  h(t, e) {
565
- return u(t.getHours() % 12 || 12, e.length);
565
+ return c(t.getHours() % 12 || 12, e.length);
566
566
  },
567
567
  // Hour [0-23]
568
568
  H(t, e) {
569
- return u(t.getHours(), e.length);
569
+ return c(t.getHours(), e.length);
570
570
  },
571
571
  // Minute
572
572
  m(t, e) {
573
- return u(t.getMinutes(), e.length);
573
+ return c(t.getMinutes(), e.length);
574
574
  },
575
575
  // Second
576
576
  s(t, e) {
577
- return u(t.getSeconds(), e.length);
577
+ return c(t.getSeconds(), e.length);
578
578
  },
579
579
  // Fraction of second
580
580
  S(t, e) {
581
581
  const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
582
582
  r * Math.pow(10, n - 3)
583
583
  );
584
- return u(a, e.length);
584
+ return c(a, e.length);
585
585
  }
586
586
  }, D = {
587
587
  midnight: "midnight",
@@ -620,14 +620,14 @@ const y = {
620
620
  const a = G(t, r), o = a > 0 ? a : 1 - a;
621
621
  if (e === "YY") {
622
622
  const s = o % 100;
623
- return u(s, 2);
623
+ return c(s, 2);
624
624
  }
625
- return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : u(o, e.length);
625
+ return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : c(o, e.length);
626
626
  },
627
627
  // ISO week-numbering year
628
628
  R: function(t, e) {
629
629
  const n = j(t);
630
- return u(n, e.length);
630
+ return c(n, e.length);
631
631
  },
632
632
  // Extended year. This is a single number designating the year of this calendar system.
633
633
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -640,7 +640,7 @@ const y = {
640
640
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
641
641
  u: function(t, e) {
642
642
  const n = t.getFullYear();
643
- return u(n, e.length);
643
+ return c(n, e.length);
644
644
  },
645
645
  // Quarter
646
646
  Q: function(t, e, n) {
@@ -651,7 +651,7 @@ const y = {
651
651
  return String(r);
652
652
  // 01, 02, 03, 04
653
653
  case "QQ":
654
- return u(r, 2);
654
+ return c(r, 2);
655
655
  // 1st, 2nd, 3rd, 4th
656
656
  case "Qo":
657
657
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -683,7 +683,7 @@ const y = {
683
683
  return String(r);
684
684
  // 01, 02, 03, 04
685
685
  case "qq":
686
- return u(r, 2);
686
+ return c(r, 2);
687
687
  // 1st, 2nd, 3rd, 4th
688
688
  case "qo":
689
689
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -741,7 +741,7 @@ const y = {
741
741
  return String(r + 1);
742
742
  // 01, 02, ..., 12
743
743
  case "LL":
744
- return u(r + 1, 2);
744
+ return c(r + 1, 2);
745
745
  // 1st, 2nd, ..., 12th
746
746
  case "Lo":
747
747
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -764,12 +764,12 @@ const y = {
764
764
  // Local week of year
765
765
  w: function(t, e, n, r) {
766
766
  const a = Xt(t, r);
767
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
767
+ return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : c(a, e.length);
768
768
  },
769
769
  // ISO week of year
770
770
  I: function(t, e, n) {
771
771
  const r = Nt(t);
772
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
772
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : c(r, e.length);
773
773
  },
774
774
  // Day of the month
775
775
  d: function(t, e, n) {
@@ -778,7 +778,7 @@ const y = {
778
778
  // Day of year
779
779
  D: function(t, e, n) {
780
780
  const r = _t(t);
781
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
781
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : c(r, e.length);
782
782
  },
783
783
  // Day of week
784
784
  E: function(t, e, n) {
@@ -820,7 +820,7 @@ const y = {
820
820
  return String(o);
821
821
  // Padded numerical value
822
822
  case "ee":
823
- return u(o, 2);
823
+ return c(o, 2);
824
824
  // 1st, 2nd, ..., 7th
825
825
  case "eo":
826
826
  return n.ordinalNumber(o, { unit: "day" });
@@ -857,7 +857,7 @@ const y = {
857
857
  return String(o);
858
858
  // Padded numerical value
859
859
  case "cc":
860
- return u(o, e.length);
860
+ return c(o, e.length);
861
861
  // 1st, 2nd, ..., 7th
862
862
  case "co":
863
863
  return n.ordinalNumber(o, { unit: "day" });
@@ -894,7 +894,7 @@ const y = {
894
894
  return String(a);
895
895
  // 02
896
896
  case "ii":
897
- return u(a, e.length);
897
+ return c(a, e.length);
898
898
  // 2nd
899
899
  case "io":
900
900
  return n.ordinalNumber(a, { unit: "day" });
@@ -1017,12 +1017,12 @@ const y = {
1017
1017
  // Hour [0-11]
1018
1018
  K: function(t, e, n) {
1019
1019
  const r = t.getHours() % 12;
1020
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1020
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1021
1021
  },
1022
1022
  // Hour [1-24]
1023
1023
  k: function(t, e, n) {
1024
1024
  let r = t.getHours();
1025
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1025
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1026
1026
  },
1027
1027
  // Minute
1028
1028
  m: function(t, e, n) {
@@ -1103,22 +1103,22 @@ const y = {
1103
1103
  // Seconds timestamp
1104
1104
  t: function(t, e, n) {
1105
1105
  const r = Math.trunc(+t / 1e3);
1106
- return u(r, e.length);
1106
+ return c(r, e.length);
1107
1107
  },
1108
1108
  // Milliseconds timestamp
1109
1109
  T: function(t, e, n) {
1110
- return u(+t, e.length);
1110
+ return c(+t, e.length);
1111
1111
  }
1112
1112
  };
1113
1113
  function X(t, e = "") {
1114
1114
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
1115
- return o === 0 ? n + String(a) : n + String(a) + e + u(o, 2);
1115
+ return o === 0 ? n + String(a) : n + String(a) + e + c(o, 2);
1116
1116
  }
1117
1117
  function H(t, e) {
1118
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + u(Math.abs(t) / 60, 2) : b(t, e);
1118
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) : b(t, e);
1119
1119
  }
1120
1120
  function b(t, e = "") {
1121
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = u(Math.trunc(r / 60), 2), o = u(r % 60, 2);
1121
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = c(Math.trunc(r / 60), 2), o = c(r % 60, 2);
1122
1122
  return n + a + e + o;
1123
1123
  }
1124
1124
  const A = (t, e) => {
@@ -1193,23 +1193,23 @@ function te(t, e, n) {
1193
1193
  if (!Jt(i))
1194
1194
  throw new RangeError("Invalid time value");
1195
1195
  let f = e.match(zt).map((d) => {
1196
- const c = d[0];
1197
- if (c === "p" || c === "P") {
1198
- const h = At[c];
1196
+ const u = d[0];
1197
+ if (u === "p" || u === "P") {
1198
+ const h = At[u];
1199
1199
  return h(d, a.formatLong);
1200
1200
  }
1201
1201
  return d;
1202
1202
  }).join("").match($t).map((d) => {
1203
1203
  if (d === "''")
1204
1204
  return { isToken: !1, value: "'" };
1205
- const c = d[0];
1206
- if (c === "'")
1205
+ const u = d[0];
1206
+ if (u === "'")
1207
1207
  return { isToken: !1, value: ee(d) };
1208
- if (q[c])
1208
+ if (q[u])
1209
1209
  return { isToken: !0, value: d };
1210
- if (c.match(Zt))
1210
+ if (u.match(Zt))
1211
1211
  throw new RangeError(
1212
- "Format string contains an unescaped latin alphabet character `" + c + "`"
1212
+ "Format string contains an unescaped latin alphabet character `" + u + "`"
1213
1213
  );
1214
1214
  return { isToken: !1, value: d };
1215
1215
  });
@@ -1221,10 +1221,10 @@ function te(t, e, n) {
1221
1221
  };
1222
1222
  return f.map((d) => {
1223
1223
  if (!d.isToken) return d.value;
1224
- const c = d.value;
1225
- (Gt(c) || jt(c)) && Rt(c, e, String(t));
1226
- const h = q[c[0]];
1227
- return h(i, c, a.localize, m);
1224
+ const u = d.value;
1225
+ (Gt(u) || jt(u)) && Rt(u, e, String(t));
1226
+ const h = q[u[0]];
1227
+ return h(i, u, a.localize, m);
1228
1228
  }).join("");
1229
1229
  }
1230
1230
  function ee(t) {
@@ -1274,18 +1274,18 @@ function se(t, e, n) {
1274
1274
  const m = s * (i - +f);
1275
1275
  return m === 0 ? 0 : m;
1276
1276
  }
1277
- function ue(t) {
1277
+ function ce(t) {
1278
1278
  return (e) => {
1279
1279
  const r = (t ? Math[t] : Math.trunc)(e);
1280
1280
  return r === 0 ? 0 : r;
1281
1281
  };
1282
1282
  }
1283
- function ce(t, e) {
1283
+ function ue(t, e) {
1284
1284
  return +l(t) - +l(e);
1285
1285
  }
1286
1286
  function de(t, e, n) {
1287
- const r = ce(t, e) / 1e3;
1288
- return ue(n?.roundingMethod)(r);
1287
+ const r = ue(t, e) / 1e3;
1288
+ return ce(n?.roundingMethod)(r);
1289
1289
  }
1290
1290
  function fe(t, e, n) {
1291
1291
  const r = v(), a = n?.locale ?? r.locale ?? L, o = 2520, s = S(t, e);
@@ -1296,7 +1296,7 @@ function fe(t, e, n) {
1296
1296
  }), [f, m] = Y(
1297
1297
  n?.in,
1298
1298
  ...s > 0 ? [e, t] : [t, e]
1299
- ), d = de(m, f), c = (W(m) - W(f)) / 1e3, h = Math.round((d - c) / 60);
1299
+ ), d = de(m, f), u = (W(m) - W(f)) / 1e3, h = Math.round((d - u) / 60);
1300
1300
  let M;
1301
1301
  if (h < 2)
1302
1302
  return n?.includeSeconds ? d < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : d < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : d < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : d < 40 ? a.formatDistance("halfAMinute", 0, i) : d < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : h === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", h, i);
@@ -1327,7 +1327,7 @@ function fe(t, e, n) {
1327
1327
  function he(t, e) {
1328
1328
  return fe(t, ne(t), e);
1329
1329
  }
1330
- const me = "_timestamp_iuby3_2", le = "_timestamp_interactive_iuby3_6", I = {
1330
+ const me = "_timestamp_1yxi0_2", le = "_timestamp_interactive_1yxi0_6", I = {
1331
1331
  timestamp: me,
1332
1332
  timestamp_interactive: le
1333
1333
  }, ge = /* @__PURE__ */ new Date(0), ve = ({
@@ -1356,13 +1356,13 @@ const me = "_timestamp_iuby3_2", le = "_timestamp_interactive_iuby3_6", I = {
1356
1356
  {
1357
1357
  render: /* @__PURE__ */ p("button", {}),
1358
1358
  className: I.timestamp_interactive,
1359
- onClick: () => i((c) => !c),
1359
+ onClick: () => i((u) => !u),
1360
1360
  interactive: "no-fill",
1361
1361
  role: "switch",
1362
1362
  tabIndex: 0,
1363
1363
  "aria-checked": s,
1364
- onKeyDown: (c) => {
1365
- (c.code === "Space" || c.code === "Enter") && (c.preventDefault(), i((h) => !h));
1364
+ onKeyDown: (u) => {
1365
+ (u.code === "Space" || u.code === "Enter") && (u.preventDefault(), i((h) => !h));
1366
1366
  },
1367
1367
  children: d
1368
1368
  }