@starasia/date 5.2.5 → 5.3.1

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/date.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsxs as Y, jsx as e, Fragment as en } from "react/jsx-runtime";
2
- import { useState as A, useRef as J, useEffect as B, forwardRef as K } from "react";
3
- const R = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
1
+ import { jsxs as $, jsx as a, Fragment as en } from "react/jsx-runtime";
2
+ import { useState as A, useRef as P, useEffect as B, forwardRef as K } from "react";
3
+ const J = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
4
4
 
5
5
  * {
6
6
  margin: 0;
@@ -348,6 +348,12 @@ const R = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wg
348
348
  border-style: solid;
349
349
  }
350
350
 
351
+ .sa-calendar-input-container.xs {
352
+ height: var(--sa-h-7, 28px);
353
+ border-radius: var(--sa-radii-sm, 6px);
354
+ font-size: var(--sa-font-size-sm, 12px);
355
+ padding-inline: var(--sa-spacing-2, 8px);
356
+ }
351
357
  .sa-calendar-input-container.sm {
352
358
  height: var(--sa-h-8, 32px);
353
359
  border-radius: var(--sa-radii-sm, 6px);
@@ -501,6 +507,37 @@ const R = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wg
501
507
  height: 38px;
502
508
  }
503
509
 
510
+ /* xs trigger → reuse the compact (sm) calendar panel */
511
+ .sa-calendar.sa-calendar-size-xs {
512
+ padding: 16px 12px;
513
+ gap: 8px;
514
+ }
515
+ .sa-calendar.sa-calendar-size-xs.sa-calendar-no-padding {
516
+ padding: 0;
517
+ }
518
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-name-preivew,
519
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-number-preivew {
520
+ gap: 4px;
521
+ }
522
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-name-preivew p,
523
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-number-preivew p {
524
+ font-size: var(--sa-font-size-sm, 12px);
525
+ }
526
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-number-preivew p {
527
+ width: 28px;
528
+ height: 26px;
529
+ }
530
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-days-today::before {
531
+ width: 22px;
532
+ height: 22px;
533
+ }
534
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-months-preview p,
535
+ .sa-calendar.sa-calendar-size-xs .sa-calendar-years-preview p {
536
+ font-size: var(--sa-font-size-sm, 12px);
537
+ width: 76px;
538
+ height: 38px;
539
+ }
540
+
504
541
  .sa-calendar.sa-calendar-size-lg {
505
542
  padding: 28px 20px;
506
543
  gap: 16px;
@@ -544,7 +581,7 @@ const R = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wg
544
581
  width: 32px;
545
582
  height: 32px;
546
583
  }
547
- `, an = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], W = [
584
+ `, an = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], R = [
548
585
  "January",
549
586
  "February",
550
587
  "March",
@@ -571,56 +608,58 @@ const R = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wg
571
608
  "Nov",
572
609
  "Dec"
573
610
  ];
