@mngh/jalali-datepicker 1.0.2 → 1.0.3

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.mjs CHANGED
@@ -466,37 +466,37 @@ function L(e, t = "YYYY/MM/DD", n = {}) {
466
466
  var R = {
467
467
  mode: "light",
468
468
  colors: {
469
- primary: "#2563eb",
470
- primaryHover: "#1d4ed8",
469
+ primary: "#4f46e5",
470
+ primaryHover: "#4338ca",
471
471
  primaryText: "#ffffff",
472
472
  background: "#ffffff",
473
- backgroundHover: "#f1f5f9",
474
- surface: "#f8fafc",
473
+ backgroundHover: "#f8fafc",
474
+ surface: "#f1f5f9",
475
475
  border: "#e2e8f0",
476
476
  textPrimary: "#0f172a",
477
477
  textSecondary: "#64748b",
478
478
  textDisabled: "#cbd5e1",
479
- holiday: "#ef4444",
480
- holidayBackground: "#fef2f2",
481
- rangeBackground: "#dbeafe",
482
- todayBorder: "#3b82f6"
479
+ holiday: "#e11d48",
480
+ holidayBackground: "#fff1f2",
481
+ rangeBackground: "#e0e7ff",
482
+ todayBorder: "#4f46e5"
483
483
  },
484
484
  radii: {
485
- sm: "4px",
486
- md: "8px",
487
- lg: "12px",
485
+ sm: "6px",
486
+ md: "10px",
487
+ lg: "14px",
488
488
  full: "9999px"
489
489
  },
490
490
  shadows: {
491
491
  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
492
- md: "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
493
- lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1)"
492
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04)",
493
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03)"
494
494
  }
