@himal_bhattarai/nepali-datepicker 1.1.1 → 1.1.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/README.md CHANGED
@@ -272,21 +272,41 @@ getTodayBS() // → { year: 2082, month: 11, day: 22 }
272
272
  />
273
273
  ```
274
274
 
275
- ### Using AD date for a backend API
275
+ ### Sending BS date to a backend API
276
276
  ```jsx
277
277
  <NepaliDatePicker
278
278
  value={date}
279
- onChange={(bs, ad) => {
279
+ onChange={(bs) => {
280
280
  setDate(bs);
281
- // Send AD date to your backend
281
+
282
+ // Send BS date as separate fields
282
283
  fetch("/api/booking", {
283
284
  method: "POST",
284
- body: JSON.stringify({ date: ad.toISOString() }),
285
+ body: JSON.stringify({
286
+ year: bs.year, // 2081
287
+ month: bs.month, // 11
288
+ day: bs.day, // 22
289
+ }),
285
290
  });
286
291
  }}
287
292
  />
288
293
  ```
289
294
 
295
+ Or as a formatted BS date string:
296
+ ```jsx
297
+ onChange={(bs) => {
298
+ setDate(bs);
299
+
300
+ const bsFormatted = `${bs.year}-${String(bs.month).padStart(2,"0")}-${String(bs.day).padStart(2,"0")}`;
301
+ // → "2081-11-22"
302
+
303
+ fetch("/api/booking", {
304
+ method: "POST",
305
+ body: JSON.stringify({ date: bsFormatted }),
306
+ });
307
+ }}
308
+ ```
309
+
290
310
  ---
291
311
 
292
312
  ## How the Calendar Works
@@ -5,7 +5,7 @@ function Ee() {
5
5
  if (pe) return W;
6
6
  pe = 1;
7
7
  var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function b(c, d, i) {
8
+ function g(c, d, i) {
9
9
  var x = null;
10
10
  if (i !== void 0 && (x = "" + i), d.key !== void 0 && (x = "" + d.key), "key" in d) {
11
11
  i = {};
@@ -20,7 +20,7 @@ function Ee() {
20
20
  props: i
21
21
  };
22
22
  }
23
- return W.Fragment = l, W.jsx = b, W.jsxs = b, W;
23
+ return W.Fragment = l, W.jsx = g, W.jsxs = g, W;
24
24
  }
25
25
  var V = {};
26
26
  var ue;
@@ -34,7 +34,7 @@ function Se() {
34
34
  switch (e) {
35
35
  case w:
36
36
  return "Fragment";
37
- case g:
37
+ case b:
38
38
  return "Profiler";
39
39
  case D:
40
40
  return "StrictMode";
@@ -72,7 +72,7 @@ function Se() {
72
72
  function l(e) {
73
73
  return "" + e;
74
74
  }
75
- function b(e) {
75
+ function g(e) {
76
76
  try {
77
77
  l(e);
78
78
  var o = !1;
@@ -196,7 +196,7 @@ React keys must be passed directly to JSX without using spread:
196
196
  u
197
197
  ), Z[u + p] = !0);
198
198
  }
199
- if (u = null, s !== void 0 && (b(s), u = "" + s), x(o) && (b(o.key), u = "" + o.key), "key" in o) {
199
+ if (u = null, s !== void 0 && (g(s), u = "" + s), x(o) && (g(o.key), u = "" + o.key), "key" in o) {
200
200
  s = {};
201
201
  for (var z in o)
202
202
  z !== "key" && (s[z] = o[z]);
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
219
219
  function S(e) {
220
220
  return typeof e == "object" && e !== null && e.$$typeof === M;
221
221
  }
222
- var v = je, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), h = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), te = /* @__PURE__ */ Symbol.for("react.client.reference"), A = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, oe = Array.isArray, L = console.createTask ? console.createTask : function() {
222
+ var v = je, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), h = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), te = /* @__PURE__ */ Symbol.for("react.client.reference"), A = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, oe = Array.isArray, L = console.createTask ? console.createTask : function() {
223
223
  return null;
224
224
  };
225
225
  v = {
@@ -352,7 +352,7 @@ const X = {
352
352
  2089: [31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],
353
353
  2090: [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]
354
354
  }, ee = new Date(1943, 3, 14);
355
- function Te(n, l, b) {
355
+ function Te(n, l, g) {
356
356
  let c = 0;
357
357
  for (let i = 2e3; i < n; i++) {
358
358
  const x = X[i];
@@ -360,15 +360,15 @@ function Te(n, l, b) {
360
360
  }
361
361
  const d = X[n] || [];
362
362
  for (let i = 0; i < l - 1; i++) c += d[i] || 30;
363
- return c + b - 1;
363
+ return c + g - 1;
364
364
  }
365
- function U(n, l, b) {
365
+ function U(n, l, g) {
366
366
  const c = new Date(ee);
367
- return c.setDate(c.getDate() + Te(n, l, b)), c;
367
+ return c.setDate(c.getDate() + Te(n, l, g)), c;
368
368
  }
369
369
  function Re(n) {
370
- const l = new Date(n.getFullYear(), n.getMonth(), n.getDate()), b = new Date(ee.getFullYear(), ee.getMonth(), ee.getDate());
371
- let c = Math.round((l - b) / 864e5), d = 2e3;
370
+ const l = new Date(n.getFullYear(), n.getMonth(), n.getDate()), g = new Date(ee.getFullYear(), ee.getMonth(), ee.getDate());
371
+ let c = Math.round((l - g) / 864e5), d = 2e3;
372
372
  for (; d <= 2090; ) {
373
373
  const a = X[d], f = a ? a.reduce((j, _) => j + _, 0) : 365;
374
374
  if (c < f) break;
@@ -420,7 +420,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
420
420
  width:100%; min-width:270px;
421
421
  padding:13px 48px 13px 17px;
422
422
  border:2px solid var(--ndp-border); border-radius:13px;
423
- background:var(--ndp-background); color:var(--tx);
423
+ background:var(--ndp-background); color:var(--ndp-text);
424
424
  font-family:'DM Sans',sans-serif; font-size:15px;
425
425
  cursor:pointer; outline:none;
426
426
  transition:border-color .2s,box-shadow .2s;
@@ -435,8 +435,8 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
435
435
  .ndp-popup{
436
436
  position:absolute; top:calc(100% + 9px); left:0; z-index:9999;
437
437
  width:336px;
438
- background:var(--ndp-background); border-radius:var(--r);
439
- box-shadow:var(--sh); border:1px solid var(--ndp-border);
438
+ background:var(--ndp-background); border-radius:var(--ndp-radius);
439
+ box-shadow:var(--ndp-shadow); border:1px solid var(--ndp-border);
440
440
  overflow:hidden;
441
441
  animation:ndp-pop .18s cubic-bezier(.34,1.56,.64,1);
442
442
  transform-origin:top left;
@@ -448,7 +448,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
448
448
  .ndp-slide-right{animation:ndp-slide-right .2s cubic-bezier(.25,.8,.25,1);}
449
449
 
450
450
  /* Header */
451
- .ndp-hd{background:var(--ndp-primary);padding:14px;color:#fff;}
451
+ .ndp-hd{background:var(--ndp-primary);padding:14px;color:#fff;border-radius:var(--ndp-radius) var(--ndp-radius) 0 0;}
452
452
  .ndp-hd-row{display:flex;align-items:center;justify-content:space-between;}
453
453
  .ndp-nav{
454
454
  width:32px;height:32px;display:flex;align-items:center;justify-content:center;
@@ -470,7 +470,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
470
470
  .ndp-dd-trigger{
471
471
  width:100%;padding:6px 28px 6px 10px;
472
472
  border:1px solid var(--ndp-border);border-radius:8px;
473
- background:#fff;color:var(--tx);
473
+ background:var(--ndp-background);color:var(--ndp-text);
474
474
  font-family:'Noto Sans Devanagari',sans-serif;font-size:13px;font-weight:500;
475
475
  cursor:pointer;outline:none;
476
476
  display:flex;align-items:center;justify-content:space-between;gap:4px;
@@ -489,7 +489,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
489
489
  .ndp-dd-panel{
490
490
  position:absolute;top:calc(100% + 5px);left:0;
491
491
  min-width:100%;
492
- background:#fff;border:1px solid var(--ndp-border);border-radius:10px;
492
+ background:var(--ndp-background);border:1px solid var(--ndp-border);border-radius:10px;
493
493
  box-shadow:0 8px 28px rgba(0,0,0,0.13);
494
494
  z-index:999;overflow:hidden;
495
495
  animation:ndp-dd-in .15s cubic-bezier(.25,.8,.25,1);
@@ -505,7 +505,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
505
505
  .ndp-dd-month-item{
506
506
  padding:7px 4px;text-align:center;
507
507
  border-radius:7px;cursor:pointer;border:none;background:transparent;
508
- font-family:'Noto Sans Devanagari',sans-serif;font-size:12.5px;font-weight:500;color:var(--tx);
508
+ font-family:'Noto Sans Devanagari',sans-serif;font-size:12.5px;font-weight:500;color:var(--ndp-text);
509
509
  transition:background .12s,color .12s;
510
510
  white-space:nowrap;
511
511
  }
@@ -521,7 +521,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
521
521
  .ndp-dd-years::-webkit-scrollbar-thumb{background:var(--ndp-border);border-radius:4px;}
522
522
  .ndp-dd-year-item{
523
523
  padding:7px 14px;border-radius:7px;cursor:pointer;border:none;background:transparent;
524
- font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;color:var(--tx);
524
+ font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;color:var(--ndp-text);
525
525
  width:100%;text-align:center;
526
526
  transition:background .12s,color .12s;
527
527
  display:block;
@@ -549,7 +549,7 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
549
549
  display:flex;align-items:center;justify-content:center;
550
550
  border-radius:8px;font-size:13px;
551
551
  font-family:'Noto Sans Devanagari',sans-serif;
552
- cursor:pointer;border:none;background:transparent;color:var(--tx);
552
+ cursor:pointer;border:none;background:transparent;color:var(--ndp-text);
553
553
  transition:background .12s,color .12s,transform .1s;
554
554
  font-weight:500;width:100%;
555
555
  }
@@ -573,9 +573,11 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
573
573
  padding:9px 12px 12px;
574
574
  border-top:1px solid var(--ndp-border);
575
575
  display:flex;align-items:center;justify-content:space-between;gap:8px;
576
+ border-radius:0 0 var(--ndp-radius) var(--ndp-radius);
577
+ background:var(--ndp-background);
576
578
  }
577
579
  .ndp-ad{font-size:12px;color:var(--ndp-text-muted);}
578
- .ndp-ad b{color:var(--tx);}
580
+ .ndp-ad b{color:var(--ndp-text);}
579
581
  .ndp-today-btn{
580
582
  font-size:12px;padding:5px 13px;
581
583
  background:var(--ndp-controls-bg);color:#9A7000;
@@ -585,17 +587,17 @@ const he = ["बैशाख", "जेठ", "असार", "श्रावण"
585
587
  }
586
588
  .ndp-today-btn:hover{background:#FDEECA;}
587
589
  `;
588
- let ge = !1;
590
+ let be = !1;
589
591
  function Ye() {
590
- if (!ge && typeof document < "u") {
592
+ if (!be && typeof document < "u") {
591
593
  const n = document.createElement("style");
592
- n.textContent = Me, document.head.appendChild(n), ge = !0;
594
+ n.textContent = Me, document.head.appendChild(n), be = !0;
593
595
  }
594
596
  }
595
597
  function Le({
596
598
  value: n,
597
599
  onChange: l,
598
- language: b = "np",
600
+ language: g = "np",
599
601
  placeholder: c,
600
602
  minYear: d = 2060,
601
603
  maxYear: i = 2090,
@@ -603,7 +605,7 @@ function Le({
603
605
  styles: a = {}
604
606
  }) {
605
607
  Ye();
606
- const f = b !== "en", j = K(), [_, E] = C(!1), [S, v] = C(null), [M, R] = C(!1), [w, D] = C(!1), [g, N] = C(() => n?.year ?? K().year), [h, y] = C(() => n?.month ?? K().month), Y = ce(null), $ = ce(null);
608
+ const f = g !== "en", j = K(), [_, E] = C(!1), [S, v] = C(null), [M, R] = C(!1), [w, D] = C(!1), [b, N] = C(() => n?.year ?? K().year), [h, y] = C(() => n?.month ?? K().month), Y = ce(null), $ = ce(null);
607
609
  de(() => {
608
610
  const t = (m) => {
609
611
  Y.current && !Y.current.contains(m.target) && (E(!1), R(!1), D(!1));
@@ -619,15 +621,15 @@ function Le({
619
621
  }, [w]);
620
622
  const re = _e((t) => {
621
623
  if (!t) return;
622
- l?.({ year: g, month: h, day: t }, U(g, h, t)), E(!1);
623
- }, [g, h, l]), B = () => {
624
+ l?.({ year: b, month: h, day: t }, U(b, h, t)), E(!1);
625
+ }, [b, h, l]), B = () => {
624
626
  v("right"), setTimeout(() => v(null), 200), h === 1 ? (y(12), N((t) => t - 1)) : y((t) => t - 1);
625
627
  }, ne = () => {
626
628
  v("left"), setTimeout(() => v(null), 200), h === 12 ? (y(1), N((t) => t + 1)) : y((t) => t + 1);
627
629
  }, te = () => {
628
630
  const t = K();
629
631
  N(t.year), y(t.month), l?.(t, U(t.year, t.month, t.day)), E(!1);
630
- }, A = me(g, h), O = De(g, h), oe = h === 1 ? 12 : h - 1, L = h === 1 ? g - 1 : g, q = me(L, oe), J = Array.from({ length: O }, (t, m) => ({
632
+ }, A = me(b, h), O = De(b, h), oe = h === 1 ? 12 : h - 1, L = h === 1 ? b - 1 : b, q = me(L, oe), J = Array.from({ length: O }, (t, m) => ({
631
633
  day: q - O + 1 + m,
632
634
  overflow: "prev"
633
635
  })), H = Array.from({ length: A }, (t, m) => ({
@@ -636,7 +638,7 @@ function Le({
636
638
  })), Z = 42 - (O + A), e = Array.from({ length: Z }, (t, m) => ({
637
639
  day: m + 1,
638
640
  overflow: "next"
639
- })), o = [...J, ...H, ...e], s = f ? he : xe, p = f ? Ae : Oe, T = s[h - 1], P = f ? G(g) : String(g), k = U(g, h, 1).toLocaleDateString("en-GB", { month: "short", year: "numeric" }), z = n ? f ? `${G(n.year)} ${he[n.month - 1]} ${G(n.day)}` : `${n.year} ${xe[n.month - 1]} ${n.day}` : "", se = f ? "मिति छान्नुहोस्" : "Select BS date", ie = n ? U(n.year, n.month, n.day) : null, be = Array.from({ length: i - d + 1 }, (t, m) => d + m), ve = {
641
+ })), o = [...J, ...H, ...e], s = f ? he : xe, p = f ? Ae : Oe, T = s[h - 1], P = f ? G(b) : String(b), k = U(b, h, 1).toLocaleDateString("en-GB", { month: "short", year: "numeric" }), z = n ? f ? `${G(n.year)} ${he[n.month - 1]} ${G(n.day)}` : `${n.year} ${xe[n.month - 1]} ${n.day}` : "", se = f ? "मिति छान्नुहोस्" : "Select BS date", ie = n ? U(n.year, n.month, n.day) : null, ge = Array.from({ length: i - d + 1 }, (t, m) => d + m), ve = {
640
642
  ...a.primary && { "--ndp-primary": a.primary },
641
643
  ...a.primarySoft && { "--ndp-primary-soft": a.primarySoft },
642
644
  ...a.background && { "--ndp-background": a.background },
@@ -720,10 +722,10 @@ function Le({
720
722
  ]
721
723
  }
722
724
  ),
723
- w && /* @__PURE__ */ r.jsx("div", { className: "ndp-dd-panel", children: /* @__PURE__ */ r.jsx("div", { className: "ndp-dd-years", ref: $, children: be.map((t) => /* @__PURE__ */ r.jsx(
725
+ w && /* @__PURE__ */ r.jsx("div", { className: "ndp-dd-panel", children: /* @__PURE__ */ r.jsx("div", { className: "ndp-dd-years", ref: $, children: ge.map((t) => /* @__PURE__ */ r.jsx(
724
726
  "button",
725
727
  {
726
- className: `ndp-dd-year-item${g === t ? " sel" : ""}`,
728
+ className: `ndp-dd-year-item${b === t ? " sel" : ""}`,
727
729
  onClick: () => {
728
730
  N(t), D(!1);
729
731
  },
@@ -736,7 +738,7 @@ function Le({
736
738
  /* @__PURE__ */ r.jsxs("div", { className: "ndp-body", children: [
737
739
  /* @__PURE__ */ r.jsx("div", { className: "ndp-wdays", children: p.map((t, m) => /* @__PURE__ */ r.jsx("div", { className: "ndp-wday", children: t }, m)) }),
738
740
  /* @__PURE__ */ r.jsx("div", { className: `ndp-grid${S ? ` ndp-slide-${S}` : ""}`, children: o.map(({ day: t, overflow: m }, le) => {
739
- const ye = le % 7 === 6, F = m !== null, we = !F && t === j.day && h === j.month && g === j.year, ke = !F && n && t === n.day && h === n.month && g === n.year;
741
+ const ye = le % 7 === 6, F = m !== null, we = !F && t === j.day && h === j.month && b === j.year, ke = !F && n && t === n.day && h === n.month && b === n.year;
740
742
  let I = "ndp-cell";
741
743
  return F ? I += " overflow" : ye && (I += " wknd"), we && (I += " today"), ke && (I += " picked"), /* @__PURE__ */ r.jsx(
742
744
  "button",
@@ -1,9 +1,9 @@
1
- (function(y,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(y=typeof globalThis<"u"?globalThis:y||self,x(y.NepaliDatePicker={},y.React))})(this,(function(y,x){"use strict";var Z={exports:{}},B={};var ce;function ve(){if(ce)return B;ce=1;var n=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function v(l,d,i){var g=null;if(i!==void 0&&(g=""+i),d.key!==void 0&&(g=""+d.key),"key"in d){i={};for(var a in d)a!=="key"&&(i[a]=d[a])}else i=d;return d=i.ref,{$$typeof:n,type:l,key:g,ref:d!==void 0?d:null,props:i}}return B.Fragment=c,B.jsx=v,B.jsxs=v,B}var L={};var le;function ye(){return le||(le=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case b:return"Profiler";case P:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case O:return"Portal";case h:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case k:var o=e.render;return e=e.displayName,e||(e=o.displayName||o.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return o=e.displayName||null,o!==null?o:n(e.type)||"Memo";case U:o=e._payload,e=e._init;try{return n(e(o))}catch{}}return null}function c(e){return""+e}function v(e){try{c(e);var o=!1}catch{o=!0}if(o){o=console;var s=o.error,p=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",p),c(e)}}function l(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===U)return"<...>";try{var o=n(e);return o?"<"+o+">":"<...>"}catch{return"<...>"}}function d(){var e=C.A;return e===null?null:e.getOwner()}function i(){return Error("react-stack-top-frame")}function g(e){if(M.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function a(e,o){function s(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function u(){var e=n(this.type);return q[e]||(q[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function _(e,o,s,p,D,Y){var f=s.ref;return e={$$typeof:W,type:e,key:o,props:s,_owner:p},(f!==void 0?f:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:u}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function E(e,o,s,p,D,Y){var f=o.children;if(f!==void 0)if(p)if(se(f)){for(p=0;p<f.length;p++)N(f[p]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(f);if(M.call(o,"key")){f=n(e);var S=Object.keys(o).filter(function(ie){return ie!=="key"});p=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",re[f+p]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(y,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(y=typeof globalThis<"u"?globalThis:y||self,x(y.NepaliDatePicker={},y.React))})(this,(function(y,x){"use strict";var Z={exports:{}},B={};var ce;function ve(){if(ce)return B;ce=1;var n=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function v(l,d,i){var b=null;if(i!==void 0&&(b=""+i),d.key!==void 0&&(b=""+d.key),"key"in d){i={};for(var a in d)a!=="key"&&(i[a]=d[a])}else i=d;return d=i.ref,{$$typeof:n,type:l,key:b,ref:d!==void 0?d:null,props:i}}return B.Fragment=c,B.jsx=v,B.jsxs=v,B}var L={};var le;function ye(){return le||(le=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case g:return"Profiler";case P:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case O:return"Portal";case h:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case k:var o=e.render;return e=e.displayName,e||(e=o.displayName||o.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return o=e.displayName||null,o!==null?o:n(e.type)||"Memo";case U:o=e._payload,e=e._init;try{return n(e(o))}catch{}}return null}function c(e){return""+e}function v(e){try{c(e);var o=!1}catch{o=!0}if(o){o=console;var s=o.error,p=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",p),c(e)}}function l(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===U)return"<...>";try{var o=n(e);return o?"<"+o+">":"<...>"}catch{return"<...>"}}function d(){var e=C.A;return e===null?null:e.getOwner()}function i(){return Error("react-stack-top-frame")}function b(e){if(M.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function a(e,o){function s(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function f(){var e=n(this.type);return q[e]||(q[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function _(e,o,s,p,D,Y){var u=s.ref;return e={$$typeof:W,type:e,key:o,props:s,_owner:p},(u!==void 0?u:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:f}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function E(e,o,s,p,D,Y){var u=o.children;if(u!==void 0)if(p)if(se(u)){for(p=0;p<u.length;p++)N(u[p]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(u);if(M.call(o,"key")){u=n(e);var S=Object.keys(o).filter(function(ie){return ie!=="key"});p=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",re[u+p]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,p,f,S,f),re[f+p]=!0)}if(f=null,s!==void 0&&(v(s),f=""+s),g(o)&&(v(o.key),f=""+o.key),"key"in o){s={};for(var J in o)J!=="key"&&(s[J]=o[J])}else s=o;return f&&a(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),_(e,f,s,d(),D,Y)}function N(e){T(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===U&&(e._payload.status==="fulfilled"?T(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function T(e){return typeof e=="object"&&e!==null&&e.$$typeof===W}var w=x,W=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),h=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),C=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,se=Array.isArray,X=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var K,q={},ee=w.react_stack_bottom_frame.bind(w,i)(),de=X(l(i)),re={};L.Fragment=j,L.jsx=function(e,o,s){var p=1e4>C.recentlyCreatedOwnerStacks++;return E(e,o,s,!1,p?Error("react-stack-top-frame"):ee,p?X(l(e)):de)},L.jsxs=function(e,o,s){var p=1e4>C.recentlyCreatedOwnerStacks++;return E(e,o,s,!0,p?Error("react-stack-top-frame"):ee,p?X(l(e)):de)}})()),L}var pe;function we(){return pe||(pe=1,process.env.NODE_ENV==="production"?Z.exports=ve():Z.exports=ye()),Z.exports}var r=we();const F={2e3:[30,32,31,32,31,30,30,30,29,30,29,31],2001:[31,31,32,31,31,31,30,29,30,29,30,30],2002:[31,31,32,32,31,30,30,29,30,29,30,30],2003:[31,32,31,32,31,30,30,30,29,29,30,31],2004:[30,32,31,32,31,30,30,30,29,30,29,31],2005:[31,31,32,31,31,31,30,29,30,29,30,30],2006:[31,31,32,32,31,30,30,29,30,29,30,30],2007:[31,32,31,32,31,30,30,30,29,29,30,31],2008:[31,31,31,32,31,31,29,30,30,29,29,31],2009:[31,31,32,31,31,31,30,29,30,29,30,30],2010:[31,31,32,32,31,30,30,29,30,29,30,30],2011:[31,32,31,32,31,30,30,30,29,29,30,31],2012:[31,31,31,32,31,31,29,30,30,29,30,30],2013:[31,31,32,31,31,31,30,29,30,29,30,30],2014:[31,31,32,32,31,30,30,29,30,29,30,30],2015:[31,32,31,32,31,30,30,30,29,29,30,31],2016:[31,31,31,32,31,31,29,30,30,29,30,30],2017:[31,31,32,31,31,31,30,29,30,29,30,30],2018:[31,31,32,32,31,30,30,29,30,29,30,30],2019:[31,32,31,32,31,30,30,30,29,29,30,31],2020:[31,31,31,32,31,31,30,29,30,29,30,30],2021:[31,31,32,31,31,31,30,29,30,29,30,30],2022:[31,31,32,32,31,30,30,29,30,29,30,30],2023:[31,32,31,32,31,30,30,30,29,29,30,31],2024:[31,31,31,32,31,31,30,29,30,29,30,30],2025:[31,31,32,31,31,31,30,29,30,29,30,30],2026:[31,31,32,32,31,30,30,29,30,29,30,30],2027:[31,32,31,32,31,30,30,30,29,29,30,32],2028:[30,32,31,32,31,30,30,30,29,30,29,31],2029:[31,31,32,31,31,31,30,29,30,29,30,30],2030:[31,31,32,32,31,30,30,29,30,29,30,30],2031:[31,32,31,32,31,30,30,30,29,29,30,31],2032:[30,32,31,32,31,30,30,30,29,30,29,31],2033:[31,31,32,31,31,31,30,29,30,29,30,30],2034:[31,31,32,32,31,30,30,29,30,29,30,30],2035:[31,32,31,32,31,30,30,30,29,29,30,31],2036:[30,32,31,32,31,31,29,30,30,29,29,31],2037:[31,31,32,31,31,31,30,29,30,29,30,30],2038:[31,31,32,32,31,30,30,29,30,29,30,30],2039:[31,32,31,32,31,30,30,30,29,29,30,31],2040:[31,31,31,32,31,31,29,30,30,29,30,30],2041:[31,31,32,31,31,31,30,29,30,29,30,30],2042:[31,31,32,32,31,30,30,29,30,29,30,31],2043:[31,32,31,32,31,30,30,30,29,29,30,30],2044:[31,31,31,32,31,31,29,30,30,29,30,30],2045:[31,31,32,31,31,31,30,29,30,29,30,30],2046:[31,31,32,32,31,30,30,29,30,29,30,30],2047:[31,32,31,32,31,30,30,30,29,29,30,31],2048:[30,32,31,32,31,30,30,30,29,30,29,31],2049:[31,31,32,31,31,31,30,29,30,29,30,30],2050:[31,31,32,32,31,30,30,29,30,29,30,30],2051:[31,32,31,32,31,30,30,30,29,29,30,31],2052:[31,31,31,32,31,31,29,30,30,29,30,30],2053:[31,31,32,31,31,31,30,29,30,29,30,30],2054:[31,31,32,32,31,30,30,29,30,29,30,30],2055:[31,32,31,32,31,30,30,30,29,29,30,31],2056:[31,31,31,32,31,31,30,29,30,29,30,30],2057:[31,31,32,31,31,31,30,29,30,29,30,30],2058:[31,31,32,32,31,30,30,29,30,29,30,30],2059:[31,32,31,32,31,30,30,30,29,29,30,31],2060:[31,31,31,32,31,31,30,29,30,29,30,30],2061:[31,31,32,31,31,31,30,29,30,29,30,30],2062:[31,31,32,32,31,30,30,29,30,29,30,30],2063:[31,32,31,32,31,30,30,30,29,29,30,31],2064:[31,31,31,32,31,31,29,30,29,30,29,31],2065:[31,31,32,31,31,31,30,29,30,29,30,30],2066:[31,31,32,32,31,30,30,29,30,29,30,30],2067:[31,32,31,32,31,30,30,30,29,29,30,31],2068:[31,31,31,32,31,31,29,30,30,29,30,30],2069:[31,31,32,31,31,31,30,29,30,29,30,30],2070:[31,31,32,32,31,30,30,29,30,29,30,30],2071:[31,32,31,32,31,30,30,30,29,29,30,31],2072:[31,31,31,32,31,31,29,30,30,29,30,30],2073:[31,31,32,31,31,31,30,29,30,29,30,30],2074:[31,31,32,32,31,30,30,29,30,29,30,30],2075:[31,32,31,32,31,30,30,30,29,29,30,31],2076:[31,31,31,32,31,31,30,29,30,29,30,30],2077:[31,31,32,31,31,31,30,29,30,29,30,30],2078:[31,31,32,32,31,30,30,29,30,29,30,30],2079:[31,32,31,32,31,30,30,30,29,29,30,31],2080:[31,31,31,32,31,31,30,29,30,29,30,30],2081:[31,31,32,31,31,31,30,29,30,29,30,30],2082:[31,32,31,32,31,30,30,29,30,29,30,30],2083:[31,32,31,32,31,30,30,30,29,30,29,31],2084:[31,31,31,32,31,31,30,29,30,29,30,30],2085:[31,31,32,31,31,31,30,29,30,29,30,30],2086:[31,32,31,32,31,30,30,29,30,29,30,30],2087:[31,32,31,32,31,30,30,30,29,29,30,31],2088:[30,32,31,32,31,30,30,30,29,30,29,31],2089:[31,31,32,31,31,31,30,29,30,29,30,30],2090:[31,31,32,32,31,30,30,29,30,29,30,30]},Q=new Date(1943,3,14);function ke(n,c,v){let l=0;for(let i=2e3;i<n;i++){const g=F[i];g&&(l+=g.reduce((a,u)=>a+u,0))}const d=F[n]||[];for(let i=0;i<c-1;i++)l+=d[i]||30;return l+v-1}function A(n,c,v){const l=new Date(Q);return l.setDate(l.getDate()+ke(n,c,v)),l}function fe(n){const c=new Date(n.getFullYear(),n.getMonth(),n.getDate()),v=new Date(Q.getFullYear(),Q.getMonth(),Q.getDate());let l=Math.round((c-v)/864e5),d=2e3;for(;d<=2090;){const a=F[d],u=a?a.reduce((_,E)=>_+E,0):365;if(l<u)break;l-=u,d++}const i=F[d]||[];let g=1;for(let a=0;a<12;a++){const u=i[a]||30;if(l<u){g=a+1;break}l-=u,a===11&&(g=12)}return{year:d,month:g,day:l+1}}function z(){return fe(new Date)}function ne(n,c){return(F[n]||[])[c-1]||30}function ue(n,c){return A(n,c,1).getDay()}const me=["बैशाख","जेठ","असार","श्रावण","भाद्र","असोज","कार्तिक","मङ्सिर","पुष","माघ","फागुन","चैत्र"],he=["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],je=["आइत","सोम","मङ्गल","बुध","बिही","शुक्र","शनि"],Se=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_e=["०","१","२","३","४","५","६","७","८","९"],I=n=>String(n).split("").map(c=>_e[+c]??c).join(""),Ee=n=>n?n.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"",Ne=`
6
+ <%s key={someKey} {...props} />`,p,u,S,u),re[u+p]=!0)}if(u=null,s!==void 0&&(v(s),u=""+s),b(o)&&(v(o.key),u=""+o.key),"key"in o){s={};for(var J in o)J!=="key"&&(s[J]=o[J])}else s=o;return u&&a(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),_(e,u,s,d(),D,Y)}function N(e){T(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===U&&(e._payload.status==="fulfilled"?T(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function T(e){return typeof e=="object"&&e!==null&&e.$$typeof===W}var w=x,W=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),h=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),C=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,se=Array.isArray,X=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var K,q={},ee=w.react_stack_bottom_frame.bind(w,i)(),de=X(l(i)),re={};L.Fragment=j,L.jsx=function(e,o,s){var p=1e4>C.recentlyCreatedOwnerStacks++;return E(e,o,s,!1,p?Error("react-stack-top-frame"):ee,p?X(l(e)):de)},L.jsxs=function(e,o,s){var p=1e4>C.recentlyCreatedOwnerStacks++;return E(e,o,s,!0,p?Error("react-stack-top-frame"):ee,p?X(l(e)):de)}})()),L}var pe;function we(){return pe||(pe=1,process.env.NODE_ENV==="production"?Z.exports=ve():Z.exports=ye()),Z.exports}var r=we();const F={2e3:[30,32,31,32,31,30,30,30,29,30,29,31],2001:[31,31,32,31,31,31,30,29,30,29,30,30],2002:[31,31,32,32,31,30,30,29,30,29,30,30],2003:[31,32,31,32,31,30,30,30,29,29,30,31],2004:[30,32,31,32,31,30,30,30,29,30,29,31],2005:[31,31,32,31,31,31,30,29,30,29,30,30],2006:[31,31,32,32,31,30,30,29,30,29,30,30],2007:[31,32,31,32,31,30,30,30,29,29,30,31],2008:[31,31,31,32,31,31,29,30,30,29,29,31],2009:[31,31,32,31,31,31,30,29,30,29,30,30],2010:[31,31,32,32,31,30,30,29,30,29,30,30],2011:[31,32,31,32,31,30,30,30,29,29,30,31],2012:[31,31,31,32,31,31,29,30,30,29,30,30],2013:[31,31,32,31,31,31,30,29,30,29,30,30],2014:[31,31,32,32,31,30,30,29,30,29,30,30],2015:[31,32,31,32,31,30,30,30,29,29,30,31],2016:[31,31,31,32,31,31,29,30,30,29,30,30],2017:[31,31,32,31,31,31,30,29,30,29,30,30],2018:[31,31,32,32,31,30,30,29,30,29,30,30],2019:[31,32,31,32,31,30,30,30,29,29,30,31],2020:[31,31,31,32,31,31,30,29,30,29,30,30],2021:[31,31,32,31,31,31,30,29,30,29,30,30],2022:[31,31,32,32,31,30,30,29,30,29,30,30],2023:[31,32,31,32,31,30,30,30,29,29,30,31],2024:[31,31,31,32,31,31,30,29,30,29,30,30],2025:[31,31,32,31,31,31,30,29,30,29,30,30],2026:[31,31,32,32,31,30,30,29,30,29,30,30],2027:[31,32,31,32,31,30,30,30,29,29,30,32],2028:[30,32,31,32,31,30,30,30,29,30,29,31],2029:[31,31,32,31,31,31,30,29,30,29,30,30],2030:[31,31,32,32,31,30,30,29,30,29,30,30],2031:[31,32,31,32,31,30,30,30,29,29,30,31],2032:[30,32,31,32,31,30,30,30,29,30,29,31],2033:[31,31,32,31,31,31,30,29,30,29,30,30],2034:[31,31,32,32,31,30,30,29,30,29,30,30],2035:[31,32,31,32,31,30,30,30,29,29,30,31],2036:[30,32,31,32,31,31,29,30,30,29,29,31],2037:[31,31,32,31,31,31,30,29,30,29,30,30],2038:[31,31,32,32,31,30,30,29,30,29,30,30],2039:[31,32,31,32,31,30,30,30,29,29,30,31],2040:[31,31,31,32,31,31,29,30,30,29,30,30],2041:[31,31,32,31,31,31,30,29,30,29,30,30],2042:[31,31,32,32,31,30,30,29,30,29,30,31],2043:[31,32,31,32,31,30,30,30,29,29,30,30],2044:[31,31,31,32,31,31,29,30,30,29,30,30],2045:[31,31,32,31,31,31,30,29,30,29,30,30],2046:[31,31,32,32,31,30,30,29,30,29,30,30],2047:[31,32,31,32,31,30,30,30,29,29,30,31],2048:[30,32,31,32,31,30,30,30,29,30,29,31],2049:[31,31,32,31,31,31,30,29,30,29,30,30],2050:[31,31,32,32,31,30,30,29,30,29,30,30],2051:[31,32,31,32,31,30,30,30,29,29,30,31],2052:[31,31,31,32,31,31,29,30,30,29,30,30],2053:[31,31,32,31,31,31,30,29,30,29,30,30],2054:[31,31,32,32,31,30,30,29,30,29,30,30],2055:[31,32,31,32,31,30,30,30,29,29,30,31],2056:[31,31,31,32,31,31,30,29,30,29,30,30],2057:[31,31,32,31,31,31,30,29,30,29,30,30],2058:[31,31,32,32,31,30,30,29,30,29,30,30],2059:[31,32,31,32,31,30,30,30,29,29,30,31],2060:[31,31,31,32,31,31,30,29,30,29,30,30],2061:[31,31,32,31,31,31,30,29,30,29,30,30],2062:[31,31,32,32,31,30,30,29,30,29,30,30],2063:[31,32,31,32,31,30,30,30,29,29,30,31],2064:[31,31,31,32,31,31,29,30,29,30,29,31],2065:[31,31,32,31,31,31,30,29,30,29,30,30],2066:[31,31,32,32,31,30,30,29,30,29,30,30],2067:[31,32,31,32,31,30,30,30,29,29,30,31],2068:[31,31,31,32,31,31,29,30,30,29,30,30],2069:[31,31,32,31,31,31,30,29,30,29,30,30],2070:[31,31,32,32,31,30,30,29,30,29,30,30],2071:[31,32,31,32,31,30,30,30,29,29,30,31],2072:[31,31,31,32,31,31,29,30,30,29,30,30],2073:[31,31,32,31,31,31,30,29,30,29,30,30],2074:[31,31,32,32,31,30,30,29,30,29,30,30],2075:[31,32,31,32,31,30,30,30,29,29,30,31],2076:[31,31,31,32,31,31,30,29,30,29,30,30],2077:[31,31,32,31,31,31,30,29,30,29,30,30],2078:[31,31,32,32,31,30,30,29,30,29,30,30],2079:[31,32,31,32,31,30,30,30,29,29,30,31],2080:[31,31,31,32,31,31,30,29,30,29,30,30],2081:[31,31,32,31,31,31,30,29,30,29,30,30],2082:[31,32,31,32,31,30,30,29,30,29,30,30],2083:[31,32,31,32,31,30,30,30,29,30,29,31],2084:[31,31,31,32,31,31,30,29,30,29,30,30],2085:[31,31,32,31,31,31,30,29,30,29,30,30],2086:[31,32,31,32,31,30,30,29,30,29,30,30],2087:[31,32,31,32,31,30,30,30,29,29,30,31],2088:[30,32,31,32,31,30,30,30,29,30,29,31],2089:[31,31,32,31,31,31,30,29,30,29,30,30],2090:[31,31,32,32,31,30,30,29,30,29,30,30]},Q=new Date(1943,3,14);function ke(n,c,v){let l=0;for(let i=2e3;i<n;i++){const b=F[i];b&&(l+=b.reduce((a,f)=>a+f,0))}const d=F[n]||[];for(let i=0;i<c-1;i++)l+=d[i]||30;return l+v-1}function A(n,c,v){const l=new Date(Q);return l.setDate(l.getDate()+ke(n,c,v)),l}function ue(n){const c=new Date(n.getFullYear(),n.getMonth(),n.getDate()),v=new Date(Q.getFullYear(),Q.getMonth(),Q.getDate());let l=Math.round((c-v)/864e5),d=2e3;for(;d<=2090;){const a=F[d],f=a?a.reduce((_,E)=>_+E,0):365;if(l<f)break;l-=f,d++}const i=F[d]||[];let b=1;for(let a=0;a<12;a++){const f=i[a]||30;if(l<f){b=a+1;break}l-=f,a===11&&(b=12)}return{year:d,month:b,day:l+1}}function z(){return ue(new Date)}function ne(n,c){return(F[n]||[])[c-1]||30}function fe(n,c){return A(n,c,1).getDay()}const me=["बैशाख","जेठ","असार","श्रावण","भाद्र","असोज","कार्तिक","मङ्सिर","पुष","माघ","फागुन","चैत्र"],he=["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],je=["आइत","सोम","मङ्गल","बुध","बिही","शुक्र","शनि"],Se=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_e=["०","१","२","३","४","५","६","७","८","९"],I=n=>String(n).split("").map(c=>_e[+c]??c).join(""),Ee=n=>n?n.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"",Ne=`
7
7
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
8
8
 
9
9
  .ndp{
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
28
28
  width:100%; min-width:270px;
29
29
  padding:13px 48px 13px 17px;
30
30
  border:2px solid var(--ndp-border); border-radius:13px;
31
- background:var(--ndp-background); color:var(--tx);
31
+ background:var(--ndp-background); color:var(--ndp-text);
32
32
  font-family:'DM Sans',sans-serif; font-size:15px;
33
33
  cursor:pointer; outline:none;
34
34
  transition:border-color .2s,box-shadow .2s;
@@ -43,8 +43,8 @@ React keys must be passed directly to JSX without using spread:
43
43
  .ndp-popup{
44
44
  position:absolute; top:calc(100% + 9px); left:0; z-index:9999;
45
45
  width:336px;
46
- background:var(--ndp-background); border-radius:var(--r);
47
- box-shadow:var(--sh); border:1px solid var(--ndp-border);
46
+ background:var(--ndp-background); border-radius:var(--ndp-radius);
47
+ box-shadow:var(--ndp-shadow); border:1px solid var(--ndp-border);
48
48
  overflow:hidden;
49
49
  animation:ndp-pop .18s cubic-bezier(.34,1.56,.64,1);
50
50
  transform-origin:top left;
@@ -56,7 +56,7 @@ React keys must be passed directly to JSX without using spread:
56
56
  .ndp-slide-right{animation:ndp-slide-right .2s cubic-bezier(.25,.8,.25,1);}
57
57
 
58
58
  /* Header */
59
- .ndp-hd{background:var(--ndp-primary);padding:14px;color:#fff;}
59
+ .ndp-hd{background:var(--ndp-primary);padding:14px;color:#fff;border-radius:var(--ndp-radius) var(--ndp-radius) 0 0;}
60
60
  .ndp-hd-row{display:flex;align-items:center;justify-content:space-between;}
61
61
  .ndp-nav{
62
62
  width:32px;height:32px;display:flex;align-items:center;justify-content:center;
@@ -78,7 +78,7 @@ React keys must be passed directly to JSX without using spread:
78
78
  .ndp-dd-trigger{
79
79
  width:100%;padding:6px 28px 6px 10px;
80
80
  border:1px solid var(--ndp-border);border-radius:8px;
81
- background:#fff;color:var(--tx);
81
+ background:var(--ndp-background);color:var(--ndp-text);
82
82
  font-family:'Noto Sans Devanagari',sans-serif;font-size:13px;font-weight:500;
83
83
  cursor:pointer;outline:none;
84
84
  display:flex;align-items:center;justify-content:space-between;gap:4px;
@@ -97,7 +97,7 @@ React keys must be passed directly to JSX without using spread:
97
97
  .ndp-dd-panel{
98
98
  position:absolute;top:calc(100% + 5px);left:0;
99
99
  min-width:100%;
100
- background:#fff;border:1px solid var(--ndp-border);border-radius:10px;
100
+ background:var(--ndp-background);border:1px solid var(--ndp-border);border-radius:10px;
101
101
  box-shadow:0 8px 28px rgba(0,0,0,0.13);
102
102
  z-index:999;overflow:hidden;
103
103
  animation:ndp-dd-in .15s cubic-bezier(.25,.8,.25,1);
@@ -113,7 +113,7 @@ React keys must be passed directly to JSX without using spread:
113
113
  .ndp-dd-month-item{
114
114
  padding:7px 4px;text-align:center;
115
115
  border-radius:7px;cursor:pointer;border:none;background:transparent;
116
- font-family:'Noto Sans Devanagari',sans-serif;font-size:12.5px;font-weight:500;color:var(--tx);
116
+ font-family:'Noto Sans Devanagari',sans-serif;font-size:12.5px;font-weight:500;color:var(--ndp-text);
117
117
  transition:background .12s,color .12s;
118
118
  white-space:nowrap;
119
119
  }
@@ -129,7 +129,7 @@ React keys must be passed directly to JSX without using spread:
129
129
  .ndp-dd-years::-webkit-scrollbar-thumb{background:var(--ndp-border);border-radius:4px;}
130
130
  .ndp-dd-year-item{
131
131
  padding:7px 14px;border-radius:7px;cursor:pointer;border:none;background:transparent;
132
- font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;color:var(--tx);
132
+ font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;color:var(--ndp-text);
133
133
  width:100%;text-align:center;
134
134
  transition:background .12s,color .12s;
135
135
  display:block;
@@ -157,7 +157,7 @@ React keys must be passed directly to JSX without using spread:
157
157
  display:flex;align-items:center;justify-content:center;
158
158
  border-radius:8px;font-size:13px;
159
159
  font-family:'Noto Sans Devanagari',sans-serif;
160
- cursor:pointer;border:none;background:transparent;color:var(--tx);
160
+ cursor:pointer;border:none;background:transparent;color:var(--ndp-text);
161
161
  transition:background .12s,color .12s,transform .1s;
162
162
  font-weight:500;width:100%;
163
163
  }
@@ -181,9 +181,11 @@ React keys must be passed directly to JSX without using spread:
181
181
  padding:9px 12px 12px;
182
182
  border-top:1px solid var(--ndp-border);
183
183
  display:flex;align-items:center;justify-content:space-between;gap:8px;
184
+ border-radius:0 0 var(--ndp-radius) var(--ndp-radius);
185
+ background:var(--ndp-background);
184
186
  }
185
187
  .ndp-ad{font-size:12px;color:var(--ndp-text-muted);}
186
- .ndp-ad b{color:var(--tx);}
188
+ .ndp-ad b{color:var(--ndp-text);}
187
189
  .ndp-today-btn{
188
190
  font-size:12px;padding:5px 13px;
189
191
  background:var(--ndp-controls-bg);color:#9A7000;
@@ -192,4 +194,4 @@ React keys must be passed directly to JSX without using spread:
192
194
  transition:background .15s;white-space:nowrap;
193
195
  }
194
196
  .ndp-today-btn:hover{background:#FDEECA;}
195
- `;let xe=!1;function Te(){if(!xe&&typeof document<"u"){const n=document.createElement("style");n.textContent=Ne,document.head.appendChild(n),xe=!0}}function Re({value:n,onChange:c,language:v="np",placeholder:l,minYear:d=2060,maxYear:i=2090,className:g="",styles:a={}}){Te();const u=v!=="en",_=z(),[E,N]=x.useState(!1),[T,w]=x.useState(null),[W,O]=x.useState(!1),[j,P]=x.useState(!1),[b,R]=x.useState(()=>n?.year??z().year),[h,k]=x.useState(()=>n?.month??z().month),V=x.useRef(null),G=x.useRef(null);x.useEffect(()=>{const t=m=>{V.current&&!V.current.contains(m.target)&&(N(!1),O(!1),P(!1))};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]),x.useEffect(()=>{n&&(R(n.year),k(n.month))},[n]),x.useEffect(()=>{if(j&&G.current){const t=G.current.querySelector(".sel");t&&t.scrollIntoView({block:"center"})}},[j]);const te=x.useCallback(t=>{if(!t)return;c?.({year:b,month:h,day:t},A(b,h,t)),N(!1)},[b,h,c]),U=()=>{w("right"),setTimeout(()=>w(null),200),h===1?(k(12),R(t=>t-1)):k(t=>t-1)},oe=()=>{w("left"),setTimeout(()=>w(null),200),h===12?(k(1),R(t=>t+1)):k(t=>t+1)},ae=()=>{const t=z();R(t.year),k(t.month),c?.(t,A(t.year,t.month,t.day)),N(!1)},C=ne(b,h),M=ue(b,h),se=h===1?12:h-1,X=h===1?b-1:b,K=ne(X,se),q=Array.from({length:M},(t,m)=>({day:K-M+1+m,overflow:"prev"})),ee=Array.from({length:C},(t,m)=>({day:m+1,overflow:null})),re=42-(M+C),e=Array.from({length:re},(t,m)=>({day:m+1,overflow:"next"})),o=[...q,...ee,...e],s=u?me:he,p=u?je:Se,D=s[h-1],Y=u?I(b):String(b),S=A(b,h,1).toLocaleDateString("en-GB",{month:"short",year:"numeric"}),J=n?u?`${I(n.year)} ${me[n.month-1]} ${I(n.day)}`:`${n.year} ${he[n.month-1]} ${n.day}`:"",ie=u?"मिति छान्नुहोस्":"Select BS date",ge=n?A(n.year,n.month,n.day):null,De=Array.from({length:i-d+1},(t,m)=>d+m),Ae={...a.primary&&{"--ndp-primary":a.primary},...a.primarySoft&&{"--ndp-primary-soft":a.primarySoft},...a.background&&{"--ndp-background":a.background},...a.text&&{"--ndp-text":a.text},...a.textMuted&&{"--ndp-text-muted":a.textMuted},...a.border&&{"--ndp-border":a.border},...a.todayBg&&{"--ndp-today-bg":a.todayBg},...a.controlsBg&&{"--ndp-controls-bg":a.controlsBg},...a.radius&&{"--ndp-radius":a.radius},...a.shadow&&{"--ndp-shadow":a.shadow}};return r.jsxs("div",{className:`ndp${g?` ${g}`:""}`,ref:V,style:Ae,children:[r.jsxs("div",{className:"ndp-wrap",onClick:()=>N(t=>!t),children:[r.jsx("input",{readOnly:!0,className:`ndp-input${E?" open":""}`,value:J,placeholder:l??ie}),r.jsx("span",{className:"ndp-icon",children:r.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[r.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),r.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),r.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),r.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})})]}),E&&r.jsxs("div",{className:"ndp-popup",children:[r.jsx("div",{className:"ndp-hd",children:r.jsxs("div",{className:"ndp-hd-row",children:[r.jsx("button",{className:"ndp-nav",onClick:U,children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m15 18-6-6 6-6"})})}),r.jsxs("div",{className:`ndp-hd-center${T?` ndp-slide-${T}`:""}`,children:[r.jsx("div",{className:"ndp-hd-month",children:D}),r.jsxs("div",{className:"ndp-hd-sub",children:[Y," BS · ",S]})]}),r.jsx("button",{className:"ndp-nav",onClick:oe,children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m9 18 6-6-6-6"})})})]})}),r.jsxs("div",{className:"ndp-controls",children:[r.jsxs("div",{className:"ndp-dd",children:[r.jsxs("button",{className:`ndp-dd-trigger${W?" active":""}`,onClick:()=>{O(t=>!t),P(!1)},children:[r.jsx("span",{children:D}),r.jsx("span",{className:"ndp-dd-arrow",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),W&&r.jsx("div",{className:"ndp-dd-panel",children:r.jsx("div",{className:"ndp-dd-months",children:s.map((t,m)=>r.jsx("button",{className:`ndp-dd-month-item${h===m+1?" sel":""}`,onClick:()=>{w(m+1<h?"right":"left"),setTimeout(()=>w(null),200),k(m+1),O(!1)},children:t},m))})})]}),r.jsxs("div",{className:"ndp-dd",children:[r.jsxs("button",{className:`ndp-dd-trigger${j?" active":""}`,onClick:()=>{P(t=>!t),O(!1)},children:[r.jsx("span",{children:Y}),r.jsx("span",{className:"ndp-dd-arrow",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),j&&r.jsx("div",{className:"ndp-dd-panel",children:r.jsx("div",{className:"ndp-dd-years",ref:G,children:De.map(t=>r.jsx("button",{className:`ndp-dd-year-item${b===t?" sel":""}`,onClick:()=>{R(t),P(!1)},children:u?I(t):t},t))})})]})]}),r.jsxs("div",{className:"ndp-body",children:[r.jsx("div",{className:"ndp-wdays",children:p.map((t,m)=>r.jsx("div",{className:"ndp-wday",children:t},m))}),r.jsx("div",{className:`ndp-grid${T?` ndp-slide-${T}`:""}`,children:o.map(({day:t,overflow:m},be)=>{const Oe=be%7===6,H=m!==null,Pe=!H&&t===_.day&&h===_.month&&b===_.year,Ce=!H&&n&&t===n.day&&h===n.month&&b===n.year;let $="ndp-cell";return H?$+=" overflow":Oe&&($+=" wknd"),Pe&&($+=" today"),Ce&&($+=" picked"),r.jsx("button",{className:$,disabled:H,onClick:()=>!H&&te(t),children:u?I(t):t},be)})})]}),r.jsxs("div",{className:"ndp-ft",children:[r.jsx("span",{className:"ndp-ad",children:ge?r.jsxs(r.Fragment,{children:[r.jsx("b",{children:"AD:"})," ",Ee(ge)]}):r.jsx("span",{style:{color:"var(--ndp-text-muted)",fontSize:12},children:u?"मिति छानिएको छैन":"No date selected"})}),r.jsx("button",{className:"ndp-today-btn",onClick:ae,children:u?"आज":"Today"})]})]})]})}y.NepaliDatePicker=Re,y.adToBs=fe,y.bsToAd=A,y.getDaysInBSMonth=ne,y.getFirstDayOfWeekBS=ue,y.getTodayBS=z,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
197
+ `;let xe=!1;function Te(){if(!xe&&typeof document<"u"){const n=document.createElement("style");n.textContent=Ne,document.head.appendChild(n),xe=!0}}function Re({value:n,onChange:c,language:v="np",placeholder:l,minYear:d=2060,maxYear:i=2090,className:b="",styles:a={}}){Te();const f=v!=="en",_=z(),[E,N]=x.useState(!1),[T,w]=x.useState(null),[W,O]=x.useState(!1),[j,P]=x.useState(!1),[g,R]=x.useState(()=>n?.year??z().year),[h,k]=x.useState(()=>n?.month??z().month),V=x.useRef(null),G=x.useRef(null);x.useEffect(()=>{const t=m=>{V.current&&!V.current.contains(m.target)&&(N(!1),O(!1),P(!1))};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]),x.useEffect(()=>{n&&(R(n.year),k(n.month))},[n]),x.useEffect(()=>{if(j&&G.current){const t=G.current.querySelector(".sel");t&&t.scrollIntoView({block:"center"})}},[j]);const te=x.useCallback(t=>{if(!t)return;c?.({year:g,month:h,day:t},A(g,h,t)),N(!1)},[g,h,c]),U=()=>{w("right"),setTimeout(()=>w(null),200),h===1?(k(12),R(t=>t-1)):k(t=>t-1)},oe=()=>{w("left"),setTimeout(()=>w(null),200),h===12?(k(1),R(t=>t+1)):k(t=>t+1)},ae=()=>{const t=z();R(t.year),k(t.month),c?.(t,A(t.year,t.month,t.day)),N(!1)},C=ne(g,h),M=fe(g,h),se=h===1?12:h-1,X=h===1?g-1:g,K=ne(X,se),q=Array.from({length:M},(t,m)=>({day:K-M+1+m,overflow:"prev"})),ee=Array.from({length:C},(t,m)=>({day:m+1,overflow:null})),re=42-(M+C),e=Array.from({length:re},(t,m)=>({day:m+1,overflow:"next"})),o=[...q,...ee,...e],s=f?me:he,p=f?je:Se,D=s[h-1],Y=f?I(g):String(g),S=A(g,h,1).toLocaleDateString("en-GB",{month:"short",year:"numeric"}),J=n?f?`${I(n.year)} ${me[n.month-1]} ${I(n.day)}`:`${n.year} ${he[n.month-1]} ${n.day}`:"",ie=f?"मिति छान्नुहोस्":"Select BS date",be=n?A(n.year,n.month,n.day):null,De=Array.from({length:i-d+1},(t,m)=>d+m),Ae={...a.primary&&{"--ndp-primary":a.primary},...a.primarySoft&&{"--ndp-primary-soft":a.primarySoft},...a.background&&{"--ndp-background":a.background},...a.text&&{"--ndp-text":a.text},...a.textMuted&&{"--ndp-text-muted":a.textMuted},...a.border&&{"--ndp-border":a.border},...a.todayBg&&{"--ndp-today-bg":a.todayBg},...a.controlsBg&&{"--ndp-controls-bg":a.controlsBg},...a.radius&&{"--ndp-radius":a.radius},...a.shadow&&{"--ndp-shadow":a.shadow}};return r.jsxs("div",{className:`ndp${b?` ${b}`:""}`,ref:V,style:Ae,children:[r.jsxs("div",{className:"ndp-wrap",onClick:()=>N(t=>!t),children:[r.jsx("input",{readOnly:!0,className:`ndp-input${E?" open":""}`,value:J,placeholder:l??ie}),r.jsx("span",{className:"ndp-icon",children:r.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[r.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),r.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),r.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),r.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})})]}),E&&r.jsxs("div",{className:"ndp-popup",children:[r.jsx("div",{className:"ndp-hd",children:r.jsxs("div",{className:"ndp-hd-row",children:[r.jsx("button",{className:"ndp-nav",onClick:U,children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m15 18-6-6 6-6"})})}),r.jsxs("div",{className:`ndp-hd-center${T?` ndp-slide-${T}`:""}`,children:[r.jsx("div",{className:"ndp-hd-month",children:D}),r.jsxs("div",{className:"ndp-hd-sub",children:[Y," BS · ",S]})]}),r.jsx("button",{className:"ndp-nav",onClick:oe,children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m9 18 6-6-6-6"})})})]})}),r.jsxs("div",{className:"ndp-controls",children:[r.jsxs("div",{className:"ndp-dd",children:[r.jsxs("button",{className:`ndp-dd-trigger${W?" active":""}`,onClick:()=>{O(t=>!t),P(!1)},children:[r.jsx("span",{children:D}),r.jsx("span",{className:"ndp-dd-arrow",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),W&&r.jsx("div",{className:"ndp-dd-panel",children:r.jsx("div",{className:"ndp-dd-months",children:s.map((t,m)=>r.jsx("button",{className:`ndp-dd-month-item${h===m+1?" sel":""}`,onClick:()=>{w(m+1<h?"right":"left"),setTimeout(()=>w(null),200),k(m+1),O(!1)},children:t},m))})})]}),r.jsxs("div",{className:"ndp-dd",children:[r.jsxs("button",{className:`ndp-dd-trigger${j?" active":""}`,onClick:()=>{P(t=>!t),O(!1)},children:[r.jsx("span",{children:Y}),r.jsx("span",{className:"ndp-dd-arrow",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),j&&r.jsx("div",{className:"ndp-dd-panel",children:r.jsx("div",{className:"ndp-dd-years",ref:G,children:De.map(t=>r.jsx("button",{className:`ndp-dd-year-item${g===t?" sel":""}`,onClick:()=>{R(t),P(!1)},children:f?I(t):t},t))})})]})]}),r.jsxs("div",{className:"ndp-body",children:[r.jsx("div",{className:"ndp-wdays",children:p.map((t,m)=>r.jsx("div",{className:"ndp-wday",children:t},m))}),r.jsx("div",{className:`ndp-grid${T?` ndp-slide-${T}`:""}`,children:o.map(({day:t,overflow:m},ge)=>{const Oe=ge%7===6,H=m!==null,Pe=!H&&t===_.day&&h===_.month&&g===_.year,Ce=!H&&n&&t===n.day&&h===n.month&&g===n.year;let $="ndp-cell";return H?$+=" overflow":Oe&&($+=" wknd"),Pe&&($+=" today"),Ce&&($+=" picked"),r.jsx("button",{className:$,disabled:H,onClick:()=>!H&&te(t),children:f?I(t):t},ge)})})]}),r.jsxs("div",{className:"ndp-ft",children:[r.jsx("span",{className:"ndp-ad",children:be?r.jsxs(r.Fragment,{children:[r.jsx("b",{children:"AD:"})," ",Ee(be)]}):r.jsx("span",{style:{color:"var(--ndp-text-muted)",fontSize:12},children:f?"मिति छानिएको छैन":"No date selected"})}),r.jsx("button",{className:"ndp-today-btn",onClick:ae,children:f?"आज":"Today"})]})]})]})}y.NepaliDatePicker=Re,y.adToBs=ue,y.bsToAd=A,y.getDaysInBSMonth=ne,y.getFirstDayOfWeekBS=fe,y.getTodayBS=z,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@himal_bhattarai/nepali-datepicker",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Nepali Bikram Sambat (BS) date picker React component with BS↔AD conversion",
5
5
  "main": "./dist/nepali-datepicker.umd.js",
6
6
  "module": "./dist/nepali-datepicker.es.js",