574
- function rn(a) {
575
- const [n, t] = A(a), o = J(null), l = (p) => {
576
- o.current && !o.current.contains(p.target) && t(!1);
611
+ function rn(e) {
612
+ const [n, t] = A(e), o = P(null), l = (u) => {
613
+ o.current && !o.current.contains(u.target) && t(!1);
577
614
  };
578
615
  return B(() => (document.addEventListener("click", l, !0), () => {
579
616
  document.removeEventListener("click", l, !0);
580
617
  }), []), { ref: o, isComponentVisible: n, setIsComponentVisible: t };
581
618
  }
582
- const Q = "sa-calendar-input-styles", dn = (a) => {
619
+ const Q = "sa-calendar-input-styles", dn = (e) => {
583
620
  if (!document.getElementById(Q)) {
584
621
  const n = document.createElement("style");
585
- n.id = Q, n.textContent = a, document.head.appendChild(n);
622
+ n.id = Q, n.textContent = e, document.head.appendChild(n);
586
623
  }
587
624
  };
588
- dn(R);
589
- const O = (a) => {
590
- if (a === "sm")
625
+ dn(J);
626
+ const W = (e) => {
627
+ if (e === "xs")
628
+ return 14;
629
+ if (e === "sm")
591
630
  return 16;
592
- if (a === "md")
631
+ if (e === "md")
593
632
  return 16;
594
- if (a === "lg")
633
+ if (e === "lg")
595
634
  return 20;
596
- }, cn = (a) => {
635
+ }, cn = (e) => {
597
636
  const {
598
- size: n = "md",
637
+ size: n = "sm",
599
638
  status: t = "default",
600
639
  variant: o = "outline",
601
640
  clearable: l,
602
- onClear: p,
641
+ onClear: u,
603
642
  ...i
604
- } = a, g = J(null), f = () => {
605
- g.current && i.onClick && (g.current.focus(), i.onClick(""));
606
- }, r = t === "disable" || i.disabled, d = !!i.value, w = l && d && !r, M = (k) => {
607
- k.stopPropagation(), p == null || p();
643
+ } = e, f = P(null), g = () => {
644
+ f.current && i.onClick && (f.current.focus(), i.onClick(""));
645
+ }, r = t === "disable" || i.disabled, d = !!i.value, v = l && d && !r, M = (k) => {
646
+ k.stopPropagation(), u == null || u();
608
647
  };
609
- return /* @__PURE__ */ Y(
648
+ return /* @__PURE__ */ $(
610
649
  "div",
611
650
  {
612
651
  className: `sa-calendar-input-container sa-calendar-input-${o} sa-calendar-input-container-${t} ${n} `,
613
- onClick: f,
652
+ onClick: g,
614
653
  children: [
615
- /* @__PURE__ */ e("div", { className: "sa-calendar-input-container-icon-left", children: /* @__PURE__ */ e(
654
+ /* @__PURE__ */ a("div", { className: "sa-calendar-input-container-icon-left", children: /* @__PURE__ */ a(
616
655
  "svg",
617
656
  {
618
657
  xmlns: "http://www.w3.org/2000/svg",
619
- width: O(n),
620
- height: O(n),
658
+ width: W(n),
659
+ height: W(n),
621
660
  viewBox: "0 0 20 20",
622
661
  fill: "none",
623
- children: /* @__PURE__ */ e(
662
+ children: /* @__PURE__ */ a(
624
663
  "path",
625
664
  {
626
665
  d: "M12.5 2.08301V5.41634M7.50002 2.08301V5.41634M17.0688 9.58301H2.93113M17.0688 9.58301C16.8953 4.82698 15.1284 3.33301 10 3.33301C4.87165 3.33301 3.10469 4.82698 2.93113 9.58301M17.0688 9.58301C17.0786 9.85037 17.0834 10.128 17.0834 10.4163C17.0834 15.833 15.4167 17.4997 10 17.4997C4.58335 17.4997 2.91669 15.833 2.91669 10.4163C2.91669 10.128 2.92138 9.85037 2.93113 9.58301",
@@ -632,32 +671,32 @@ const O = (a) => {
632
671
  )
633
672
  }
634
673
  ) }),
635
- /* @__PURE__ */ e("div", { className: "sa-calendar-input-preview-container", children: /* @__PURE__ */ e(
674
+ /* @__PURE__ */ a("div", { className: "sa-calendar-input-preview-container", children: /* @__PURE__ */ a(
636
675
  "input",
637
676
  {
638
677
  className: "sa-calendar-input",
639
678
  ...i,
640
679
  disabled: r,
641
680
  value: i.value,
642
- ref: g
681
+ ref: f
643
682
  }
644
683
  ) }),
645
- w ? /* @__PURE__ */ e(
684
+ v ? /* @__PURE__ */ a(
646
685
  "button",
647
686
  {
648
687
  type: "button",
649
688
  "aria-label": "Clear date",
650
689
  className: "sa-calendar-input-clear",
651
690
  onClick: M,
652
- children: /* @__PURE__ */ e(
691
+ children: /* @__PURE__ */ a(
653
692
  "svg",
654
693
  {
655
694
  xmlns: "http://www.w3.org/2000/svg",
656
- width: O(n),
657
- height: O(n),
695
+ width: W(n),
696
+ height: W(n),
658
697
  viewBox: "0 0 20 20",
659
698
  fill: "none",
660
- children: /* @__PURE__ */ e(
699
+ children: /* @__PURE__ */ a(
661
700
  "path",
662
701
  {
663
702
  d: "M5 5L15 15M15 5L5 15",
@@ -670,15 +709,15 @@ const O = (a) => {
670
709
  }
671
710
  )
672
711
  }
673
- ) : /* @__PURE__ */ e("div", { className: "sa-calendar-input-container-icon-right", children: /* @__PURE__ */ e(
712
+ ) : /* @__PURE__ */ a("div", { className: "sa-calendar-input-container-icon-right", children: /* @__PURE__ */ a(
674
713
  "svg",
675
714
  {
676
715
  xmlns: "http://www.w3.org/2000/svg",
677
- width: O(n),
678
- height: O(n),
716
+ width: W(n),
717
+ height: W(n),
679
718
  viewBox: "0 0 20 20",
680
719
  fill: "none",
681
- children: /* @__PURE__ */ e(
720
+ children: /* @__PURE__ */ a(
682
721
  "path",
683
722
  {
684
723
  d: "M3.33331 7.5L9.99998 14.1667L16.6666 7.5",
@@ -693,164 +732,164 @@ const O = (a) => {
693
732
  ]
694
733
  }
695
734
  );
696
- }, un = ({
697
- date: a,
735
+ }, pn = ({
736
+ date: e,
698
737
  setDate: n,
699
738
  dateRange: t,
700
739
  setDateRange: o,
701
740
  onChange: l,
702
- minDate: p,
741
+ minDate: u,
703
742
  maxDate: i,
704
- input: g
743
+ input: f
705
744
  }) => {
706
- var $, c, y;
707
- const [f, r] = A(null);
708
- let d = new Date(a.getFullYear(), a.getMonth(), 1), w = d.getDay(), M = [];
709
- const k = a.getMonth(), N = (/* @__PURE__ */ new Date()).toDateString(), b = !!(t.from && !t.to), h = b && f ? f : null;
710
- for (let u = 0; u < 42; u++) {
711
- u === 0 && w === 0 ? d.setDate(d.getDate() - 7) : u === 0 ? d.setDate(
712
- d.getDate() + (u - w)
745
+ var z, c, y;
746
+ const [g, r] = A(null);
747
+ let d = new Date(e.getFullYear(), e.getMonth(), 1), v = d.getDay(), M = [];
748
+ const k = e.getMonth(), N = (/* @__PURE__ */ new Date()).toDateString(), m = !!(t.from && !t.to), h = m && g ? g : null;
749
+ for (let p = 0; p < 42; p++) {
750
+ p === 0 && v === 0 ? d.setDate(d.getDate() - 7) : p === 0 ? d.setDate(
751
+ d.getDate() + (p - v)
713
752
  ) : d.setDate(d.getDate() + 1);
714
- let m = {
753
+ let b = {
715
754
  currentMonth: d.getMonth() === k,
716
755
  date: new Date(d),
717
756
  month: d.getMonth(),
718
757
  number: d.getDate(),
719
- selected: d.toDateString() === (($ = t.from) == null ? void 0 : $.toDateString()) || d.toDateString() === (((c = t.to) == null ? void 0 : c.toDateString()) || ((y = t.from) == null ? void 0 : y.toDateString())),
758
+ selected: d.toDateString() === ((z = t.from) == null ? void 0 : z.toDateString()) || d.toDateString() === (((c = t.to) == null ? void 0 : c.toDateString()) || ((y = t.from) == null ? void 0 : y.toDateString())),
720
759
  isToday: d.toDateString() === N,
721
760
  year: d.getFullYear(),
722
- isDisabled: p && d < p || i && d > i
761
+ isDisabled: u && d < u || i && d > i
723
762
  };
724
- M.push(m);
763
+ M.push(b);
725
764
  }
726
- const s = (u) => {
727
- n(u);
728
- }, x = (u) => {
729
- let m = { ...t };
730
- if (m.from && m.to)
731
- m = { from: u, to: null };
732
- else if (!m.from)
733
- m = { from: u, to: null };
765
+ const s = (p) => {
766
+ n(p);
767
+ }, w = (p) => {
768
+ let b = { ...t };
769
+ if (b.from && b.to)
770
+ b = { from: p, to: null };
771
+ else if (!b.from)
772
+ b = { from: p, to: null };
734
773
  else {
735
- const E = m.from.getTime();
736
- u.getTime() > E ? m = { from: m.from, to: u } : m = { from: u, to: m.from };
774
+ const E = b.from.getTime();
775
+ p.getTime() > E ? b = { from: b.from, to: p } : b = { from: p, to: b.from };
737
776
  }
738
- o(m), l(m);
777
+ o(b), l(b);
739
778
  };
740
- return /* @__PURE__ */ Y(
779
+ return /* @__PURE__ */ $(
741
780
  "div",
742
781
  {
743
782
  className: "sa-calendar-days-preivew",
744
783
  onMouseLeave: () => r(null),
745
784
  children: [
746
- /* @__PURE__ */ e("div", { className: "sa-calendar-days-name-preivew", children: an.map((u, m) => /* @__PURE__ */ e("p", { children: u }, m)) }),
747
- /* @__PURE__ */ e("div", { className: "sa-calendar-days-number-preivew", children: M.map((u, m) => {
748
- const E = t.from && t.to && u.date.getTime() > t.from.getTime() && u.date.getTime() < t.to.getTime(), S = (() => {
785
+ /* @__PURE__ */ a("div", { className: "sa-calendar-days-name-preivew", children: an.map((p, b) => /* @__PURE__ */ a("p", { children: p }, b)) }),
786
+ /* @__PURE__ */ a("div", { className: "sa-calendar-days-number-preivew", children: M.map((p, b) => {
787
+ const E = t.from && t.to && p.date.getTime() > t.from.getTime() && p.date.getTime() < t.to.getTime(), S = (() => {
749
788
  if (!h || !t.from)
750
789
  return !1;
751
- const z = u.date.getTime(), C = t.from.getTime(), L = h.getTime();
752
- return L > C ? z > C && z < L : z < C && z > L;
753
- })(), D = b && f && u.date.toDateString() === f.toDateString(), F = u.isDisabled, I = () => E || S ? "var(--sa-color-info-alpha-a10, #64b5f61a)" : "", T = () => F ? "var(--sa-color-gray-400, #b7b9be)" : E || S ? "var(--sa-color-gray-500, #8c8f97)" : "";
754
- return /* @__PURE__ */ e(
790
+ const Y = p.date.getTime(), D = t.from.getTime(), L = h.getTime();
791
+ return L > D ? Y > D && Y < L : Y < D && Y > L;
792
+ })(), C = m && g && p.date.toDateString() === g.toDateString(), F = p.isDisabled, I = () => E || S ? "var(--sa-color-info-alpha-a10, #64b5f61a)" : "", T = () => F ? "var(--sa-color-gray-400, #b7b9be)" : E || S ? "var(--sa-color-gray-500, #8c8f97)" : "";
793
+ return /* @__PURE__ */ a(
755
794
  "p",
756
795
  {
757
- className: `${u.currentMonth ? "sa-calendar-days-current" : "sa-calendar-days"} ${u.selected || D ? "sa-calendar-days-active" : ""} ${u.isToday && !u.selected ? "sa-calendar-days-today" : ""}`,
796
+ className: `${p.currentMonth ? "sa-calendar-days-current" : "sa-calendar-days"} ${p.selected || C ? "sa-calendar-days-active" : ""} ${p.isToday && !p.selected ? "sa-calendar-days-today" : ""}`,
758
797
  style: {
759
798
  backgroundColor: I(),
760
799
  pointerEvents: F ? "none" : void 0,
761
800
  cursor: F ? "not-allowed" : "pointer",
762
801
  color: T(),
763
- opacity: D && !u.selected ? 0.75 : 1,
764
- ...g ? {} : { width: "100%" }
802
+ opacity: C && !p.selected ? 0.75 : 1,
803
+ ...f ? {} : { width: "100%" }
765
804
  },
766
805
  onClick: () => {
767
- F || (s(u.date), x(u.date));
806
+ F || (s(p.date), w(p.date));
768
807
  },
769
808
  onMouseEnter: () => {
770
- F || r(u.date);
809
+ F || r(p.date);
771
810
  },
772
- children: u.number
811
+ children: p.number
773
812
  },
774
- m
813
+ b
775
814
  );
776
815
  }) })
777
816
  ]
778
817
  }
779
818
  );
780
- }, pn = ({
781
- date: a,
819
+ }, un = ({
820
+ date: e,
782
821
  setDate: n,
783
822
  filter: t,
784
823
  setViews: o,
785
824
  dateRange: l,
786
- setDateRange: p,
825
+ setDateRange: u,
787
826
  onChange: i,
788
- minDate: g,
789
- maxDate: f,
827
+ minDate: f,
828
+ maxDate: g,
790
829
  input: r
791
830
  }) => {
792
831
  var N;
793
- const d = (N = l.from) == null ? void 0 : N.getFullYear(), w = a.getFullYear(), M = (b) => {
794
- t ? (k(b), n(b)) : (o("days"), n(b));
795
- }, k = (b) => {
832
+ const d = (N = l.from) == null ? void 0 : N.getFullYear(), v = e.getFullYear(), M = (m) => {
833
+ t ? (k(m), n(m)) : (o("days"), n(m));
834
+ }, k = (m) => {
796
835
  let h = { ...l };
797
836
  if (h.from && h.to)
798
- h = { from: b, to: null };
837
+ h = { from: m, to: null };
799
838
  else if (!h.from)
800
- h = { from: b, to: null };
839
+ h = { from: m, to: null };
801
840
  else {
802
841
  const s = h.from.getTime();
803
- b.getTime() > s ? h = { from: h.from, to: b } : h = { from: b, to: h.from };
842
+ m.getTime() > s ? h = { from: h.from, to: m } : h = { from: m, to: h.from };
804
843
  }
805
- p(h), i(h);
844
+ u(h), i(h);
806
845
  };
807
- return /* @__PURE__ */ e("div", { className: "sa-calendar-months-preview", children: W.map((b, h) => {
808
- var $, c, y;
809
- const s = l.from != null && new Date(w, h).getTime() > l.from.getTime() && new Date(w, h).getTime() < ((($ = l.to) == null ? void 0 : $.getTime()) || l.from.getTime()), x = g && new Date(w, h) < g || f && new Date(w, h) > f;
810
- return /* @__PURE__ */ e(
846
+ return /* @__PURE__ */ a("div", { className: "sa-calendar-months-preview", children: R.map((m, h) => {
847
+ var z, c, y;
848
+ const s = l.from != null && new Date(v, h).getTime() > l.from.getTime() && new Date(v, h).getTime() < (((z = l.to) == null ? void 0 : z.getTime()) || l.from.getTime()), w = f && new Date(v, h) < f || g && new Date(v, h) > g;
849
+ return /* @__PURE__ */ a(
811
850
  "p",
812
851
  {
813
- className: d === w && (h === ((c = l.from) == null ? void 0 : c.getMonth()) || h === ((y = l.to) == null ? void 0 : y.getMonth())) ? "sa-calendar-months-active" : "",
852
+ className: d === v && (h === ((c = l.from) == null ? void 0 : c.getMonth()) || h === ((y = l.to) == null ? void 0 : y.getMonth())) ? "sa-calendar-months-active" : "",
814
853
  style: {
815
854
  backgroundColor: s ? "var(--sa-color-info-alpha-a10, #64b5f61a)" : "",
816
- pointerEvents: x ? "none" : void 0,
817
- cursor: x ? "not-allowed" : "pointer",
818
- color: x ? "var(--sa-color-gray-400, #b7b9be)" : s ? "var(--sa-color-gray-500, #8c8f97)" : "",
855
+ pointerEvents: w ? "none" : void 0,
856
+ cursor: w ? "not-allowed" : "pointer",
857
+ color: w ? "var(--sa-color-gray-400, #b7b9be)" : s ? "var(--sa-color-gray-500, #8c8f97)" : "",
819
858
  ...r ? {} : { width: "100%" }
820
859
  },
821
860
  onClick: () => {
822
- x || M(new Date(w, h));
861
+ w || M(new Date(v, h));
823
862
  },
824
- children: b.slice(0, 3)
863
+ children: m.slice(0, 3)
825
864
  },
826
865
  h
827
866
  );
828
867
  }) });
829
- }, q = (a) => {
830
- const n = Math.floor(a / 10) * 10, t = n + 10;
868
+ }, q = (e) => {
869
+ const n = Math.floor(e / 10) * 10, t = n + 10;
831
870
  return { start: n, end: t };
832
871
  }, hn = ({
833
- date: a,
872
+ date: e,
834
873
  filter: n,
835
874
  setViews: t,
836
875
  setDate: o,
837
876
  dateRange: l,
838
- setDateRange: p,
877
+ setDateRange: u,
839
878
  onChange: i,
840
- minDate: g,
841
- maxDate: f,
879
+ minDate: f,
880
+ maxDate: g,
842
881
  input: r
843
882
  }) => {
844
- var x, $;
883
+ var w, z;
845
884
  let d = [];
846
- const w = a.getFullYear(), { start: M, end: k } = q(w), N = (x = l.from) == null ? void 0 : x.getFullYear(), b = ($ = l.to) == null ? void 0 : $.getFullYear();
885
+ const v = e.getFullYear(), { start: M, end: k } = q(v), N = (w = l.from) == null ? void 0 : w.getFullYear(), m = (z = l.to) == null ? void 0 : z.getFullYear();
847
886
  for (let c = M; c < k; c++) {
848
- const y = new Date(c, 0), u = (!g || y >= g) && (!f || y <= f), m = N != null && c === N || b != null && c === b, E = l.from != null && l.to != null && y > l.from && y < l.to;
887
+ const y = new Date(c, 0), p = (!f || y >= f) && (!g || y <= g), b = N != null && c === N || m != null && c === m, E = l.from != null && l.to != null && y > l.from && y < l.to;
849
888
  d.push({
850
889
  year: c,
851
- active: m && u,
852
- highlight: E && u,
853
- disabled: !u
890
+ active: b && p,
891
+ highlight: E && p,
892
+ disabled: !p
854
893
  });
855
894
  }
856
895
  const h = (c) => {
@@ -862,12 +901,12 @@ const O = (a) => {
862
901
  else if (!y.from)
863
902
  y = { from: c, to: null };
864
903
  else {
865
- const u = y.from.getTime();
866
- c.getTime() > u ? y = { from: y.from, to: c } : y = { from: c, to: y.from };
904
+ const p = y.from.getTime();
905
+ c.getTime() > p ? y = { from: y.from, to: c } : y = { from: c, to: y.from };
867
906
  }
868
- p(y), i(y);
907
+ u(y), i(y);
869
908
  };
870
- return /* @__PURE__ */ e("div", { className: "sa-calendar-years-preview", children: d.map((c, y) => /* @__PURE__ */ e(
909
+ return /* @__PURE__ */ a("div", { className: "sa-calendar-years-preview", children: d.map((c, y) => /* @__PURE__ */ a(
871
910
  "p",
872
911
  {
873
912
  className: `${c.active ? "sa-calendar-months-active" : ""} ${c.highlight ? "sa-calendar-months-highlight" : ""} ${c.disabled ? "sa-calendar-disabled" : ""}`,
@@ -885,7 +924,7 @@ const O = (a) => {
885
924
  },
886
925
  y
887
926
  )) });
888
- }, tn = ({ ...a }) => /* @__PURE__ */ e(
927
+ }, tn = ({ ...e }) => /* @__PURE__ */ a(
889
928
  "svg",
890
929
  {
891
930
  xmlns: "http://www.w3.org/2000/svg",
@@ -893,8 +932,8 @@ const O = (a) => {
893
932
  height: "20",
894
933
  viewBox: "0 0 20 20",
895
934
  fill: "none",
896
- ...a,
897
- children: /* @__PURE__ */ e(
935
+ ...e,
936
+ children: /* @__PURE__ */ a(
898
937
  "path",
899
938
  {
900
939
  d: "M12.5 3.33334L5.83337 10L12.5 16.6667",
@@ -905,7 +944,7 @@ const O = (a) => {
905
944
  }
906
945
  )
907
946
  }
908
- ), sn = ({ ...a }) => /* @__PURE__ */ e(
947
+ ), sn = ({ ...e }) => /* @__PURE__ */ a(
909
948
  "svg",
910
949
  {
911
950
  xmlns: "http://www.w3.org/2000/svg",
@@ -913,8 +952,8 @@ const O = (a) => {
913
952
  height: "20",
914
953
  viewBox: "0 0 20 20",
915
954
  fill: "none",
916
- ...a,
917
- children: /* @__PURE__ */ e(
955
+ ...e,
956
+ children: /* @__PURE__ */ a(
918
957
  "path",
919
958
  {
920
959
  d: "M7.5 16.6667L14.1667 10L7.5 3.33334",
@@ -925,15 +964,15 @@ const O = (a) => {
925
964
  }
926
965
  )
927
966
  }
928
- ), gn = ({
929
- setViews: a,
967
+ ), fn = ({
968
+ setViews: e,
930
969
  views: n,
931
970
  filter: t,
932
971
  date: o,
933
972
  setDate: l
934
973
  }) => {
935
- const p = () => {
936
- t || a((r) => r === "days" ? "months" : r === "months" ? "years" : "days");
974
+ const u = () => {
975
+ t || e((r) => r === "days" ? "months" : r === "months" ? "years" : "days");
937
976
  }, i = () => {
938
977
  if (n === "years") {
939
978
  l((r) => new Date(r.getFullYear() + 10, 0));
@@ -944,7 +983,7 @@ const O = (a) => {
944
983
  return;
945
984
  }
946
985
  l((r) => new Date(r.getFullYear(), r.getMonth() + 1));
947
- }, g = () => {
986
+ }, f = () => {
948
987
  if (n === "years") {
949
988
  l((r) => new Date(r.getFullYear() - 10, 0));
950
989
  return;
@@ -960,108 +999,108 @@ const O = (a) => {
960
999
  )
961
1000
  );
962
1001
  };
963
- return /* @__PURE__ */ Y("div", { className: "sa-calendar-header", children: [
964
- /* @__PURE__ */ e("div", { className: "sa-calendar-header-title", onClick: p, children: (() => {
1002
+ return /* @__PURE__ */ $("div", { className: "sa-calendar-header", children: [
1003
+ /* @__PURE__ */ a("div", { className: "sa-calendar-header-title", onClick: u, children: (() => {
965
1004
  if (n === "days")
966
- return `${W[o.getMonth()]} ${o.getFullYear()}`;
1005
+ return `${R[o.getMonth()]} ${o.getFullYear()}`;
967
1006
  if (n === "months")
968
1007
  return `${o.getFullYear()}`;
969
1008
  if (n === "years")
970
1009
  return `${q(o.getFullYear()).start} ~ ${q(o.getFullYear()).end}`;
971
1010
  })() }),
972
- /* @__PURE__ */ Y("div", { className: "sa-calendar-header-nav", children: [
973
- /* @__PURE__ */ e("button", { className: "sa-calendar-nav-btn", onClick: g, children: /* @__PURE__ */ e(tn, {}) }),
974
- /* @__PURE__ */ e("button", { className: "sa-calendar-nav-btn", onClick: i, children: /* @__PURE__ */ e(sn, {}) })
1011
+ /* @__PURE__ */ $("div", { className: "sa-calendar-header-nav", children: [
1012
+ /* @__PURE__ */ a("button", { className: "sa-calendar-nav-btn", onClick: f, children: /* @__PURE__ */ a(tn, {}) }),
1013
+ /* @__PURE__ */ a("button", { className: "sa-calendar-nav-btn", onClick: i, children: /* @__PURE__ */ a(sn, {}) })
975
1014
  ] })
976
1015
  ] });
977
1016
  };
978
- function P(a) {
979
- const n = new Date(a), t = n.getFullYear(), o = n.getMonth();
1017
+ function H(e) {
1018
+ const n = new Date(e), t = n.getFullYear(), o = n.getMonth();
980
1019
  return `${n.getDate().toString().padStart(2, "0")} ${ln[o]} ${t}`;
981
1020
  }
982
1021
  const on = ({
983
- label: a,
1022
+ label: e,
984
1023
  labelPosition: n = "outside-top",
985
1024
  required: t,
986
1025
  optional: o,
987
1026
  description: l,
988
- helperText: p,
1027
+ helperText: u,
989
1028
  errorText: i,
990
- fullWidth: g,
991
- children: f
1029
+ fullWidth: f,
1030
+ children: g
992
1031
  }) => {
993
1032
  const r = [
994
1033
  "sa-date-field",
995
- g ? "sa-date-field-fullwidth" : ""
996
- ].filter(Boolean).join(" "), d = a ? /* @__PURE__ */ Y("div", { className: "sa-date-field-label-row", children: [
997
- /* @__PURE__ */ e("span", { className: "sa-date-field-label-text", children: a }),
998
- o && /* @__PURE__ */ e("span", { className: "sa-date-field-optional-badge", children: "Optional" }),
999
- t && /* @__PURE__ */ e("span", { className: "sa-date-field-required", children: "*" })
1000
- ] }) : null, w = /* @__PURE__ */ Y(en, { children: [
1001
- p && !i && /* @__PURE__ */ e("p", { className: "sa-date-field-helper", children: p }),
1002
- i && /* @__PURE__ */ e("p", { className: "sa-date-field-error-msg", children: i })
1034
+ f ? "sa-date-field-fullwidth" : ""
1035
+ ].filter(Boolean).join(" "), d = e ? /* @__PURE__ */ $("div", { className: "sa-date-field-label-row", children: [
1036
+ /* @__PURE__ */ a("span", { className: "sa-date-field-label-text", children: e }),
1037
+ o && /* @__PURE__ */ a("span", { className: "sa-date-field-optional-badge", children: "Optional" }),
1038
+ t && /* @__PURE__ */ a("span", { className: "sa-date-field-required", children: "*" })
1039
+ ] }) : null, v = /* @__PURE__ */ $(en, { children: [
1040
+ u && !i && /* @__PURE__ */ a("p", { className: "sa-date-field-helper", children: u }),
1041
+ i && /* @__PURE__ */ a("p", { className: "sa-date-field-error-msg", children: i })
1003
1042
  ] });
1004
- return a ? n === "outside-left" ? /* @__PURE__ */ Y("div", { className: `${r} sa-date-field-left`, children: [
1005
- /* @__PURE__ */ Y("div", { className: "sa-date-field-left-label", children: [
1043
+ return e ? n === "outside-left" ? /* @__PURE__ */ $("div", { className: `${r} sa-date-field-left`, children: [
1044
+ /* @__PURE__ */ $("div", { className: "sa-date-field-left-label", children: [
1006
1045
  d,
1007
- l && /* @__PURE__ */ e("p", { className: "sa-date-field-helper-top", children: l })
1046
+ l && /* @__PURE__ */ a("p", { className: "sa-date-field-helper-top", children: l })
1008
1047
  ] }),
1009
- /* @__PURE__ */ Y("div", { className: "sa-date-field-input-wrap", children: [
1010
- f,
1011
- w
1048
+ /* @__PURE__ */ $("div", { className: "sa-date-field-input-wrap", children: [
1049
+ g,
1050
+ v
1012
1051
  ] })
1013
- ] }) : /* @__PURE__ */ Y("div", { className: r, children: [
1052
+ ] }) : /* @__PURE__ */ $("div", { className: r, children: [
1014
1053
  d,
1015
- l && /* @__PURE__ */ e("p", { className: "sa-date-field-helper-top", children: l }),
1016
- f,
1017
- w
1018
- ] }) : /* @__PURE__ */ Y("div", { className: r, children: [
1019
- l && /* @__PURE__ */ e("p", { className: "sa-date-field-helper-top", children: l }),
1020
- f,
1021
- w
1054
+ l && /* @__PURE__ */ a("p", { className: "sa-date-field-helper-top", children: l }),
1055
+ g,
1056
+ v
1057
+ ] }) : /* @__PURE__ */ $("div", { className: r, children: [
1058
+ l && /* @__PURE__ */ a("p", { className: "sa-date-field-helper-top", children: l }),
1059
+ g,
1060
+ v
1022
1061
  ] });
1023
- }, X = "sa-calendar-styles", fn = (a) => {
1062
+ }, X = "sa-calendar-styles", gn = (e) => {
1024
1063
  if (!document.getElementById(X)) {
1025
1064
  const n = document.createElement("style");
1026
- n.id = X, n.textContent = a, document.head.appendChild(n);
1065
+ n.id = X, n.textContent = e, document.head.appendChild(n);
1027
1066
  }
1028
1067
  };
1029
- fn(R);
1030
- const bn = K(
1068
+ gn(J);
1069
+ const mn = K(
1031
1070
  ({
1032
- value: a,
1071
+ value: e,
1033
1072
  onChange: n,
1034
1073
  filter: t,
1035
1074
  input: o = !0,
1036
1075
  disabled: l,
1037
- minDate: p,
1076
+ minDate: u,
1038
1077
  maxDate: i,
1039
- placeholder: g,
1040
- size: f,
1078
+ placeholder: f,
1079
+ size: g = "sm",
1041
1080
  variant: r,
1042
1081
  status: d,
1043
- clearable: w,
1082
+ clearable: v,
1044
1083
  fullWidth: M = !0,
1045
1084
  withPadding: k = !0,
1046
1085
  label: N,
1047
- labelPosition: b,
1086
+ labelPosition: m,
1048
1087
  required: h,
1049
1088
  optional: s,
1050
- description: x,
1051
- helperText: $,
1089
+ description: w,
1090
+ helperText: z,
1052
1091
  errorText: c
1053
1092
  }, y) => {
1054
- const u = c ? "error" : d, { ref: m, isComponentVisible: E, setIsComponentVisible: S } = rn(!1), D = J(null), [F, I] = A("days"), [T, z] = A(/* @__PURE__ */ new Date()), [C, L] = A({
1055
- from: (a == null ? void 0 : a.from) ?? null,
1056
- to: (a == null ? void 0 : a.to) ?? null
1093
+ const p = c ? "error" : d, { ref: b, isComponentVisible: E, setIsComponentVisible: S } = rn(!1), C = P(null), [F, I] = A("days"), [T, Y] = A(/* @__PURE__ */ new Date()), [D, L] = A({
1094
+ from: (e == null ? void 0 : e.from) ?? null,
1095
+ to: (e == null ? void 0 : e.to) ?? null
1057
1096
  });
1058
1097
  B(() => {
1059
- if (a) {
1060
- const v = a;
1061
- v.from && z(v.from), L(v);
1098
+ if (e) {
1099
+ const x = e;
1100
+ x.from && Y(x.from), L(x);
1062
1101
  } else
1063
- z(/* @__PURE__ */ new Date()), L({ from: null, to: null });
1064
- }, [a]), B(() => {
1102
+ Y(/* @__PURE__ */ new Date()), L({ from: null, to: null });
1103
+ }, [e]), B(() => {
1065
1104
  t && I(t);
1066
1105
  }, [t]), B(() => {
1067
1106
  t || I("days");
@@ -1069,40 +1108,37 @@ const bn = K(
1069
1108
  o || S(!0);
1070
1109
  }, [o]);
1071
1110
  const G = () => {
1072
- var v, V;
1073
- if (!a)
1111
+ var x, V;
1112
+ if (!e)
1074
1113
  return "";
1075
1114
  if (t) {
1076
1115
  if (F === "days")
1077
- return `${P(C.from)} ~ ${P(C.to || C.from) || "-"}`;
1116
+ return `${H(D.from)} ~ ${H(D.to || D.from) || "-"}`;
1078
1117
  if (F === "months")
1079
- return `${W[C.from.getMonth()]} ~ ${C.to ? W[C.to.getMonth()] : "-"}`;
1118
+ return `${R[D.from.getMonth()]} ~ ${D.to ? R[D.to.getMonth()] : "-"}`;
1080
1119
  if (F === "years")
1081
- return `${(v = C.from) == null ? void 0 : v.getFullYear()} ~ ${((V = C.to) == null ? void 0 : V.getFullYear()) || "-"}`;
1120
+ return `${(x = D.from) == null ? void 0 : x.getFullYear()} ~ ${((V = D.to) == null ? void 0 : V.getFullYear()) || "-"}`;
1082
1121
  } else
1083
- return `${P(C.from)} ~ ${P(C.to || C.from) || "-"}`;
1122
+ return `${H(D.from)} ~ ${H(D.to || D.from) || "-"}`;
1084
1123
  }, j = () => {
1085
- if (D.current && m.current && o) {
1086
- const v = m.current.getBoundingClientRect(), V = D.current.getBoundingClientRect();
1087
- window.innerWidth < v.left + V.width ? D.current.style.left = `${v.left - V.width + v.width}px` : D.current.style.left = `${v.left}px`, v.top + V.height > window.innerHeight ? D.current.style.top = `${v.y - (v.height + V.height - 28)}px` : D.current.style.top = `${v.y + v.height}px`;
1124
+ if (C.current && b.current && o) {
1125
+ const x = b.current.getBoundingClientRect(), V = C.current.getBoundingClientRect();
1126
+ window.innerWidth < x.left + V.width ? C.current.style.left = `${x.left - V.width + x.width}px` : C.current.style.left = `${x.left}px`, x.top + V.height > window.innerHeight ? C.current.style.top = `${x.y - (x.height + V.height - 28)}px` : C.current.style.top = `${x.y + x.height}px`;
1088
1127
  }
1089
1128
  };
1090
1129
  B(() => {
1091
- D.current && m.current && o && j();
1092
- }, [D, m, E]), B(() => {
1093
- const v = y == null ? void 0 : y.current;
1094
- return v && v.addEventListener("scroll", j), window.addEventListener("scroll", j), () => {
1095
- v && v.removeEventListener("scroll", j), window.removeEventListener("scroll", j);
1096
- };
1097
- }, []);
1098
- const U = /* @__PURE__ */ Y(
1130
+ C.current && b.current && o && j();
1131
+ }, [C, b, E]), B(() => (window.addEventListener("scroll", j, !0), window.addEventListener("resize", j), () => {
1132
+ window.removeEventListener("scroll", j, !0), window.removeEventListener("resize", j);
1133
+ }), []);
1134
+ const U = /* @__PURE__ */ $(
1099
1135
  "div",
1100
1136
  {
1101
1137
  className: "sa-calendar-wrapper",
1102
1138
  style: { height: o ? "auto" : "100%" },
1103
- ref: o ? m : null,
1139
+ ref: o ? b : null,
1104
1140
  children: [
1105
- o ? /* @__PURE__ */ e(
1141
+ o ? /* @__PURE__ */ a(
1106
1142
  cn,
1107
1143
  {
1108
1144
  value: G(),
@@ -1113,72 +1149,72 @@ const bn = K(
1113
1149
  onChange: () => {
1114
1150
  },
1115
1151
  disabled: l,
1116
- placeholder: g,
1117
- size: f,
1152
+ placeholder: f,
1153
+ size: g,
1118
1154
  variant: r,
1119
- status: u,
1120
- clearable: w,
1155
+ status: p,
1156
+ clearable: v,
1121
1157
  onClear: () => n(void 0)
1122
1158
  }
1123
1159
  ) : null,
1124
- E ? /* @__PURE__ */ Y(
1160
+ E ? /* @__PURE__ */ $(
1125
1161
  "div",
1126
1162
  {
1127
- className: `sa-calendar sa-calendar-size-${f || "md"} ${o ? "" : "sa-calendar-no-input"} ${k ? "" : "sa-calendar-no-padding"}`,
1163
+ className: `sa-calendar sa-calendar-size-${g || "sm"} ${o ? "" : "sa-calendar-no-input"} ${k ? "" : "sa-calendar-no-padding"}`,
1128
1164
  style: l ? { pointerEvents: "none" } : void 0,
1129
- ref: D,
1165
+ ref: C,
1130
1166
  children: [
1131
- /* @__PURE__ */ e(
1132
- gn,
1167
+ /* @__PURE__ */ a(
1168
+ fn,
1133
1169
  {
1134
1170
  setViews: I,
1135
1171
  views: F,
1136
1172
  filter: t,
1137
1173
  date: T,
1138
- setDate: z
1174
+ setDate: Y
1139
1175
  }
1140
1176
  ),
1141
- /* @__PURE__ */ e("div", { className: "sa-calendar-body", children: F === "days" ? /* @__PURE__ */ e(
1142
- un,
1177
+ /* @__PURE__ */ a("div", { className: "sa-calendar-body", children: F === "days" ? /* @__PURE__ */ a(
1178
+ pn,
1143
1179
  {
1144
1180
  date: T,
1145
- setDate: z,
1181
+ setDate: Y,
1146
1182
  setIsComponentVisible: S,
1147
- dateRange: C,
1183
+ dateRange: D,
1148
1184
  setDateRange: L,
1149
1185
  input: o,
1150
1186
  onChange: n,
1151
- minDate: p,
1187
+ minDate: u,
1152
1188
  maxDate: i
1153
1189
  }
1154
- ) : F === "months" ? /* @__PURE__ */ e(
1155
- pn,
1190
+ ) : F === "months" ? /* @__PURE__ */ a(
1191
+ un,
1156
1192
  {
1157
1193
  date: T,
1158
- setDate: z,
1194
+ setDate: Y,
1159
1195
  filter: t,
1160
1196
  setViews: I,
1161
- dateRange: C,
1197
+ dateRange: D,
1162
1198
  setDateRange: L,
1163
1199
  setIsComponentVisible: S,
1164
1200
  input: o,
1165
1201
  onChange: n,
1166
- minDate: p,
1202
+ minDate: u,
1167
1203
  maxDate: i
1168
1204
  }
1169
- ) : /* @__PURE__ */ e(
1205
+ ) : /* @__PURE__ */ a(
1170
1206
  hn,
1171
1207
  {
1172
1208
  date: T,
1173
- setDate: z,
1209
+ setDate: Y,
1174
1210
  filter: t,
1175
1211
  setViews: I,
1176
- dateRange: C,
1212
+ dateRange: D,
1177
1213
  setDateRange: L,
1178
1214
  setIsComponentVisible: S,
1179
1215
  input: o,
1180
1216
  onChange: n,
1181
- minDate: p,
1217
+ minDate: u,
1182
1218
  maxDate: i
1183
1219
  }
1184
1220
  ) })
@@ -1188,63 +1224,65 @@ const bn = K(
1188
1224
  ]
1189
1225
  }
1190
1226
  );
1191
- return /* @__PURE__ */ e(
1227
+ return /* @__PURE__ */ a(
1192
1228
  on,
1193
1229
  {
1194
1230
  label: N,
1195
- labelPosition: b,
1231
+ labelPosition: m,
1196
1232
  required: h,
1197
1233
  optional: s,
1198
- description: x,
1199
- helperText: $,
1234
+ description: w,
1235
+ helperText: z,
1200
1236
  errorText: c,
1201
1237
  fullWidth: M,
1202
1238
  children: U
1203
1239
  }
1204
1240
  );
1205
1241
  }
1206
- ), _ = "sa-calendar-input-styles", mn = (a) => {
1242
+ ), _ = "sa-calendar-input-styles", bn = (e) => {
1207
1243
  if (!document.getElementById(_)) {
1208
1244
  const n = document.createElement("style");
1209
- n.id = _, n.textContent = a, document.head.appendChild(n);
1245
+ n.id = _, n.textContent = e, document.head.appendChild(n);
1210
1246
  }
1211
1247
  };
1212
- mn(R);
1213
- const H = (a) => {
1214
- if (a === "sm")
1248
+ bn(J);
1249
+ const O = (e) => {
1250
+ if (e === "xs")
1251
+ return 14;
1252
+ if (e === "sm")
1215
1253
  return 16;
1216
- if (a === "md")
1254
+ if (e === "md")
1217
1255
  return 16;
1218
- if (a === "lg")
1256
+ if (e === "lg")
1219
1257
  return 20;
1220
- }, vn = (a) => {
1258
+ }, vn = (e) => {
1221
1259
  const {
1222
- size: n = "md",
1260
+ size: n = "sm",
1223
1261
  status: t = "default",
1224
1262
  variant: o = "outline",
1225
1263
  clearable: l,
1226
- onClear: p,
1264
+ onClear: u,
1227
1265
  ...i
1228
- } = a, g = J(null), f = () => {
1229
- g.current && i.onClick && (g.current.focus(), i.onClick(""));
1230
- }, r = t === "disable" || i.disabled, d = !!i.value, w = l && d && !r, M = (k) => {
1231
- k.stopPropagation(), p == null || p();
1266
+ } = e, f = P(null), g = () => {
1267
+ f.current && i.onClick && (f.current.focus(), i.onClick(""));
1268
+ }, r = t === "disable" || i.disabled, d = !!i.value, v = l && d && !r, M = (k) => {
1269
+ k.stopPropagation(), u == null || u();
1232
1270
  };
1233
- return /* @__PURE__ */ Y(
1271
+ return /* @__PURE__ */ $(
1234
1272
  "div",
1235
1273
  {
1236
1274
  className: `sa-calendar-input-container sa-calendar-input-${o} sa-calendar-input-container-${t} ${n} `,
1237
- onClick: f,
1275
+ onClick: g,
1238
1276
  children: [
1239
- /* @__PURE__ */ e("div", { className: "sa-calendar-input-container-icon-left", children: /* @__PURE__ */ e(
1277
+ /* @__PURE__ */ a("div", { className: "sa-calendar-input-container-icon-left", children: /* @__PURE__ */ a(
1240
1278
  "svg",
1241
1279
  {
1242
1280
  xmlns: "http://www.w3.org/2000/svg",
1243
- width: H(n),
1244
- height: H(n),
1281
+ width: O(n),
1282
+ height: O(n),
1245
1283
  viewBox: "0 0 20 20",
1246
1284
  fill: "none",
1247
- children: /* @__PURE__ */ e(
1285
+ children: /* @__PURE__ */ a(
1248
1286
  "path",
1249
1287
  {
1250
1288
  d: "M12.5 2.08301V5.41634M7.50002 2.08301V5.41634M17.0688 9.58301H2.93113M17.0688 9.58301C16.8953 4.82698 15.1284 3.33301 10 3.33301C4.87165 3.33301 3.10469 4.82698 2.93113 9.58301M17.0688 9.58301C17.0786 9.85037 17.0834 10.128 17.0834 10.4163C17.0834 15.833 15.4167 17.4997 10 17.4997C4.58335 17.4997 2.91669 15.833 2.91669 10.4163C2.91669 10.128 2.92138 9.85037 2.93113 9.58301",
@@ -1256,32 +1294,32 @@ const H = (a) => {
1256
1294
  )
1257
1295
  }
1258
1296
  ) }),
1259
- /* @__PURE__ */ e("div", { className: "sa-calendar-input-preview-container", children: /* @__PURE__ */ e(
1297
+ /* @__PURE__ */ a("div", { className: "sa-calendar-input-preview-container", children: /* @__PURE__ */ a(
1260
1298
  "input",
1261
1299
  {
1262
1300
  className: "sa-calendar-input",
1263
1301
  ...i,
1264
1302
  disabled: r,
1265
1303
  value: i.value,
1266
- ref: g
1304
+ ref: f
1267
1305
  }
1268
1306
  ) }),
1269
- w ? /* @__PURE__ */ e(
1307
+ v ? /* @__PURE__ */ a(
1270
1308
  "button",
1271
1309
  {
1272
1310
  type: "button",
1273
1311
  "aria-label": "Clear date",
1274
1312
  className: "sa-calendar-input-clear",
1275
1313
  onClick: M,
1276
- children: /* @__PURE__ */ e(
1314
+ children: /* @__PURE__ */ a(
1277
1315
  "svg",
1278
1316
  {
1279
1317
  xmlns: "http://www.w3.org/2000/svg",
1280
- width: H(n),
1281
- height: H(n),
1318
+ width: O(n),
1319
+ height: O(n),
1282
1320
  viewBox: "0 0 20 20",
1283
1321
  fill: "none",
1284
- children: /* @__PURE__ */ e(
1322
+ children: /* @__PURE__ */ a(
1285
1323
  "path",
1286
1324
  {
1287
1325
  d: "M5 5L15 15M15 5L5 15",
@@ -1294,15 +1332,15 @@ const H = (a) => {
1294
1332
  }
1295
1333
  )
1296
1334
  }
1297
- ) : /* @__PURE__ */ e("div", { className: "sa-calendar-input-container-icon-right", children: /* @__PURE__ */ e(
1335
+ ) : /* @__PURE__ */ a("div", { className: "sa-calendar-input-container-icon-right", children: /* @__PURE__ */ a(
1298
1336
  "svg",
1299
1337
  {
1300
1338
  xmlns: "http://www.w3.org/2000/svg",
1301
- width: H(n),
1302
- height: H(n),
1339
+ width: O(n),
1340
+ height: O(n),
1303
1341
  viewBox: "0 0 20 20",
1304
1342
  fill: "none",
1305
- children: /* @__PURE__ */ e(
1343
+ children: /* @__PURE__ */ a(
1306
1344
  "path",
1307
1345
  {
1308
1346
  d: "M3.33331 7.5L9.99998 14.1667L16.6666 7.5",
@@ -1318,87 +1356,87 @@ const H = (a) => {
1318
1356
  }
1319
1357
  );
1320
1358
  }, yn = ({
1321
- date: a,
1359
+ date: e,
1322
1360
  setDate: n,
1323
1361
  previewDate: t,
1324
1362
  setPreviewDate: o,
1325
1363
  setIsComponentVisible: l,
1326
- minDate: p,
1364
+ minDate: u,
1327
1365
  maxDate: i,
1328
- input: g,
1329
- onChange: f,
1366
+ input: f,
1367
+ onChange: g,
1330
1368
  hasValue: r
1331
1369
  }) => {
1332
1370
  let d = new Date(
1333
1371
  t.getFullYear(),
1334
1372
  t.getMonth(),
1335
1373
  1
1336
- ), w = d.getDay(), M = [];
1337
- const k = a.toDateString(), N = (/* @__PURE__ */ new Date()).toDateString(), b = t.getMonth();
1374
+ ), v = d.getDay(), M = [];
1375
+ const k = e.toDateString(), N = (/* @__PURE__ */ new Date()).toDateString(), m = t.getMonth();
1338
1376
  for (let s = 0; s < 42; s++) {
1339
- s === 0 && w === 0 ? d.setDate(d.getDate() - 7) : s === 0 ? d.setDate(
1340
- d.getDate() + (s - w)
1377
+ s === 0 && v === 0 ? d.setDate(d.getDate() - 7) : s === 0 ? d.setDate(
1378
+ d.getDate() + (s - v)
1341
1379
  ) : d.setDate(d.getDate() + 1);
1342
- let x = {
1343
- currentMonth: d.getMonth() === b,
1380
+ let w = {
1381
+ currentMonth: d.getMonth() === m,
1344
1382
  date: new Date(d),
1345
1383
  month: d.getMonth(),
1346
1384
  number: d.getDate(),
1347
1385
  selected: r && d.toDateString() === k,
1348
1386
  isToday: d.toDateString() === N,
1349
1387
  year: d.getFullYear(),
1350
- isDisabled: p && d < p || i && d > i
1388
+ isDisabled: u && d < u || i && d > i
1351
1389
  };
1352
- M.push(x);
1390
+ M.push(w);
1353
1391
  }
1354
1392
  const h = (s) => {
1355
- (!p || s >= p) && (!i || s <= i) && (n(s), f(s), o(s), g && l(!1));
1393
+ (!u || s >= u) && (!i || s <= i) && (n(s), g(s), o(s), f && l(!1));
1356
1394
  };
1357
- return /* @__PURE__ */ Y("div", { className: "sa-calendar-days-preivew", children: [
1358
- /* @__PURE__ */ e("div", { className: "sa-calendar-days-name-preivew", children: an.map((s, x) => /* @__PURE__ */ e("p", { children: s }, x)) }),
1359
- /* @__PURE__ */ e("div", { className: "sa-calendar-days-number-preivew", children: M.map((s, x) => {
1360
- const $ = s.isDisabled;
1361
- return /* @__PURE__ */ e(
1395
+ return /* @__PURE__ */ $("div", { className: "sa-calendar-days-preivew", children: [
1396
+ /* @__PURE__ */ a("div", { className: "sa-calendar-days-name-preivew", children: an.map((s, w) => /* @__PURE__ */ a("p", { children: s }, w)) }),
1397
+ /* @__PURE__ */ a("div", { className: "sa-calendar-days-number-preivew", children: M.map((s, w) => {
1398
+ const z = s.isDisabled;
1399
+ return /* @__PURE__ */ a(
1362
1400
  "p",
1363
1401
  {
1364
1402
  className: `${s.currentMonth ? "sa-calendar-days-current" : "sa-calendar-days"} ${s.selected ? "sa-calendar-days-active" : ""} ${s.isToday && !s.selected ? "sa-calendar-days-today" : ""}`,
1365
1403
  style: {
1366
- color: $ ? "#ccc" : void 0,
1367
- pointerEvents: $ ? "none" : void 0,
1368
- cursor: $ ? "not-allowed" : "pointer",
1369
- ...g ? {} : { width: "100%" }
1404
+ color: z ? "#ccc" : void 0,
1405
+ pointerEvents: z ? "none" : void 0,
1406
+ cursor: z ? "not-allowed" : "pointer",
1407
+ ...f ? {} : { width: "100%" }
1370
1408
  },
1371
1409
  onClick: () => {
1372
- $ || h(s.date);
1410
+ z || h(s.date);
1373
1411
  },
1374
1412
  children: s.number
1375
1413
  },
1376
- x
1414
+ w
1377
1415
  );
1378
1416
  }) })
1379
1417
  ] });
1380
1418
  }, wn = ({
1381
- date: a,
1419
+ date: e,
1382
1420
  setDate: n,
1383
1421
  filter: t,
1384
1422
  setViews: o,
1385
1423
  onChange: l,
1386
- previewDate: p,
1424
+ previewDate: u,
1387
1425
  setPreviewDate: i,
1388
- minDate: g,
1389
- maxDate: f,
1426
+ minDate: f,
1427
+ maxDate: g,
1390
1428
  input: r,
1391
1429
  hasValue: d
1392
1430
  }) => {
1393
- const w = a.getMonth(), M = a.getFullYear(), k = p.getFullYear(), N = (b) => {
1394
- (!g || b >= g) && (!f || b <= f) && (t ? (l(b), n(b), i(b)) : (o("days"), i(b)));
1431
+ const v = e.getMonth(), M = e.getFullYear(), k = u.getFullYear(), N = (m) => {
1432
+ (!f || m >= f) && (!g || m <= g) && (t ? (l(m), n(m), i(m)) : (o("days"), i(m)));
1395
1433
  };
1396
- return /* @__PURE__ */ e("div", { className: "sa-calendar-months-preview", children: W.map((b, h) => {
1397
- const s = g && new Date(k, h, 1) < g || f && new Date(k, h + 1, 0) > f;
1398
- return /* @__PURE__ */ e(
1434
+ return /* @__PURE__ */ a("div", { className: "sa-calendar-months-preview", children: R.map((m, h) => {
1435
+ const s = f && new Date(k, h, 1) < f || g && new Date(k, h + 1, 0) > g;
1436
+ return /* @__PURE__ */ a(
1399
1437
  "p",
1400
1438
  {
1401
- className: d && h === w && k === M ? "sa-calendar-months-active" : "",
1439
+ className: d && h === v && k === M ? "sa-calendar-months-active" : "",
1402
1440
  style: {
1403
1441
  color: s ? "#ccc" : void 0,
1404
1442
  pointerEvents: s ? "none" : void 0,
@@ -1408,41 +1446,41 @@ const H = (a) => {
1408
1446
  onClick: () => {
1409
1447
  s || N(new Date(k, h));
1410
1448
  },
1411
- children: b.slice(0, 3)
1449
+ children: m.slice(0, 3)
1412
1450
  },
1413
1451
  h
1414
1452
  );
1415
1453
  }) });
1416
- }, Z = (a) => {
1417
- const n = Math.floor(a / 10) * 10, t = n + 10;
1454
+ }, Z = (e) => {
1455
+ const n = Math.floor(e / 10) * 10, t = n + 10;
1418
1456
  return { start: n, end: t };
1419
1457
  }, xn = ({
1420
- date: a,
1458
+ date: e,
1421
1459
  filter: n,
1422
1460
  setViews: t,
1423
1461
  setDate: o,
1424
1462
  onChange: l,
1425
- previewDate: p,
1463
+ previewDate: u,
1426
1464
  setPreviewDate: i,
1427
- minDate: g,
1428
- maxDate: f,
1465
+ minDate: f,
1466
+ maxDate: g,
1429
1467
  input: r,
1430
1468
  hasValue: d
1431
1469
  }) => {
1432
- let w = [];
1433
- const M = p.getFullYear(), { start: k, end: N } = Z(M), b = a.getFullYear();
1470
+ let v = [];
1471
+ const M = u.getFullYear(), { start: k, end: N } = Z(M), m = e.getFullYear();
1434
1472
  for (let s = k; s < N; s++) {
1435
- let x = g && new Date(s, 0, 1) < g || f && new Date(s, 11, 31) > f;
1436
- w.push({
1473
+ let w = f && new Date(s, 0, 1) < f || g && new Date(s, 11, 31) > g;
1474
+ v.push({
1437
1475
  year: s,
1438
- active: !!d && s === b,
1439
- isDisabled: x
1476
+ active: !!d && s === m,
1477
+ isDisabled: w
1440
1478
  });
1441
1479
  }
1442
1480
  const h = (s) => {
1443
- (!g || s >= g) && (!f || s <= f) && (n ? (l(s), o(s), i(s)) : (t("months"), i(s)));
1481
+ (!f || s >= f) && (!g || s <= g) && (n ? (l(s), o(s), i(s)) : (t("months"), i(s)));
1444
1482
  };
1445
- return /* @__PURE__ */ e("div", { className: "sa-calendar-years-preview", children: w.map((s, x) => /* @__PURE__ */ e(
1483
+ return /* @__PURE__ */ a("div", { className: "sa-calendar-years-preview", children: v.map((s, w) => /* @__PURE__ */ a(
1446
1484
  "p",
1447
1485
  {
1448
1486
  className: s.active ? "sa-calendar-months-active" : "",
@@ -1457,17 +1495,17 @@ const H = (a) => {
1457
1495
  },
1458
1496
  children: s.year
1459
1497
  },
1460
- x
1498
+ w
1461
1499
  )) });
1462
1500
  }, kn = ({
1463
- setViews: a,
1501
+ setViews: e,
1464
1502
  views: n,
1465
1503
  filter: t,
1466
1504
  previewDate: o,
1467
1505
  setPreviewDate: l
1468
1506
  }) => {
1469
- const p = () => {
1470
- t || a((r) => r === "days" ? "months" : r === "months" ? "years" : "days");
1507
+ const u = () => {
1508
+ t || e((r) => r === "days" ? "months" : r === "months" ? "years" : "days");
1471
1509
  }, i = () => {
1472
1510
  if (n === "years") {
1473
1511
  l((r) => new Date(r.getFullYear() + 10, 0));
@@ -1480,7 +1518,7 @@ const H = (a) => {
1480
1518
  return;
1481
1519
  }
1482
1520
  l((r) => new Date(r.getFullYear(), r.getMonth() + 1));
1483
- }, g = () => {
1521
+ }, f = () => {
1484
1522
  if (n === "years") {
1485
1523
  l((r) => new Date(r.getFullYear() - 10, 0));
1486
1524
  return;
@@ -1498,160 +1536,157 @@ const H = (a) => {
1498
1536
  )
1499
1537
  );
1500
1538
  };
1501
- return /* @__PURE__ */ Y("div", { className: "sa-calendar-header", children: [
1502
- /* @__PURE__ */ e("div", { className: "sa-calendar-header-title", onClick: p, children: (() => {
1539
+ return /* @__PURE__ */ $("div", { className: "sa-calendar-header", children: [
1540
+ /* @__PURE__ */ a("div", { className: "sa-calendar-header-title", onClick: u, children: (() => {
1503
1541
  if (n === "days")
1504
- return `${W[o.getMonth()]} ${o.getFullYear()}`;
1542
+ return `${R[o.getMonth()]} ${o.getFullYear()}`;
1505
1543
  if (n === "months")
1506
1544
  return `${o.getFullYear()}`;
1507
1545
  if (n === "years")
1508
1546
  return `${Z(o.getFullYear()).start} ~ ${Z(o.getFullYear()).end}`;
1509
1547
  })() }),
1510
- /* @__PURE__ */ Y("div", { className: "sa-calendar-header-nav", children: [
1511
- /* @__PURE__ */ e("button", { className: "sa-calendar-nav-btn", onClick: g, children: /* @__PURE__ */ e(tn, {}) }),
1512
- /* @__PURE__ */ e("button", { className: "sa-calendar-nav-btn", onClick: i, children: /* @__PURE__ */ e(sn, {}) })
1548
+ /* @__PURE__ */ $("div", { className: "sa-calendar-header-nav", children: [
1549
+ /* @__PURE__ */ a("button", { className: "sa-calendar-nav-btn", onClick: f, children: /* @__PURE__ */ a(tn, {}) }),
1550
+ /* @__PURE__ */ a("button", { className: "sa-calendar-nav-btn", onClick: i, children: /* @__PURE__ */ a(sn, {}) })
1513
1551
  ] })
1514
1552
  ] });
1515
- }, nn = "sa-calendar-styles", Mn = (a) => {
1553
+ }, nn = "sa-calendar-styles", Mn = (e) => {
1516
1554
  if (!document.getElementById(nn)) {
1517
1555
  const n = document.createElement("style");
1518
- n.id = nn, n.textContent = a, document.head.appendChild(n);
1556
+ n.id = nn, n.textContent = e, document.head.appendChild(n);
1519
1557
  }
1520
1558
  };
1521
- Mn(R);
1522
- const Cn = K(
1559
+ Mn(J);
1560
+ const Dn = K(
1523
1561
  ({
1524
- value: a,
1562
+ value: e,
1525
1563
  onChange: n,
1526
1564
  filter: t,
1527
1565
  input: o = !0,
1528
1566
  disabled: l,
1529
- minDate: p,
1567
+ minDate: u,
1530
1568
  maxDate: i,
1531
- placeholder: g,
1532
- size: f,
1569
+ placeholder: f,
1570
+ size: g = "sm",
1533
1571
  variant: r,
1534
1572
  status: d,
1535
- clearable: w,
1573
+ clearable: v,
1536
1574
  fullWidth: M = !0,
1537
1575
  withPadding: k = !0,
1538
1576
  label: N,
1539
- labelPosition: b,
1577
+ labelPosition: m,
1540
1578
  required: h,
1541
1579
  optional: s,
1542
- description: x,
1543
- helperText: $,
1580
+ description: w,
1581
+ helperText: z,
1544
1582
  errorText: c
1545
1583
  }, y) => {
1546
- const u = c ? "error" : d, { ref: m, isComponentVisible: E, setIsComponentVisible: S } = rn(!1), D = J(null), [F, I] = A("days"), [T, z] = A(/* @__PURE__ */ new Date()), [C, L] = A(/* @__PURE__ */ new Date());
1584
+ const p = c ? "error" : d, { ref: b, isComponentVisible: E, setIsComponentVisible: S } = rn(!1), C = P(null), [F, I] = A("days"), [T, Y] = A(/* @__PURE__ */ new Date()), [D, L] = A(/* @__PURE__ */ new Date());
1547
1585
  B(() => {
1548
- a ? (z(a), L(a)) : (z(/* @__PURE__ */ new Date()), L(/* @__PURE__ */ new Date()));
1549
- }, [a]), B(() => {
1586
+ e ? (Y(e), L(e)) : (Y(/* @__PURE__ */ new Date()), L(/* @__PURE__ */ new Date()));
1587
+ }, [e]), B(() => {
1550
1588
  t && I(t);
1551
1589
  }, [t]), B(() => {
1552
1590
  t || I("days");
1553
1591
  }, [E]), B(() => {
1554
1592
  o || S(!0);
1555
1593
  }, [o]);
1556
- const G = () => a ? t === "days" ? P(T) : t === "months" ? `${W[T.getMonth()]} ${T.getFullYear()}` : t === "years" ? T.getFullYear() : P(T) : "", j = () => {
1557
- if (D.current && m.current && o) {
1558
- const v = m.current.getBoundingClientRect(), V = D.current.getBoundingClientRect();
1559
- window.innerWidth < v.left + V.width ? D.current.style.left = `${v.left - V.width + v.width}px` : D.current.style.left = `${v.left}px`, v.top + V.height > window.innerHeight ? D.current.style.top = `${v.y - (v.height + V.height - 28)}px` : D.current.style.top = `${v.y + v.height}px`;
1594
+ const G = () => e ? t === "days" ? H(T) : t === "months" ? `${R[T.getMonth()]} ${T.getFullYear()}` : t === "years" ? T.getFullYear() : H(T) : "", j = () => {
1595
+ if (C.current && b.current && o) {
1596
+ const x = b.current.getBoundingClientRect(), V = C.current.getBoundingClientRect();
1597
+ window.innerWidth < x.left + V.width ? C.current.style.left = `${x.left - V.width + x.width}px` : C.current.style.left = `${x.left}px`, x.top + V.height > window.innerHeight ? C.current.style.top = `${x.y - (x.height + V.height - 28)}px` : C.current.style.top = `${x.y + x.height}px`;
1560
1598
  }
1561
1599
  };
1562
1600
  B(() => {
1563
- D.current && m.current && o && j();
1564
- }, [D, m, E]), B(() => {
1565
- const v = y == null ? void 0 : y.current;
1566
- return v && v.addEventListener("scroll", j), window.addEventListener("scroll", j), () => {
1567
- v && v.removeEventListener("scroll", j), window.removeEventListener("scroll", j);
1568
- };
1569
- }, []);
1570
- const U = /* @__PURE__ */ Y(
1601
+ C.current && b.current && o && j();
1602
+ }, [C, b, E]), B(() => (window.addEventListener("scroll", j, !0), window.addEventListener("resize", j), () => {
1603
+ window.removeEventListener("scroll", j, !0), window.removeEventListener("resize", j);
1604
+ }), []);
1605
+ const U = /* @__PURE__ */ $(
1571
1606
  "div",
1572
1607
  {
1573
1608
  className: "sa-calendar-wrapper",
1574
1609
  style: { height: o ? "auto" : "100%" },
1575
- ref: o ? m : null,
1610
+ ref: o ? b : null,
1576
1611
  children: [
1577
- o ? /* @__PURE__ */ e(
1612
+ o ? /* @__PURE__ */ a(
1578
1613
  vn,
1579
1614
  {
1580
1615
  value: G(),
1581
1616
  onClick: () => S(!0),
1582
1617
  onChange: () => {
1583
1618
  },
1584
- placeholder: g,
1619
+ placeholder: f,
1585
1620
  disabled: l,
1586
- size: f,
1621
+ size: g,
1587
1622
  variant: r,
1588
- status: u,
1623
+ status: p,
1589
1624
  inputMode: "none",
1590
- clearable: w,
1625
+ clearable: v,
1591
1626
  onClear: () => n(void 0)
1592
1627
  }
1593
1628
  ) : null,
1594
- E ? /* @__PURE__ */ Y(
1629
+ E ? /* @__PURE__ */ $(
1595
1630
  "div",
1596
1631
  {
1597
- className: `sa-calendar sa-calendar-size-${f || "md"} ${o ? "" : "sa-calendar-no-input"} ${k ? "" : "sa-calendar-no-padding"}`,
1632
+ className: `sa-calendar sa-calendar-size-${g || "sm"} ${o ? "" : "sa-calendar-no-input"} ${k ? "" : "sa-calendar-no-padding"}`,
1598
1633
  style: l ? { pointerEvents: "none" } : void 0,
1599
- ref: D,
1634
+ ref: C,
1600
1635
  children: [
1601
- /* @__PURE__ */ e(
1636
+ /* @__PURE__ */ a(
1602
1637
  kn,
1603
1638
  {
1604
1639
  setViews: I,
1605
1640
  views: F,
1606
1641
  filter: t,
1607
- previewDate: C,
1642
+ previewDate: D,
1608
1643
  setPreviewDate: L,
1609
1644
  isComponentVisible: E
1610
1645
  }
1611
1646
  ),
1612
- /* @__PURE__ */ e("div", { className: "sa-calendar-body", children: F === "days" ? /* @__PURE__ */ e(
1647
+ /* @__PURE__ */ a("div", { className: "sa-calendar-body", children: F === "days" ? /* @__PURE__ */ a(
1613
1648
  yn,
1614
1649
  {
1615
1650
  date: T,
1616
- setDate: z,
1617
- previewDate: C,
1651
+ setDate: Y,
1652
+ previewDate: D,
1618
1653
  setPreviewDate: L,
1619
1654
  setIsComponentVisible: S,
1620
1655
  input: o,
1621
- minDate: p,
1656
+ minDate: u,
1622
1657
  maxDate: i,
1623
1658
  onChange: n,
1624
- hasValue: a != null
1659
+ hasValue: e != null
1625
1660
  }
1626
- ) : F === "months" ? /* @__PURE__ */ e(
1661
+ ) : F === "months" ? /* @__PURE__ */ a(
1627
1662
  wn,
1628
1663
  {
1629
1664
  date: T,
1630
- setDate: z,
1631
- previewDate: C,
1665
+ setDate: Y,
1666
+ previewDate: D,
1632
1667
  setPreviewDate: L,
1633
1668
  filter: t,
1634
1669
  setViews: I,
1635
1670
  onChange: n,
1636
- minDate: p,
1671
+ minDate: u,
1637
1672
  maxDate: i,
1638
1673
  input: o,
1639
- hasValue: a != null
1674
+ hasValue: e != null
1640
1675
  }
1641
- ) : /* @__PURE__ */ e(
1676
+ ) : /* @__PURE__ */ a(
1642
1677
  xn,
1643
1678
  {
1644
1679
  date: T,
1645
- setDate: z,
1646
- previewDate: C,
1680
+ setDate: Y,
1681
+ previewDate: D,
1647
1682
  setPreviewDate: L,
1648
1683
  filter: t,
1649
1684
  setViews: I,
1650
1685
  onChange: n,
1651
- minDate: p,
1686
+ minDate: u,
1652
1687
  maxDate: i,
1653
1688
  input: o,
1654
- hasValue: a != null
1689
+ hasValue: e != null
1655
1690
  }
1656
1691
  ) })
1657
1692
  ]
@@ -1660,72 +1695,72 @@ const Cn = K(
1660
1695
  ]
1661
1696
  }
1662
1697
  );
1663
- return /* @__PURE__ */ e(
1698
+ return /* @__PURE__ */ a(
1664
1699
  on,
1665
1700
  {
1666
1701
  label: N,
1667
- labelPosition: b,
1702
+ labelPosition: m,
1668
1703
  required: h,
1669
1704
  optional: s,
1670
- description: x,
1671
- helperText: $,
1705
+ description: w,
1706
+ helperText: z,
1672
1707
  errorText: c,
1673
1708
  fullWidth: M,
1674
1709
  children: U
1675
1710
  }
1676
1711
  );
1677
1712
  }
1678
- ), $n = K(
1713
+ ), zn = K(
1679
1714
  ({
1680
- value: a,
1715
+ value: e,
1681
1716
  onChange: n,
1682
1717
  filter: t,
1683
1718
  input: o = !0,
1684
1719
  rangedDate: l,
1685
- disabled: p,
1720
+ disabled: u,
1686
1721
  minDate: i,
1687
- maxDate: g,
1688
- placeholder: f,
1722
+ maxDate: f,
1723
+ placeholder: g,
1689
1724
  size: r,
1690
1725
  variant: d,
1691
- status: w,
1726
+ status: v,
1692
1727
  clearable: M,
1693
1728
  fullWidth: k,
1694
1729
  withPadding: N,
1695
- label: b,
1730
+ label: m,
1696
1731
  labelPosition: h,
1697
1732
  required: s,
1698
- optional: x,
1699
- description: $,
1733
+ optional: w,
1734
+ description: z,
1700
1735
  helperText: c,
1701
1736
  errorText: y
1702
- }, u) => {
1703
- const m = {
1737
+ }, p) => {
1738
+ const b = {
1704
1739
  onChange: n,
1705
- value: a,
1740
+ value: e,
1706
1741
  input: o,
1707
1742
  filter: t,
1708
- disabled: p,
1743
+ disabled: u,
1709
1744
  minDate: i,
1710
- maxDate: g,
1711
- placeholder: f,
1745
+ maxDate: f,
1746
+ placeholder: g,
1712
1747
  size: r,
1713
1748
  variant: d,
1714
- status: w,
1749
+ status: v,
1715
1750
  clearable: M,
1716
1751
  fullWidth: k,
1717
1752
  withPadding: N,
1718
- label: b,
1753
+ label: m,
1719
1754
  labelPosition: h,
1720
1755
  required: s,
1721
- optional: x,
1722
- description: $,
1756
+ optional: w,
1757
+ description: z,
1723
1758
  helperText: c,
1724
1759
  errorText: y
1725
1760
  };
1726
- return /* @__PURE__ */ e(en, { children: l ? /* @__PURE__ */ e(bn, { ...m, ref: u }) : /* @__PURE__ */ e(Cn, { ...m, ref: u }) });
1761
+ return /* @__PURE__ */ a(en, { children: l ? /* @__PURE__ */ a(mn, { ...b, ref: p }) : /* @__PURE__ */ a(Dn, { ...b, ref: p }) });
1727
1762
  }
1728
1763
  );
1729
1764
  export {
1730
- $n as StarasiaDate
1765
+ zn as StarasiaDate
1731
1766
  };