495
- }, ne = {
495
+ }, z = {
496
496
  mode: "dark",
497
497
  colors: {
498
- primary: "#3b82f6",
499
- primaryHover: "#60a5fa",
498
+ primary: "#6366f1",
499
+ primaryHover: "#4f46e5",
500
500
  primaryText: "#ffffff",
501
501
  background: "#0f172a",
502
502
  backgroundHover: "#1e293b",
@@ -505,15 +505,15 @@ var R = {
505
505
  textPrimary: "#f8fafc",
506
506
  textSecondary: "#94a3b8",
507
507
  textDisabled: "#475569",
508
- holiday: "#f87171",
509
- holidayBackground: "#451a1a",
510
- rangeBackground: "#1e3a8a",
511
- todayBorder: "#60a5fa"
508
+ holiday: "#fb7185",
509
+ holidayBackground: "#4c0519",
510
+ rangeBackground: "#312e81",
511
+ todayBorder: "#818cf8"
512
512
  },
513
513
  radii: {
514
- sm: "4px",
515
- md: "8px",
516
- lg: "12px",
514
+ sm: "6px",
515
+ md: "10px",
516
+ lg: "14px",
517
517
  full: "9999px"
518
518
  },
519
519
  shadows: {
@@ -521,25 +521,14 @@ var R = {
521
521
  md: "0 4px 6px -1px rgba(0, 0, 0, 0.4)",
522
522
  lg: "0 10px 15px -3px rgba(0, 0, 0, 0.5)"
523
523
  }
524
- };
525
- function re(e) {
526
- let t = {};
527
- for (let [n, r] of Object.entries(e)) if (r !== void 0) {
528
- let e = `--pdp-${n.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
529
- t[e] = r;
530
- }
531
- return t;
532
- }
533
- //#endregion
534
- //#region src/theme/ThemeProvider.tsx
535
- var z = e({
524
+ }, ne = e({
536
525
  theme: R,
537
526
  mode: "light"
538
- }), B = () => n(z) || {
527
+ }), B = () => n(ne) || {
539
528
  theme: R,
540
529
  mode: "light"
541
- }, ie = ({ children: e, mode: t = "light", customTheme: n }) => {
542
- let r = t === "dark" ? ne : R, a = i(() => n ? {
530
+ }, V = ({ children: e, mode: t = "light", customTheme: n }) => {
531
+ let r = t === "dark" ? z : R, a = i(() => n ? {
543
532
  mode: t,
544
533
  theme: {
545
534
  ...r,
@@ -566,11 +555,11 @@ var z = e({
566
555
  n,
567
556
  t
568
557
  ]);
569
- return /* @__PURE__ */ c(z.Provider, {
558
+ return /* @__PURE__ */ c(ne.Provider, {
570
559
  value: a,
571
560
  children: e
572
561
  });
573
- }, ae = ({ year: e, monthName: t, onPrevMonth: n, onNextMonth: r, onTitleClick: i, isPickerOpen: a }) => {
562
+ }, re = ({ year: e, monthName: t, onPrevMonth: n, onNextMonth: r, onTitleClick: i, isPickerOpen: a }) => {
574
563
  let { theme: o } = B(), s = {
575
564
  background: "transparent",
576
565
  border: "none",
@@ -686,7 +675,7 @@ var z = e({
686
675
  })
687
676
  ]
688
677
  });
689
- }, oe = ({ firstDayOfWeek: e = 0, classNames: t, styles: n }) => {
678
+ }, ie = ({ firstDayOfWeek: e = 0, classNames: t, styles: n }) => {
690
679
  let r = [...f.slice(e), ...f.slice(0, e)];
691
680
  return /* @__PURE__ */ c("div", {
692
681
  role: "row",
@@ -713,13 +702,15 @@ var z = e({
713
702
  children: e
714
703
  }, r))
715
704
  });
716
- }, V = (e) => {
705
+ }, ae = (e) => {
717
706
  let { theme: t } = B(), n = e.cell, r = n?.jalali ?? {
718
707
  year: 1403,
719
708
  month: 1,
720
709
  day: e.day ?? (n && "day" in n ? n.day : 1)
721
710
  }, i = r.day, a = n?.isCurrentMonth ?? e.isCurrentMonth ?? !0, o = n?.isSelected ?? e.isSelected ?? !1, s = n?.isToday ?? e.isToday ?? !1, l = e.isHoliday ?? (n && "isHoliday" in n ? n.isHoliday : !1), u = n?.isInRange ?? e.isInRange ?? !1, d = n?.isRangeStart ?? e.isRangeStart ?? !1, f = n?.isRangeEnd ?? e.isRangeEnd ?? !1, p = n?.isDisabled ?? e.disabled ?? !1, m = "transparent", h = a ? t.colors.textPrimary : t.colors.textDisabled;
722
- return u && a && (m = t.colors.rangeBackground), o || d || f ? (m = t.colors.primary, h = t.colors.primaryText) : l && a && (h = t.colors.holiday), /* @__PURE__ */ c("button", {
711
+ u && a && (m = t.colors.rangeBackground, h = t.colors.primary), o || d || f ? (m = t.colors.primary, h = t.colors.primaryText) : l && a && (h = t.colors.holiday);
712
+ let g = t.radii.md;
713
+ return d ? g = `${t.radii.md} 0 0 ${t.radii.md}` : f ? g = `0 ${t.radii.md} ${t.radii.md} 0` : u && (g = "0px"), /* @__PURE__ */ c("button", {
723
714
  type: "button",
724
715
  tabIndex: e.tabIndex ?? 0,
725
716
  disabled: p || !a,
@@ -734,12 +725,12 @@ var z = e({
734
725
  alignItems: "center",
735
726
  justifyContent: "center",
736
727
  border: s && !o && !d && !f ? `1.5px solid ${t.colors.todayBorder}` : "none",
737
- borderRadius: d || f || o ? t.radii.md : u ? "0px" : t.radii.md,
728
+ borderRadius: g,
738
729
  backgroundColor: m,
739
730
  color: h,
740
731
  cursor: p || !a ? "default" : "pointer",
741
- fontSize: "0.85rem",
742
- fontWeight: o || s ? 700 : 500,
732
+ fontSize: "0.875rem",
733
+ fontWeight: o || s || d || f ? 700 : 500,
743
734
  transition: "all 0.15s cubic-bezier(0.4, 0, 0.2, 1)",
744
735
  opacity: a ? 1 : .3,
745
736
  outline: "none",
@@ -753,7 +744,7 @@ var z = e({
753
744
  },
754
745
  children: e.digitType === "latin" ? i : F(i)
755
746
  });
756
- }, se = ({ currentYear: e, currentMonth: t, onSelectMonth: n, onSelectYear: i }) => {
747
+ }, oe = ({ currentYear: e, currentMonth: t, onSelectMonth: n, onSelectYear: i }) => {
757
748
  let { theme: o } = B(), s = a(null);
758
749
  return r(() => {
759
750
  s.current && s.current.scrollIntoView({
@@ -845,7 +836,7 @@ var z = e({
845
836
  })
846
837
  })]
847
838
  });
848
- }, ce = ({ onTodayClick: e, onClearClick: t, showClear: n = !0 }) => {
839
+ }, se = ({ onTodayClick: e, onClearClick: t, showClear: n = !0 }) => {
849
840
  let { theme: r } = B(), i = {
850
841
  padding: "6px 14px",
851
842
  borderRadius: r.radii.md,
@@ -894,7 +885,7 @@ var z = e({
894
885
  children: "پاک کردن"
895
886
  })]
896
887
  });
897
- }, le = ({ value: e, hours: t, minutes: n, seconds: r, hour: i = e?.hour ?? t ?? 0, minute: a = e?.minute ?? n ?? 0, second: o = e?.second ?? r ?? 0, minuteStep: u = 1, hourStep: d = 1, showSeconds: f = !1, onChange: p }) => {
888
+ }, ce = ({ value: e, hours: t, minutes: n, seconds: r, hour: i = e?.hour ?? t ?? 0, minute: a = e?.minute ?? n ?? 0, second: o = e?.second ?? r ?? 0, minuteStep: u = 1, hourStep: d = 1, showSeconds: f = !1, onChange: p }) => {
898
889
  let { theme: m } = B(), h = (e) => {
899
890
  p({
900
891
  hour: parseInt(e.target.value, 10),
@@ -1001,14 +992,14 @@ function U() {
1001
992
  second: e.getSeconds()
1002
993
  };
1003
994
  }
1004
- function ue(e) {
995
+ function le(e) {
1005
996
  return {
1006
997
  hour: Math.max(0, Math.min(23, e.hour)),
1007
998
  minute: Math.max(0, Math.min(59, e.minute)),
1008
999
  second: e.second === void 0 ? void 0 : Math.max(0, Math.min(59, e.second))
1009
1000
  };
1010
1001
  }
1011
- function de(e, t = !1, n = "persian") {
1002
+ function ue(e, t = !1, n = "persian") {
1012
1003
  if (!e) return "";
1013
1004
  let r = H(e.hour, n), i = H(e.minute, n);
1014
1005
  return t && e.second !== void 0 ? `${r}:${i}:${H(e.second, n)}` : `${r}:${i}`;
@@ -1019,7 +1010,7 @@ function W(e, t = "persian") {
1019
1010
  let n = I(e).replace(/\D/g, "").slice(0, 8), r = "";
1020
1011
  return n.length > 0 && (r = n.slice(0, 4)), n.length >= 5 && (r += `/${n.slice(4, 6)}`), n.length >= 7 && (r += `/${n.slice(6, 8)}`), t === "persian" ? F(r) : r;
1021
1012
  }
1022
- function G(e, t, n, r) {
1013
+ function de(e, t, n, r) {
1023
1014
  let i = I(e).trim();
1024
1015
  if (!i) return {
1025
1016
  isValid: !0,
@@ -1075,7 +1066,7 @@ var fe = ({ value: e, defaultValue: n = null, onChange: i, onValidationError: s,
1075
1066
  let D = (t) => {
1076
1067
  let n = t.target.value, r = W(n, u);
1077
1068
  if (C(r), r.length === 10 || r.length === 0) {
1078
- let t = G(r, d, f, p);
1069
+ let t = de(r, d, f, p);
1079
1070
  t.isValid ? (T(!1), s?.(null), e === void 0 && b(t.date), i?.(t.date)) : (T(!0), s?.(t.error));
1080
1071
  } else T(!1), s?.(null);
1081
1072
  }, O = t(() => {
@@ -1146,7 +1137,7 @@ function pe(e, t) {
1146
1137
  }
1147
1138
  //#endregion
1148
1139
  //#region src/holidays/iran-holidays.ts
1149
- var K = {
1140
+ var G = {
1150
1141
  "0-1": "جشن نوروز / سال نو",
1151
1142
  "0-2": "عید نوروز",
1152
1143
  "0-3": "عید نوروز",
@@ -1158,10 +1149,10 @@ var K = {
1158
1149
  "10-22": "پیروزی انقلاب اسلامی",
1159
1150
  "11-29": "روز ملی شدن صنعت نفت"
1160
1151
  };
1161
- function me(e) {
1152
+ function K(e) {
1162
1153
  return _(e.year, e.month, e.day).getDay() === 5;
1163
1154
  }
1164
- function he(e, t) {
1155
+ function me(e, t) {
1165
1156
  if (t && t.length > 0) {
1166
1157
  let n = t.find((t) => t.date.year === e.year && t.date.month === e.month && t.date.day === e.day);
1167
1158
  if (n) return {
@@ -1171,11 +1162,11 @@ function he(e, t) {
1171
1162
  };
1172
1163
  }
1173
1164
  let n = `${e.month}-${e.day}`;
1174
- return K[n] ? {
1175
- title: K[n],
1165
+ return G[n] ? {
1166
+ title: G[n],
1176
1167
  type: "solar",
1177
1168
  isOff: !0
1178
- } : me(e) ? {
1169
+ } : K(e) ? {
1179
1170
  title: "جمعه (تعطیل پایان هفته)",
1180
1171
  type: "solar",
1181
1172
  isOff: !0
@@ -1183,8 +1174,8 @@ function he(e, t) {
1183
1174
  }
1184
1175
  //#endregion
1185
1176
  //#region src/components/JalaliDatePicker.tsx
1186
- function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDate: p, maxDate: m, isDateDisabled: h, firstDayOfWeek: g = 0, variant: _ = "inline", placeholder: v = "انتخاب تاریخ...", digitType: b = "persian", className: w, style: T, classNames: E, styles: D, showFooter: k = !1, showStatusText: A = !0, showActions: M = !0, onConfirm: ee, enableTime: N = !1, timeValue: P, defaultTimeValue: I, onTimeChange: R, minuteStep: ne = 1, hourStep: re = 1, showSeconds: z = !1, numberOfMonths: B = 1, useMaskedInput: ie = !1, events: H, showHolidays: ue = !1, customHolidays: W }) {
1187
- let [G, K] = o(_ === "inline"), [me, ge] = o(!1), _e = a(null), q = _ === "modal", ve = i(() => {
1177
+ function he({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDate: p, maxDate: m, isDateDisabled: h, firstDayOfWeek: g = 0, variant: _ = "inline", placeholder: v = "انتخاب تاریخ...", digitType: b = "persian", className: w, style: T, classNames: E, styles: D, showFooter: k = !1, showStatusText: A = !0, showActions: M = !0, onConfirm: ee, enableTime: N = !1, timeValue: P, defaultTimeValue: I, onTimeChange: R, minuteStep: z = 1, hourStep: ne = 1, showSeconds: B = !1, numberOfMonths: V = 1, useMaskedInput: H = !1, events: le, showHolidays: W = !1, customHolidays: de }) {
1178
+ let [G, K] = o(_ === "inline"), [he, ge] = o(!1), _e = a(null), q = _ === "modal", ve = i(() => {
1188
1179
  if (n !== void 0) {
1189
1180
  if (!n) return null;
1190
1181
  if (n instanceof Date) return S(n);
@@ -1214,7 +1205,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1214
1205
  P === void 0 && Ce(e), R?.(e);
1215
1206
  }, [P, R]), Te = t((t) => {
1216
1207
  if (!t) return null;
1217
- let n = N ? J.hour : 0, r = N ? J.minute : 0, i = N && z ? J.second ?? 0 : 0;
1208
+ let n = N ? J.hour : 0, r = N ? J.minute : 0, i = N && B ? J.second ?? 0 : 0;
1218
1209
  if (e === "single" && !Array.isArray(t)) return C(t, n, r, i);
1219
1210
  if (e === "range" && Array.isArray(t)) {
1220
1211
  let [e, n] = t;
@@ -1225,7 +1216,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1225
1216
  e,
1226
1217
  N,
1227
1218
  J,
1228
- z
1219
+ B
1229
1220
  ]), { selected: Y, viewYear: X, viewMonth: Z, grid: Ee, goToPrevMonth: De, goToNextMonth: Oe, setView: Q, goToToday: ke, selectDate: Ae, setHoverDate: je, hoverDate: Me, clear: Ne } = j({
1230
1221
  mode: e,
1231
1222
  value: ve,
@@ -1265,7 +1256,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1265
1256
  year: X,
1266
1257
  month: Z + 1
1267
1258
  }, [X, Z]), ze = i(() => {
1268
- if (B !== 2) return [];
1259
+ if (V !== 2) return [];
1269
1260
  let t = x({
1270
1261
  year: $.year,
1271
1262
  month: $.month,
@@ -1286,7 +1277,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1286
1277
  };
1287
1278
  });
1288
1279
  }, [
1289
- B,
1280
+ V,
1290
1281
  $,
1291
1282
  g,
1292
1283
  be,
@@ -1298,7 +1289,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1298
1289
  if (!Y) return "";
1299
1290
  if (e === "single") {
1300
1291
  let e = L(Y, "YYYY/MM/DD", { digitType: b });
1301
- return N && J ? `${e} ${de(J, z, b)}` : e;
1292
+ return N && J ? `${e} ${ue(J, B, b)}` : e;
1302
1293
  }
1303
1294
  if (e === "range") {
1304
1295
  let [e, t] = Y || [null, null];
@@ -1312,19 +1303,19 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1312
1303
  b,
1313
1304
  N,
1314
1305
  J,
1315
- z
1306
+ B
1316
1307
  ]), Ve = (e, t, n, r = !0, i = !0) => /* @__PURE__ */ l("div", {
1317
1308
  style: { minWidth: "270px" },
1318
1309
  children: [
1319
- /* @__PURE__ */ c(ae, {
1310
+ /* @__PURE__ */ c(re, {
1320
1311
  year: e,
1321
1312
  monthName: u[t],
1322
1313
  onPrevMonth: r ? De : () => {},
1323
1314
  onNextMonth: i ? Oe : () => {},
1324
1315
  onTitleClick: () => ge((e) => !e),
1325
- isPickerOpen: me
1316
+ isPickerOpen: he
1326
1317
  }),
1327
- /* @__PURE__ */ c(oe, {
1318
+ /* @__PURE__ */ c(ie, {
1328
1319
  firstDayOfWeek: g,
1329
1320
  classNames: E,
1330
1321
  styles: D
@@ -1340,8 +1331,8 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1340
1331
  ...D?.grid
1341
1332
  },
1342
1333
  children: n.map((e, t) => {
1343
- let n = ue ? he(e.jalali, W) : null, r = pe(e.jalali, H);
1344
- return /* @__PURE__ */ c(V, {
1334
+ let n = W ? me(e.jalali, de) : null, r = pe(e.jalali, le);
1335
+ return /* @__PURE__ */ c(ae, {
1345
1336
  cell: e,
1346
1337
  digitType: b,
1347
1338
  isHoliday: !!n,
@@ -1404,7 +1395,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1404
1395
  flexDirection: "column",
1405
1396
  gap: "8px"
1406
1397
  },
1407
- children: me ? /* @__PURE__ */ c(se, {
1398
+ children: he ? /* @__PURE__ */ c(oe, {
1408
1399
  currentYear: X,
1409
1400
  currentMonth: Z,
1410
1401
  onSelectMonth: (e) => {
@@ -1418,23 +1409,23 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1418
1409
  gap: "16px",
1419
1410
  alignItems: "flex-start"
1420
1411
  },
1421
- children: [Ve(X, Z, Ee, !0, B === 1), B === 2 && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", { style: {
1412
+ children: [Ve(X, Z, Ee, !0, V === 1), V === 2 && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", { style: {
1422
1413
  width: "1px",
1423
1414
  backgroundColor: "var(--pdp-surface-border, #e2e8f0)",
1424
1415
  alignSelf: "stretch"
1425
1416
  } }), Ve($.year, $.month, ze, !1, !0)] })]
1426
1417
  }),
1427
- N && /* @__PURE__ */ c(le, {
1418
+ N && /* @__PURE__ */ c(ce, {
1428
1419
  value: J,
1429
1420
  onChange: we,
1430
- minuteStep: ne,
1431
- hourStep: re,
1432
- showSeconds: z,
1421
+ minuteStep: z,
1422
+ hourStep: ne,
1423
+ showSeconds: B,
1433
1424
  digitType: b,
1434
1425
  classNames: E,
1435
1426
  styles: D
1436
1427
  }),
1437
- k && /* @__PURE__ */ c(ce, {
1428
+ k && /* @__PURE__ */ c(se, {
1438
1429
  mode: e,
1439
1430
  digitType: b,
1440
1431
  showStatusText: A,
@@ -1463,7 +1454,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1463
1454
  ...T,
1464
1455
  ...D?.root
1465
1456
  },
1466
- children: [_ !== "inline" && (ie && e === "single" && _ === "popover" ? /* @__PURE__ */ c(fe, {
1457
+ children: [_ !== "inline" && (H && e === "single" && _ === "popover" ? /* @__PURE__ */ c(fe, {
1467
1458
  value: Pe,
1468
1459
  digitType: b,
1469
1460
  placeholder: v,
@@ -1490,7 +1481,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1490
1481
  textAlign: "right",
1491
1482
  direction: "rtl",
1492
1483
  fontSize: "14px",
1493
- minWidth: N ? "200px" : B === 2 ? "240px" : "150px",
1484
+ minWidth: N ? "200px" : V === 2 ? "240px" : "150px",
1494
1485
  ...D?.input
1495
1486
  }
1496
1487
  })), G && (q ? /* @__PURE__ */ c("div", {
@@ -1519,7 +1510,7 @@ function ge({ mode: e = "single", value: n, defaultValue: d, onChange: f, minDat
1519
1510
  }
1520
1511
  //#endregion
1521
1512
  //#region src/components/dual-calendar/DualMonthCalendar.tsx
1522
- var _e = ({ value: e, defaultValue: n = [null, null], onChange: r, initialViewDate: a, firstDayOfWeek: s = 0, digitType: d = "persian", minDate: f, maxDate: p, isDateDisabled: m }) => {
1513
+ var ge = ({ value: e, defaultValue: n = [null, null], onChange: r, initialViewDate: a, firstDayOfWeek: s = 0, digitType: d = "persian", minDate: f, maxDate: p, isDateDisabled: m }) => {
1523
1514
  let [h, g] = o(n), _ = e === void 0 ? h : e, [b, S] = o(null), C = i(() => v(), []), [w, T] = o(() => a || (_[0] ? {
1524
1515
  year: _[0].year,
1525
1516
  month: _[0].month
@@ -1650,7 +1641,7 @@ var _e = ({ value: e, defaultValue: n = [null, null], onChange: r, initialViewDa
1650
1641
  })
1651
1642
  ]
1652
1643
  }),
1653
- /* @__PURE__ */ c(oe, { firstDayOfWeek: s }),
1644
+ /* @__PURE__ */ c(ie, { firstDayOfWeek: s }),
1654
1645
  /* @__PURE__ */ c("div", {
1655
1646
  role: "grid",
1656
1647
  "aria-label": `${u[t]} ${F(e)}`,
@@ -1659,7 +1650,7 @@ var _e = ({ value: e, defaultValue: n = [null, null], onChange: r, initialViewDa
1659
1650
  gridTemplateColumns: "repeat(7, var(--pdp-cell-size, 36px))",
1660
1651
  gap: "4px"
1661
1652
  },
1662
- children: n.map((e, t) => /* @__PURE__ */ c(V, {
1653
+ children: n.map((e, t) => /* @__PURE__ */ c(ae, {
1663
1654
  cell: e,
1664
1655
  digitType: d,
1665
1656
  tabIndex: 0,
@@ -1695,6 +1686,6 @@ var _e = ({ value: e, defaultValue: n = [null, null], onChange: r, initialViewDa
1695
1686
  });
1696
1687
  };
1697
1688
  //#endregion
1698
- export { ie as DatePickerThemeProvider, V as DayCell, _e as DualMonthCalendar, ae as Header, d as JALALI_MONTH_NAMES_EN, ge as JalaliDatePicker, fe as MaskedDateInput, se as MonthYearPicker, u as PERSIAN_MONTH_NAMES, p as PERSIAN_WEEK_DAYS_LONG, f as PERSIAN_WEEK_DAYS_SHORT, le as TimePicker, oe as Weekdays, T as addDaysToJalali, E as addJalaliDays, W as applyDateMask, M as calculateNextFocusedDate, ue as clampTime, D as compareJalaliDates, ne as darkTheme, L as formatJalaliDate, H as formatTimeSegment, de as formatTimeString, x as generateJalaliCalendarGrid, ee as getAriaDayLabel, U as getCurrentTime, h as getDaysInJalaliMonth, pe as getEventsForDate, w as getJalaliDayOfWeek, A as getJalaliMonthRange, k as getJalaliWeekRange, v as getTodayJalali, g as gregorianToJalali, O as isJalaliDateBetween, m as isJalaliLeapYear, y as isSameJalaliDay, _ as jalaliToGregorian, C as jalaliToJsDate, S as jsDateToJalali, R as lightTheme, G as parseAndValidateJalaliString, b as toJalaliDate, I as toLatinDigits, F as toPersianDigits, re as tokensToCssVariables, te as useCalendarKeyboard, j as useJalaliDatePicker, B as useTheme };
1689
+ export { V as DatePickerThemeProvider, ae as DayCell, ge as DualMonthCalendar, re as Header, d as JALALI_MONTH_NAMES_EN, he as JalaliDatePicker, fe as MaskedDateInput, oe as MonthYearPicker, u as PERSIAN_MONTH_NAMES, p as PERSIAN_WEEK_DAYS_LONG, f as PERSIAN_WEEK_DAYS_SHORT, ce as TimePicker, ie as Weekdays, T as addDaysToJalali, E as addJalaliDays, W as applyDateMask, M as calculateNextFocusedDate, le as clampTime, D as compareJalaliDates, z as darkTheme, L as formatJalaliDate, H as formatTimeSegment, ue as formatTimeString, x as generateJalaliCalendarGrid, ee as getAriaDayLabel, U as getCurrentTime, h as getDaysInJalaliMonth, pe as getEventsForDate, w as getJalaliDayOfWeek, A as getJalaliMonthRange, k as getJalaliWeekRange, v as getTodayJalali, g as gregorianToJalali, O as isJalaliDateBetween, m as isJalaliLeapYear, y as isSameJalaliDay, _ as jalaliToGregorian, C as jalaliToJsDate, S as jsDateToJalali, R as lightTheme, de as parseAndValidateJalaliString, b as toJalaliDate, I as toLatinDigits, F as toPersianDigits, te as useCalendarKeyboard, j as useJalaliDatePicker, B as useTheme };
1699
1690
 
1700
1691
  //# sourceMappingURL=index.mjs.map