@dotss/ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Backdrop/Backdrop.d.ts +1 -1
  3. package/Badge/Badge.d.ts +3 -3
  4. package/BottomSheet/BottomSheet.d.ts +1 -1
  5. package/BottomSheet/BottomSheetAction/BottomSheetAction.d.ts +1 -1
  6. package/BottomSheet/BottomSheetContent/BottomSheetContent.d.ts +1 -1
  7. package/BottomSheet/BottomSheetText/BottomSheetText.d.ts +1 -1
  8. package/BottomSheet/BottomSheetTitle/BottomSheetTitle.d.ts +1 -1
  9. package/Box/Box.d.ts +1 -1
  10. package/Button/Button.d.ts +2 -2
  11. package/Card/Card.d.ts +1 -1
  12. package/ChainPicker/ChainPicker.d.ts +1 -1
  13. package/Checkbox/Checkbox.d.ts +2 -2
  14. package/Chip/Chip.d.ts +1 -1
  15. package/CircularProgressIndicator/CircularProgressIndicator.d.ts +1 -1
  16. package/DatePicker/DatePicker.cjs +14 -14
  17. package/DatePicker/DatePicker.d.ts +2 -1
  18. package/DatePicker/DatePicker.es.js +260 -250
  19. package/DatePicker/EventDot/EventDot.d.ts +1 -1
  20. package/DatePicker/EventDotGroup/EventDotGroup.d.ts +1 -1
  21. package/Dialog/Dialog.d.ts +1 -1
  22. package/Dialog/DialogText/DialogText.d.ts +1 -1
  23. package/Dialog/DialogTitle/DialogTitle.d.ts +1 -1
  24. package/Flexbox/Flexbox.d.ts +1 -1
  25. package/FocusBoundary/FocusBoundary.d.ts +1 -1
  26. package/FormControlText/FormControlText.d.ts +1 -1
  27. package/Icon/Icon.cjs +1 -1
  28. package/Icon/Icon.d.ts +2 -2
  29. package/Icon/Icon.es.js +1 -1
  30. package/IconButton/IconButton.d.ts +2 -2
  31. package/Label/Label.d.ts +4 -4
  32. package/LineProgressIndicator/LineProgressIndicator.d.ts +1 -1
  33. package/Menu/Menu.d.ts +1 -1
  34. package/Menu/MenuBlock/MenuBlock.d.ts +1 -1
  35. package/NumberKeypad/NumberKeypad.d.ts +2 -2
  36. package/NumberKeypad/NumberKeypadBlock/NumberKeypadBlock.d.ts +1 -1
  37. package/PageControl/PageControl.d.ts +2 -2
  38. package/Radio/Radio.d.ts +2 -2
  39. package/RadioGroup/RadioGroup.d.ts +1 -1
  40. package/SegmentedButton/SegmentedButton.d.ts +2 -2
  41. package/SegmentedButton/SegmentedButtonBlock/SegmentedButtonBlock.d.ts +1 -1
  42. package/Select/Option/Option.d.ts +1 -1
  43. package/Select/Select.d.ts +1 -1
  44. package/Skeleton/Skeleton.d.ts +3 -3
  45. package/Slider/Slider.d.ts +1 -1
  46. package/Snackbar/Snackbar.d.ts +2 -2
  47. package/Switch/Switch.d.ts +1 -1
  48. package/Tab/Tab.d.ts +1 -1
  49. package/Tab/TabBlock/TabBlock.d.ts +1 -1
  50. package/TextArea/TextArea.d.ts +1 -1
  51. package/TextField/TextField.d.ts +1 -1
  52. package/Tooltip/Tooltip.d.ts +2 -2
  53. package/Typography/Typography.d.ts +2 -2
  54. package/index.cjs +1 -1
  55. package/index.d.ts +1 -0
  56. package/index.es.js +62 -60
  57. package/package.json +1 -1
  58. package/resources/tictoccroc/icons/{index.ts-Dt89JG4Z.js → index.ts-BPirIj0F.js} +12 -10
  59. package/resources/tictoccroc/icons/{index.ts-DI_CztBn.cjs → index.ts-DGZWXCgv.cjs} +1 -1
  60. package/resources/tictoccroc/icons/line/archive-line.svg-DCCCNm0K.cjs +1 -0
  61. package/resources/tictoccroc/icons/line/archive-line.svg-DRsXXtcA.js +5 -0
  62. package/resources/tictoccroc/icons/line/index.d.ts +1 -0
  63. package/themes/tictoccroc/colors/green.cjs +1 -1
  64. package/themes/tictoccroc/colors/green.es.js +1 -1
  65. package/utils/getIconLabel/getIconLabel.cjs +1 -1
  66. package/utils/getIconLabel/getIconLabel.es.js +2 -1
@@ -1,20 +1,20 @@
1
- import { jsxs as S, jsx as f, Fragment as fe } from "@emotion/react/jsx-runtime";
2
- import { forwardRef as de, useState as X, useRef as R, useCallback as he, useLayoutEffect as Bt, useEffect as nt } from "react";
3
- import me from "../Flexbox/Flexbox.es.js";
4
- import _t from "../Icon/Icon.es.js";
5
- import Kt from "../IconButton/IconButton.es.js";
6
- import pe from "../Menu/Menu.es.js";
1
+ import { jsxs as v, jsx as f, Fragment as de } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as me, useState as X, useRef as W, useCallback as pe, useLayoutEffect as _t, useEffect as nt } from "react";
3
+ import he from "../Flexbox/Flexbox.es.js";
4
+ import Kt from "../Icon/Icon.es.js";
5
+ import qt from "../IconButton/IconButton.es.js";
6
+ import ye from "../Menu/Menu.es.js";
7
7
  import ge from "../Menu/MenuBlock/MenuBlock.es.js";
8
- import qt from "../Menu/MenuButton/MenuButton.es.js";
9
- import ye from "../core/useTheme.es.js";
10
- import x from "@emotion/styled";
8
+ import Ut from "../Menu/MenuButton/MenuButton.es.js";
9
+ import De from "../core/useTheme.es.js";
10
+ import k from "@emotion/styled";
11
11
  import it from "../utils/getContrastingTextColor/getContrastingTextColor.es.js";
12
- const De = x.div`
12
+ const $e = k.div`
13
13
  position: relative;
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  gap: ${({ theme: { spacing: t } }) => t.content(2)}px;
17
- `, Ut = x.div`
17
+ `, Gt = k.div`
18
18
  display: inline-flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -32,7 +32,7 @@ const De = x.div`
32
32
  lineHeight: t.lineHeight,
33
33
  letterSpacing: t.letterSpacing
34
34
  })};
35
- `, $e = x.div`
35
+ `, we = k.div`
36
36
  display: flex;
37
37
  align-items: center;
38
38
  justify-content: center;
@@ -48,7 +48,7 @@ const De = x.div`
48
48
  lineHeight: t.lineHeight,
49
49
  letterSpacing: t.letterSpacing
50
50
  })};
51
- `, we = x.div`
51
+ `, be = k.div`
52
52
  display: flex;
53
53
  align-items: center;
54
54
  padding: 0 ${({ theme: { spacing: t }, edgeSpacing: n }) => t.content(n || 0)}px;
@@ -70,22 +70,22 @@ const De = x.div`
70
70
  color: t[50]
71
71
  })};
72
72
  }
73
- `, be = x.div`
73
+ `, xe = k.div`
74
74
  overflow: hidden;
75
- `, xe = x.div`
75
+ `, ke = k.div`
76
76
  display: flex;
77
77
  transform: translate3d(0, 0, 0);
78
- `, Gt = x.div`
78
+ `, Vt = k.div`
79
79
  display: flex;
80
80
  flex-direction: column;
81
81
  min-width: 100%;
82
82
  gap: ${({ theme: { spacing: t } }) => t.content(2)}px;
83
83
  padding: ${({ theme: { spacing: t } }) => t.content(2)}px
84
84
  ${({ theme: { spacing: t }, edgeSpacing: n }) => t.content(n || 0)}px;
85
- `, Vt = x.div`
85
+ `, Jt = k.div`
86
86
  display: flex;
87
87
  width: 100%;
88
- `, Jt = x.div`
88
+ `, Pt = k.div`
89
89
  position: relative;
90
90
  display: inline-flex;
91
91
  align-items: center;
@@ -137,11 +137,11 @@ const De = x.div`
137
137
  palette: { brand: t, grey: n }
138
138
  },
139
139
  variant: r,
140
- today: a,
141
- selected: c
140
+ today: u,
141
+ selected: s
142
142
  }) => {
143
- if (c) {
144
- let h = {
143
+ if (s) {
144
+ let y = {
145
145
  fontWeight: 700,
146
146
  color: it(t.primary.main, [n.white, n[100]]),
147
147
  "& > div:nth-of-type(1):before": {
@@ -159,7 +159,7 @@ const De = x.div`
159
159
  backgroundColor: t.primary.disable
160
160
  }
161
161
  };
162
- return r === "start" && (h = {
162
+ return r === "start" && (y = {
163
163
  fontWeight: 700,
164
164
  color: it(t.primary.main, [n.white, n[100]]),
165
165
  overflow: "hidden",
@@ -191,7 +191,7 @@ const De = x.div`
191
191
  '&[aria-disabled="true"] > div:nth-of-type(1):after': {
192
192
  backgroundColor: t.primary.disable
193
193
  }
194
- }), r === "end" && (h = {
194
+ }), r === "end" && (y = {
195
195
  fontWeight: 700,
196
196
  color: it(t.primary.main, [n.white, n[100]]),
197
197
  overflow: "hidden",
@@ -223,7 +223,7 @@ const De = x.div`
223
223
  '&[aria-disabled="true"] > div:nth-of-type(1):after': {
224
224
  backgroundColor: t.primary.disable
225
225
  }
226
- }), r === "middle" && (h = {
226
+ }), r === "middle" && (y = {
227
227
  fontWeight: 700,
228
228
  color: it(t.primary.main, [n.white, n[100]]),
229
229
  overflow: "hidden",
@@ -240,9 +240,9 @@ const De = x.div`
240
240
  '&[aria-disabled="true"] > div:nth-of-type(1):after': {
241
241
  backgroundColor: t.primary.disable
242
242
  }
243
- }), h;
243
+ }), y;
244
244
  }
245
- return a ? {
245
+ return u ? {
246
246
  "& > div:nth-of-type(1):after": {
247
247
  content: '""',
248
248
  position: "absolute",
@@ -262,57 +262,58 @@ const De = x.div`
262
262
  palette: { pink: t, brand: n }
263
263
  },
264
264
  holiday: r,
265
- selected: a
265
+ selected: u
266
266
  }) => {
267
- let c = null;
268
- return r && (c = {
269
- color: it(a ? n.primary.main : "transparent", [
267
+ let s = null;
268
+ return r && (s = {
269
+ color: it(u ? n.primary.main : "transparent", [
270
270
  t[30],
271
271
  t[100]
272
272
  ]),
273
273
  '&[aria-disabled="true"]': {
274
274
  color: t[30]
275
275
  }
276
- }), c;
276
+ }), s;
277
277
  }}
278
- `, Pt = x.div`
278
+ `, Qt = k.div`
279
279
  display: flex;
280
280
  align-items: center;
281
281
  justify-content: center;
282
282
 
283
283
  cursor: ${({ clickable: t }) => t ? "pointer" : "default"};
284
- `, Qt = x.span`
284
+ `, Zt = k.span`
285
285
  width: 100%;
286
286
  min-width: 100%;
287
287
  height: 6px;
288
288
  min-height: 6px;
289
- `, ke = 30, Le = de(function({
289
+ `, Ae = 30, Ie = me(function({
290
290
  children: n,
291
291
  onChange: r,
292
- value: a,
293
- date: c,
294
- minDate: h,
295
- maxDate: d,
296
- holidayDates: p,
297
- disableDates: P,
298
- showWeekHead: gt = !1,
292
+ onChangeMonth: u,
293
+ value: s,
294
+ date: y,
295
+ minDate: d,
296
+ maxDate: m,
297
+ holidayDates: Rt,
298
+ disableDates: _,
299
+ showWeekHead: ee = !1,
299
300
  multiple: T = !1,
300
301
  period: ot = !1,
301
- enableMonthSelect: Q = !1,
302
+ enableMonthSelect: Z = !1,
302
303
  showToday: Wt = !1,
303
304
  edgeSpacing: yt = 0,
304
305
  renderEvent: Y,
305
- inlineCSS: ee,
306
+ inlineCSS: re,
306
307
  monthProps: st,
307
- ...re
308
- }, ne) {
309
- const { spacing: Ht } = ye(), [H, Dt] = X(
310
- (typeof c == "string" || typeof c == "number" ? new Date(c) : c) || /* @__PURE__ */ new Date()
311
- ), [$, Z] = X(() => Array.isArray(a) && a.length > 0 ? y(a[0]) : y(a)), [L, at] = X(() => Array.isArray(a) && a.length > 1 ? y(a[a.length - 1]) : null), [k, Ft] = X(0), [w, B] = X(1), [zt, Yt] = X(!1), [$t, wt] = X(!1), tt = R(null), g = R(null), ct = R(0), F = R(0), v = R(!1), et = R(w), bt = R(), lt = R(null), xt = R(null), M = H.getFullYear(), ut = H.getMonth(), Lt = Rt(M, ut), I = N(ut), _ = y(a), K = y(p), q = y(P), kt = V(H, h) || pt(H, h), Mt = C(H, d) || pt(H, d), ft = new Date(M, ut - 1), dt = new Date(M, ut + 1), O = `${M}. ${I}`, j = `${M}년 ${I}월`, U = ot && !!$ && !!L, It = [
308
+ ...ne
309
+ }, ie) {
310
+ const { spacing: Ht } = De(), [$, gt] = X(
311
+ (typeof y == "string" || typeof y == "number" ? new Date(y) : y) || /* @__PURE__ */ new Date()
312
+ ), [w, C] = X(() => Array.isArray(s) && s.length > 0 ? h(s[0]) : h(s)), [L, at] = X(() => Array.isArray(s) && s.length > 1 ? h(s[s.length - 1]) : null), [A, Ft] = X(0), [b, K] = X(1), [zt, Yt] = X(!1), [Dt, $t] = X(!1), tt = W(null), g = W(null), ct = W(0), F = W(0), R = W(!1), et = W(b), wt = W(), lt = W(null), bt = W(null), M = $.getFullYear(), ut = $.getMonth(), Lt = Tt(M, ut), I = B(ut), q = h(s), U = h(Rt), G = h(_), xt = P($, d) || ht($, d), kt = N($, m) || ht($, m), ft = new Date(M, ut - 1), dt = new Date(M, ut + 1), O = `${M}. ${I}`, j = `${M}년 ${I}월`, V = ot && !!w && !!L, It = [
312
313
  {
313
314
  year: ft.getFullYear(),
314
- month: N(ft.getMonth()),
315
- weeks: Rt(ft.getFullYear(), ft.getMonth())
315
+ month: B(ft.getMonth()),
316
+ weeks: Tt(ft.getFullYear(), ft.getMonth())
316
317
  },
317
318
  {
318
319
  year: M,
@@ -321,84 +322,84 @@ const De = x.div`
321
322
  },
322
323
  {
323
324
  year: dt.getFullYear(),
324
- month: N(dt.getMonth()),
325
- weeks: Rt(dt.getFullYear(), dt.getMonth())
325
+ month: B(dt.getMonth()),
326
+ weeks: Tt(dt.getFullYear(), dt.getMonth())
326
327
  }
327
- ], At = typeof Y == "function", ie = It[1].weeks.length * (ke + (At ? 10 : 0) + Ht.content(2)) + Ht.content(2), Ot = (e) => () => {
328
- T && (g.current && (g.current.style.transition = "none", g.current.style.cursor = "grabbing"), ct.current = e, v.current = !0);
329
- }, E = he(() => {
330
- if (!v.current) return;
331
- const e = k - F.current, u = Math.abs(k - e), o = k * 0.1;
332
- g.current && (g.current.style.transform = `translate3d(-${k * w}px, 0, 0)`, g.current.style.cursor = "grab", g.current.style.transition = "transform 0.2s"), ct.current = 0, F.current = 0, v.current = !1, !(u <= o) && (k < e ? B((s) => s + 1) : k > e && B((s) => s - 1));
333
- }, [k, w]), St = (e, u) => () => {
334
- if (!(v.current || w !== 1) && !u) {
328
+ ], At = typeof Y == "function", oe = It[1].weeks.length * (Ae + (At ? 10 : 0) + Ht.content(2)) + Ht.content(2), Ot = (e) => () => {
329
+ T && (g.current && (g.current.style.transition = "none", g.current.style.cursor = "grabbing"), ct.current = e, R.current = !0);
330
+ }, E = pe(() => {
331
+ if (!R.current) return;
332
+ const e = A - F.current, c = Math.abs(A - e), o = A * 0.1;
333
+ g.current && (g.current.style.transform = `translate3d(-${A * b}px, 0, 0)`, g.current.style.cursor = "grab", g.current.style.transition = "transform 0.2s"), ct.current = 0, F.current = 0, R.current = !1, !(c <= o) && (A < e ? K((a) => a + 1) : A > e && K((a) => a - 1));
334
+ }, [A, b]), Mt = (e, c) => () => {
335
+ if (!(R.current || b !== 1) && !c) {
335
336
  if (!ot) {
336
- r == null || r(e, y);
337
+ r == null || r(e, h);
337
338
  return;
338
339
  }
339
- if (W(e, $) && Array.isArray(a) && a.length === 1) {
340
- Z(null), at(null), r == null || r([], y);
340
+ if (H(e, w) && Array.isArray(s) && s.length === 1) {
341
+ C(null), at(null), r == null || r([], h);
341
342
  return;
342
- } else if (W(e, $) && !Array.isArray(a) && W(e, a)) {
343
- Z(null), at(null), r == null || r([], y);
343
+ } else if (H(e, w) && !Array.isArray(s) && H(e, s)) {
344
+ C(null), at(null), r == null || r([], h);
344
345
  return;
345
346
  }
346
- if (!$) {
347
- Z(e), r == null || r(e, y);
347
+ if (!w) {
348
+ C(e), r == null || r(e, h);
348
349
  return;
349
350
  }
350
- if (!L && $) {
351
- const [o, s] = C(e, $) ? [$, e] : [e, $];
352
- Z(o), at(s);
353
- const i = te([o, s], P);
354
- r == null || r(i, y);
351
+ if (!L && w) {
352
+ const [o, a] = N(e, w) ? [w, e] : [e, w];
353
+ C(o), at(a);
354
+ const i = te([o, a], _);
355
+ r == null || r(i, h);
355
356
  return;
356
357
  }
357
- $ && L && (Z(e), at(null), r == null || r(e, y));
358
+ w && L && (C(e), at(null), r == null || r(e, h));
358
359
  }
359
- }, oe = (e) => Ot(e.clientX)(), se = (e) => Ot(e.touches[0].clientX)(), jt = () => {
360
- zt || (g.current && (g.current.style.transition = "transform 0.2s"), B((e) => e - 1));
360
+ }, se = (e) => Ot(e.clientX)(), ae = (e) => Ot(e.touches[0].clientX)(), jt = () => {
361
+ zt || (g.current && (g.current.style.transition = "transform 0.2s"), K((e) => e - 1));
361
362
  }, Et = () => {
362
- zt || (g.current && (g.current.style.transition = "transform 0.2s"), B((e) => e + 1));
363
- }, ht = (e) => {
364
- e.stopPropagation(), wt((u) => !u);
365
- }, ae = () => wt(!1), ce = (e) => {
363
+ zt || (g.current && (g.current.style.transition = "transform 0.2s"), K((e) => e + 1));
364
+ }, mt = (e) => {
365
+ e.stopPropagation(), $t((c) => !c);
366
+ }, ce = () => $t(!1), le = (e) => {
366
367
  if (!e) return;
367
- const [u, o] = e.toString().split(".").map(Number);
368
- Dt(new Date(u, o - 1)), wt(!1);
369
- }, Xt = (e, u) => (o) => {
370
- const s = new Date(e);
368
+ const [c, o] = e.toString().split(".").map(Number);
369
+ gt(new Date(c, o - 1)), u && typeof u == "function" && u(h(new Date(c, o - 1)), h), $t(!1);
370
+ }, Xt = (e, c) => (o) => {
371
+ const a = new Date(e);
371
372
  let i = null;
372
373
  if (o.stopPropagation(), o.key === "ArrowRight")
373
- i = new Date(s), i.setDate(s.getDate() + 1);
374
+ i = new Date(a), i.setDate(a.getDate() + 1);
374
375
  else if (o.key === "ArrowLeft")
375
- i = new Date(s), i.setDate(s.getDate() - 1);
376
+ i = new Date(a), i.setDate(a.getDate() - 1);
376
377
  else if (o.key === "ArrowDown")
377
- i = new Date(s), i.setDate(s.getDate() + 7);
378
+ i = new Date(a), i.setDate(a.getDate() + 7);
378
379
  else if (o.key === "ArrowUp")
379
- i = new Date(s), i.setDate(s.getDate() - 7);
380
+ i = new Date(a), i.setDate(a.getDate() - 7);
380
381
  else if (o.key === "Home")
381
- i = new Date(s), i.setDate(s.getDate() - s.getDay());
382
+ i = new Date(a), i.setDate(a.getDate() - a.getDay());
382
383
  else if (o.key === "End")
383
- i = new Date(s), i.setDate(s.getDate() + (6 - s.getDay()));
384
+ i = new Date(a), i.setDate(a.getDate() + (6 - a.getDay()));
384
385
  else if (o.key === "PageUp")
385
- i = new Date(s), i.setMonth(s.getMonth() - 1);
386
+ i = new Date(a), i.setMonth(a.getMonth() - 1);
386
387
  else if (o.key === "PageDown")
387
- i = new Date(s), i.setMonth(s.getMonth() + 1);
388
+ i = new Date(a), i.setMonth(a.getMonth() + 1);
388
389
  else if (o.key === "Enter" || o.key === " ") {
389
- o.preventDefault(), St(e, u)();
390
+ o.preventDefault(), Mt(e, c)();
390
391
  return;
391
392
  } else if (o.key === "Escape") {
392
- o.preventDefault(), r == null || r([], y);
393
+ o.preventDefault(), r == null || r([], h);
393
394
  return;
394
395
  }
395
396
  if (i && tt.current) {
396
- const D = s.getMonth(), m = s.getFullYear(), b = i.getMonth(), l = i.getFullYear(), A = y(i), z = tt.current.querySelector(
397
- `[data-date="${A}"]`
397
+ const D = a.getMonth(), p = a.getFullYear(), x = i.getMonth(), l = i.getFullYear(), S = h(i), z = tt.current.querySelector(
398
+ `[data-date="${S}"]`
398
399
  );
399
400
  if (z) {
400
- if (D !== b || m !== l) {
401
- i > s ? (Et(), setTimeout(() => {
401
+ if (D !== x || p !== l) {
402
+ i > a ? (Et(), setTimeout(() => {
402
403
  z.focus();
403
404
  }, 0)) : (jt(), setTimeout(() => {
404
405
  z.focus();
@@ -409,52 +410,61 @@ const De = x.div`
409
410
  }
410
411
  }
411
412
  };
412
- return Bt(() => {
413
+ return _t(() => {
413
414
  var e;
414
415
  Ft(((e = tt.current) == null ? void 0 : e.clientWidth) || 0);
415
416
  }, [T]), nt(() => {
416
417
  const e = () => {
417
- var u;
418
- Ft(((u = tt.current) == null ? void 0 : u.clientWidth) || 0);
418
+ var c;
419
+ Ft(((c = tt.current) == null ? void 0 : c.clientWidth) || 0);
419
420
  };
420
421
  return window.addEventListener("resize", e), window.addEventListener("scroll", e), () => {
421
422
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e);
422
423
  };
423
424
  }, [T]), nt(() => {
424
- const e = g.current, u = (i, D, m) => {
425
- if (!e || !v.current) return;
425
+ const e = g.current, c = (i, D, p) => {
426
+ if (!e || !R.current) return;
426
427
  F.current = i - ct.current;
427
- const b = D - ct.current, l = 5;
428
- if (v.current = v.current || Math.abs(F.current) > l && Math.abs(b) < l * 2, m.cancelable && m.preventDefault(), v.current) {
429
- if (kt && F.current > 0) {
428
+ const x = D - ct.current, l = 5;
429
+ if (R.current = R.current || Math.abs(F.current) > l && Math.abs(x) < l * 2, p.cancelable && p.preventDefault(), R.current) {
430
+ if (xt && F.current > 0) {
430
431
  E();
431
432
  return;
432
433
  }
433
- if (Mt && F.current < 0) {
434
+ if (kt && F.current < 0) {
434
435
  E();
435
436
  return;
436
437
  }
437
- Math.abs(F.current) >= 10 && (e.style.transform = `translate3d(${F.current - k * w}px, 0, 0)`, e.style.cursor = "grabbing");
438
+ Math.abs(F.current) >= 10 && (e.style.transform = `translate3d(${F.current - A * b}px, 0, 0)`, e.style.cursor = "grabbing");
438
439
  }
439
- }, o = (i) => u(i.touches[0].clientX, i.touches[0].clientY, i), s = (i) => {
440
- v.current && u(i.clientX, i.clientY, i);
440
+ }, o = (i) => c(i.touches[0].clientX, i.touches[0].clientY, i), a = (i) => {
441
+ R.current && c(i.clientX, i.clientY, i);
441
442
  };
442
- return e == null || e.addEventListener("mousemove", s), e == null || e.addEventListener("touchmove", o), () => {
443
- e == null || e.removeEventListener("mousemove", s), e == null || e.removeEventListener("touchmove", o);
443
+ return e == null || e.addEventListener("mousemove", a), e == null || e.addEventListener("touchmove", o), () => {
444
+ e == null || e.removeEventListener("mousemove", a), e == null || e.removeEventListener("touchmove", o);
444
445
  };
445
- }, [k, w, E, Mt, kt]), nt(() => {
446
- Yt(!0), bt.current = setTimeout(() => {
447
- g.current && (g.current.style.transition = "none"), w > et.current ? (B(1), Dt((e) => new Date(e.setMonth(e.getMonth() + 1))), et.current = 1) : w < et.current ? (Dt((e) => new Date(e.setMonth(e.getMonth() - 1))), B(1), et.current = 1) : et.current = w, Yt(!1);
446
+ }, [A, b, E, kt, xt]), nt(() => {
447
+ Yt(!0), wt.current = setTimeout(() => {
448
+ if (g.current && (g.current.style.transition = "none"), b > et.current) {
449
+ K(1);
450
+ const e = new Date($.setMonth($.getMonth() + 1));
451
+ gt(e), u && typeof u == "function" && u(h(e), h), et.current = 1;
452
+ } else if (b < et.current) {
453
+ const e = new Date($.setMonth($.getMonth() - 1));
454
+ gt(e), u && typeof u == "function" && u(h(e), h), K(1), et.current = 1;
455
+ } else
456
+ et.current = b;
457
+ Yt(!1);
448
458
  }, 200);
449
- }, [w]), Bt(() => {
450
- if (!ot || !Array.isArray(a)) return;
451
- const e = te(a, P);
452
- a.length < e.length && (r == null || r(e, y));
453
- }, [ot, a, r, P]), nt(() => {
459
+ }, [b, $, u]), _t(() => {
460
+ if (!ot || !Array.isArray(s)) return;
461
+ const e = te(s, _);
462
+ s.length < e.length && (r == null || r(e, h));
463
+ }, [ot, s, r, _]), nt(() => {
454
464
  let e;
455
- return $t && (e = setTimeout(() => {
456
- if (xt.current) {
457
- const u = xt.current.querySelector("ul"), o = u == null ? void 0 : u.querySelector(`[data-value="${O}"]`);
465
+ return Dt && (e = setTimeout(() => {
466
+ if (bt.current) {
467
+ const c = bt.current.querySelector("ul"), o = c == null ? void 0 : c.querySelector(`[data-value="${O}"]`);
458
468
  o == null || o.scrollIntoView({
459
469
  block: "start"
460
470
  });
@@ -462,48 +472,48 @@ const De = x.div`
462
472
  }, 200)), () => {
463
473
  clearTimeout(e);
464
474
  };
465
- }, [$t, O]), nt(() => () => {
466
- bt.current && clearTimeout(bt.current);
467
- }, []), /* @__PURE__ */ S(De, { ref: ne, "aria-label": "달력", role: "application", ...re, css: ee, children: [
468
- T ? /* @__PURE__ */ S($e, { children: [
475
+ }, [Dt, O]), nt(() => () => {
476
+ wt.current && clearTimeout(wt.current);
477
+ }, []), /* @__PURE__ */ v($e, { ref: ie, "aria-label": "달력", role: "application", ...ne, css: re, children: [
478
+ T ? /* @__PURE__ */ v(we, { children: [
469
479
  /* @__PURE__ */ f(
470
- Kt,
480
+ qt,
471
481
  {
472
482
  name: "ChevronLeftLine",
473
483
  size: "small",
474
484
  onClick: jt,
475
- disabled: kt,
485
+ disabled: xt,
476
486
  "aria-label": `이전 달로 이동, 현재 ${j}`
477
487
  }
478
488
  ),
479
- Q && /* @__PURE__ */ S(
480
- Pt,
489
+ Z && /* @__PURE__ */ v(
490
+ Qt,
481
491
  {
482
492
  ref: lt,
483
493
  clickable: !0,
484
- onClick: ht,
494
+ onClick: mt,
485
495
  "aria-label": j,
486
496
  ...st,
487
497
  children: [
488
498
  O,
489
499
  /* @__PURE__ */ f(
490
- qt,
500
+ Ut,
491
501
  {
492
502
  iconOnly: !0,
493
503
  isMenuOpen: !1,
494
504
  size: "xSmall",
495
505
  variant: "text",
496
506
  menuId: "date-picker-month-menu",
497
- onClick: ht,
507
+ onClick: mt,
498
508
  "aria-label": `달 변경, 현재 ${j}`,
499
- startAdornment: /* @__PURE__ */ f(_t, { name: "ArrowDownFill", size: "xSmall" })
509
+ startAdornment: /* @__PURE__ */ f(Kt, { name: "ArrowDownFill", size: "xSmall" })
500
510
  }
501
511
  )
502
512
  ]
503
513
  }
504
514
  ),
505
- !Q && /* @__PURE__ */ f(
506
- Pt,
515
+ !Z && /* @__PURE__ */ f(
516
+ Qt,
507
517
  {
508
518
  ref: lt,
509
519
  id: "date-picker-title",
@@ -514,83 +524,83 @@ const De = x.div`
514
524
  }
515
525
  ),
516
526
  /* @__PURE__ */ f(
517
- Kt,
527
+ qt,
518
528
  {
519
529
  name: "ChevronRightLine",
520
530
  size: "small",
521
531
  onClick: Et,
522
- disabled: Mt,
532
+ disabled: kt,
523
533
  "aria-label": `다음 달로 이동, 현재 ${j}`
524
534
  }
525
535
  )
526
- ] }) : /* @__PURE__ */ S(fe, { children: [
527
- Q && /* @__PURE__ */ S(
528
- Ut,
536
+ ] }) : /* @__PURE__ */ v(de, { children: [
537
+ Z && /* @__PURE__ */ v(
538
+ Gt,
529
539
  {
530
540
  ref: lt,
531
541
  clickable: !0,
532
- onClick: ht,
542
+ onClick: mt,
533
543
  "aria-label": j,
534
544
  ...st,
535
545
  children: [
536
546
  O,
537
547
  /* @__PURE__ */ f(
538
- qt,
548
+ Ut,
539
549
  {
540
550
  iconOnly: !0,
541
551
  isMenuOpen: !1,
542
552
  size: "xSmall",
543
553
  variant: "text",
544
554
  menuId: "date-picker-month-menu",
545
- onClick: ht,
555
+ onClick: mt,
546
556
  "aria-label": `달 변경, 현재 ${j}`,
547
- startAdornment: /* @__PURE__ */ f(_t, { name: "ArrowDownFill", size: "xSmall" })
557
+ startAdornment: /* @__PURE__ */ f(Kt, { name: "ArrowDownFill", size: "xSmall" })
548
558
  }
549
559
  )
550
560
  ]
551
561
  }
552
562
  ),
553
- !Q && /* @__PURE__ */ f(Ut, { id: "date-picker-title", clickable: !1, ...st, children: O })
563
+ !Z && /* @__PURE__ */ f(Gt, { id: "date-picker-title", clickable: !1, ...st, children: O })
554
564
  ] }),
555
- Q && /* @__PURE__ */ f(
556
- pe,
565
+ Z && /* @__PURE__ */ f(
566
+ ye,
557
567
  {
558
568
  id: "date-picker-month-menu",
559
569
  anchorRef: lt,
560
- ref: xt,
561
- open: $t,
562
- onClose: ae,
563
- onChange: ce,
570
+ ref: bt,
571
+ open: Dt,
572
+ onClose: ce,
573
+ onChange: le,
564
574
  value: O,
565
575
  placement: T ? "bottom-center" : "bottom-left",
566
576
  width: 160,
567
577
  fitToAnchorWidth: !1,
568
578
  maxHeight: 368,
569
- children: Array.from({ length: 130 }, (e, u) => {
570
- const o = 1970 + u;
571
- return Array.from({ length: 12 }, (s, i) => {
572
- const D = i + 1, m = D < 10 ? `0${D}` : D, b = new Date(o, i + 1, 0).getDate(), l = `${o}-${m}-${b}`, A = `${o}-${m}-01`;
573
- return V(l, h) || C(A, d) ? null : /* @__PURE__ */ f(
579
+ children: Array.from({ length: 130 }, (e, c) => {
580
+ const o = 1970 + c;
581
+ return Array.from({ length: 12 }, (a, i) => {
582
+ const D = i + 1, p = D < 10 ? `0${D}` : D, x = new Date(o, i + 1, 0).getDate(), l = `${o}-${p}-${x}`, S = `${o}-${p}-01`;
583
+ return P(l, d) || N(S, m) ? null : /* @__PURE__ */ f(
574
584
  ge,
575
585
  {
576
- value: `${o}. ${m}`,
577
- "aria-label": `${o}년 ${m}월 선택`,
578
- children: `${o}. ${m}`
586
+ value: `${o}. ${p}`,
587
+ "aria-label": `${o}년 ${p}월 선택`,
588
+ children: `${o}. ${p}`
579
589
  },
580
- `${o}-${m}`
590
+ `${o}-${p}`
581
591
  );
582
592
  });
583
593
  })
584
594
  }
585
595
  ),
586
- /* @__PURE__ */ S(
587
- me,
596
+ /* @__PURE__ */ v(
597
+ he,
588
598
  {
589
599
  flexDirection: "column",
590
600
  role: "grid",
591
601
  "aria-label": `${M}년 ${I}월 달력`,
592
602
  children: [
593
- gt && /* @__PURE__ */ S(we, { id: "date-picker-week-head", role: "row", edgeSpacing: yt, children: [
603
+ ee && /* @__PURE__ */ v(be, { id: "date-picker-week-head", role: "row", edgeSpacing: yt, children: [
594
604
  /* @__PURE__ */ f("span", { role: "columnheader", children: "일" }),
595
605
  /* @__PURE__ */ f("span", { role: "columnheader", children: "월" }),
596
606
  /* @__PURE__ */ f("span", { role: "columnheader", children: "화" }),
@@ -599,101 +609,101 @@ const De = x.div`
599
609
  /* @__PURE__ */ f("span", { role: "columnheader", children: "금" }),
600
610
  /* @__PURE__ */ f("span", { role: "columnheader", children: "토" })
601
611
  ] }),
602
- /* @__PURE__ */ f(be, { ref: tt, role: "presentation", children: /* @__PURE__ */ S(
603
- xe,
612
+ /* @__PURE__ */ f(xe, { ref: tt, role: "presentation", children: /* @__PURE__ */ v(
613
+ ke,
604
614
  {
605
615
  role: "presentation",
606
616
  ref: g,
607
- onMouseDown: oe,
617
+ onMouseDown: se,
608
618
  onMouseUp: E,
609
619
  onMouseLeave: E,
610
- onTouchStart: se,
620
+ onTouchStart: ae,
611
621
  onTouchEnd: E,
612
622
  onTouchCancel: E,
613
623
  style: {
614
- transform: T ? `translate3d(-${k * w}px, 0, 0)` : void 0,
624
+ transform: T ? `translate3d(-${A * b}px, 0, 0)` : void 0,
615
625
  cursor: T ? "grab" : void 0,
616
- maxHeight: ie
626
+ maxHeight: oe
617
627
  },
618
628
  children: [
619
629
  T && It.map(
620
- ({ year: e, month: u, weeks: o }, s) => /* @__PURE__ */ f(
621
- Gt,
630
+ ({ year: e, month: c, weeks: o }, a) => /* @__PURE__ */ f(
631
+ Vt,
622
632
  {
623
633
  role: "rowgroup",
624
634
  edgeSpacing: yt,
625
- className: s === 1 ? "week-body-current" : "",
635
+ className: a === 1 ? "week-body-current" : "",
626
636
  children: o.map((i, D) => /* @__PURE__ */ f(
627
- Vt,
637
+ Jt,
628
638
  {
629
639
  role: "row",
630
- children: i.map((m, b) => {
631
- const l = `${e}-${u}-${J(m || 0)}`, A = !m, z = W(l, /* @__PURE__ */ new Date()), Tt = Array.isArray(K) ? K.includes(l) : K === l, rt = Array.isArray(_) ? _.includes(l) : _ === l, G = !m || (Array.isArray(q) ? q.includes(l) : q === l) || C(l, d) || V(l, h), vt = U && W(l, $), mt = U && W(l, L), le = U && C(l, $) && V(l, L), Ct = pt(l, H), ue = Ct && D === 0 && m === 1 || Ct && rt, Nt = Y == null ? void 0 : Y(l);
632
- return /* @__PURE__ */ S(
633
- Jt,
640
+ children: i.map((p, x) => {
641
+ const l = `${e}-${c}-${Q(p || 0)}`, S = !p, z = H(l, /* @__PURE__ */ new Date()), St = Array.isArray(U) ? U.includes(l) : U === l, rt = Array.isArray(q) ? q.includes(l) : q === l, J = !p || (Array.isArray(G) ? G.includes(l) : G === l) || N(l, m) || P(l, d), vt = V && H(l, w), pt = V && H(l, L), ue = V && N(l, w) && P(l, L), Nt = ht(l, $), fe = Nt && D === 0 && p === 1 || Nt && rt, Bt = Y == null ? void 0 : Y(l);
642
+ return /* @__PURE__ */ v(
643
+ Pt,
634
644
  {
635
645
  as: "button",
636
646
  role: "gridcell",
637
- variant: vt ? "start" : mt ? "end" : le ? "middle" : void 0,
638
- onClick: St(l, G),
647
+ variant: vt ? "start" : pt ? "end" : ue ? "middle" : void 0,
648
+ onClick: Mt(l, J),
639
649
  today: Wt && z,
640
- holiday: Tt,
641
- tabIndex: ue ? 0 : -1,
650
+ holiday: St,
651
+ tabIndex: fe ? 0 : -1,
642
652
  "aria-rowindex": D + 1,
643
- "aria-colindex": b + 1,
653
+ "aria-colindex": x + 1,
644
654
  selected: rt,
645
655
  "aria-selected": rt,
646
- "aria-disabled": G,
647
- "aria-hidden": m === null,
656
+ "aria-disabled": J,
657
+ "aria-hidden": p === null,
648
658
  "data-date": l,
649
- onKeyDown: Xt(l, G),
659
+ onKeyDown: Xt(l, J),
650
660
  children: [
651
- /* @__PURE__ */ f("div", { "aria-label": `${Zt(l)}`, children: /* @__PURE__ */ f("span", { children: m }) }),
652
- !A && Nt,
653
- !A && At && !Nt && /* @__PURE__ */ f(Qt, {})
661
+ /* @__PURE__ */ f("div", { "aria-label": `${Ct(l)}`, children: /* @__PURE__ */ f("span", { children: p }) }),
662
+ !S && Bt,
663
+ !S && At && !Bt && /* @__PURE__ */ f(Zt, {})
654
664
  ]
655
665
  },
656
- `${e}-${u}-week-row-${b}-${m ? l : `${D}-${b}`}`
666
+ `${e}-${c}-week-row-${x}-${p ? l : `${D}-${x}`}`
657
667
  );
658
668
  })
659
669
  },
660
- `${e}-${u}-week-row-${String(i)}`
670
+ `${e}-${c}-week-row-${String(i)}`
661
671
  ))
662
672
  },
663
- `week-body-${e}-${u}`
673
+ `week-body-${e}-${c}`
664
674
  )
665
675
  ),
666
- !T && /* @__PURE__ */ f(Gt, { role: "rowgroup", edgeSpacing: yt, children: Lt.map((e, u) => /* @__PURE__ */ f(
667
- Vt,
676
+ !T && /* @__PURE__ */ f(Vt, { role: "rowgroup", edgeSpacing: yt, children: Lt.map((e, c) => /* @__PURE__ */ f(
677
+ Jt,
668
678
  {
669
679
  role: "row",
670
- children: e.map((o, s) => {
671
- const i = `${M}-${I}-${J(o || 0)}`, D = !o, m = W(i, /* @__PURE__ */ new Date()), b = Array.isArray(K) ? K.includes(i) : K === i, l = Array.isArray(_) ? _.includes(i) : _ === i, A = !o || (Array.isArray(q) ? q.includes(i) : q === i) || C(i, d) || V(i, h), z = U && W(i, $), Tt = U && W(i, L), rt = U && C(i, $) && V(i, L), G = pt(i, H), vt = G && u === 0 && o === 1 || G && l, mt = Y == null ? void 0 : Y(i);
672
- return /* @__PURE__ */ S(
673
- Jt,
680
+ children: e.map((o, a) => {
681
+ const i = `${M}-${I}-${Q(o || 0)}`, D = !o, p = H(i, /* @__PURE__ */ new Date()), x = Array.isArray(U) ? U.includes(i) : U === i, l = Array.isArray(q) ? q.includes(i) : q === i, S = !o || (Array.isArray(G) ? G.includes(i) : G === i) || N(i, m) || P(i, d), z = V && H(i, w), St = V && H(i, L), rt = V && N(i, w) && P(i, L), J = ht(i, $), vt = J && c === 0 && o === 1 || J && l, pt = Y == null ? void 0 : Y(i);
682
+ return /* @__PURE__ */ v(
683
+ Pt,
674
684
  {
675
685
  as: "button",
676
- variant: z ? "start" : Tt ? "end" : rt ? "middle" : void 0,
686
+ variant: z ? "start" : St ? "end" : rt ? "middle" : void 0,
677
687
  role: "gridcell",
678
- onClick: St(i, A),
679
- today: Wt && m,
680
- holiday: b,
681
- "aria-rowindex": u + 1,
682
- "aria-colindex": s + 1,
688
+ onClick: Mt(i, S),
689
+ today: Wt && p,
690
+ holiday: x,
691
+ "aria-rowindex": c + 1,
692
+ "aria-colindex": a + 1,
683
693
  selected: l,
684
694
  "aria-selected": l,
685
- "aria-disabled": A,
695
+ "aria-disabled": S,
686
696
  "aria-hidden": o === null,
687
697
  tabIndex: vt ? 0 : -1,
688
698
  "data-date": i,
689
- onKeyDown: Xt(i, A),
699
+ onKeyDown: Xt(i, S),
690
700
  children: [
691
- /* @__PURE__ */ f("div", { "aria-label": `${Zt(i)}`, children: /* @__PURE__ */ f("span", { children: o }) }),
692
- !D && mt,
693
- !D && At && !mt && /* @__PURE__ */ f(Qt, {})
701
+ /* @__PURE__ */ f("div", { "aria-label": `${Ct(i)}`, children: /* @__PURE__ */ f("span", { children: o }) }),
702
+ !D && pt,
703
+ !D && At && !pt && /* @__PURE__ */ f(Zt, {})
694
704
  ]
695
705
  },
696
- `${M}-${I}-week-row-${e}-${o ? i : `${u}-${s}`}`
706
+ `${M}-${I}-week-row-${e}-${o ? i : `${c}-${a}`}`
697
707
  );
698
708
  })
699
709
  },
@@ -708,78 +718,78 @@ const De = x.div`
708
718
  n
709
719
  ] });
710
720
  });
711
- function Rt(t, n) {
721
+ function Tt(t, n) {
712
722
  let r = [];
713
- const a = new Date(t, n, 1), c = new Date(t, n + 1, 0).getDate(), h = a.getDay();
714
- let d = Array.from({ length: h }).fill(null);
715
- for (let p = 1; p <= c; p += 1)
716
- d.push(p), (d.length === 7 || p === c) && (r.push(d), d = []);
723
+ const u = new Date(t, n, 1), s = new Date(t, n + 1, 0).getDate(), y = u.getDay();
724
+ let d = Array.from({ length: y }).fill(null);
725
+ for (let m = 1; m <= s; m += 1)
726
+ d.push(m), (d.length === 7 || m === s) && (r.push(d), d = []);
717
727
  return r = r.map(
718
- (p) => Array.from({ length: 7 }).map((P, gt) => p[gt] || null)
728
+ (m) => Array.from({ length: 7 }).map((Rt, _) => m[_] || null)
719
729
  ), r;
720
730
  }
721
- function N(t) {
731
+ function B(t) {
722
732
  return String(t + 1).length === 1 ? `0${t + 1}` : t + 1;
723
733
  }
724
- function J(t) {
734
+ function Q(t) {
725
735
  return String(t).length === 1 ? `0${t}` : t;
726
736
  }
727
- function y(t) {
737
+ function h(t) {
728
738
  if (Array.isArray(t))
729
- return t.map((n) => n instanceof Date ? `${n.getFullYear()}-${N(n.getMonth())}-${J(n.getDate())}` : n);
739
+ return t.map((n) => n instanceof Date ? `${n.getFullYear()}-${B(n.getMonth())}-${Q(n.getDate())}` : n);
730
740
  if (t instanceof Date)
731
- return `${t.getFullYear()}-${N(t.getMonth())}-${J(t.getDate())}`;
741
+ return `${t.getFullYear()}-${B(t.getMonth())}-${Q(t.getDate())}`;
732
742
  if (typeof t == "number") {
733
743
  const n = new Date(t);
734
- return `${n.getFullYear()}-${N(n.getMonth())}-${J(n.getDate())}`;
744
+ return `${n.getFullYear()}-${B(n.getMonth())}-${Q(n.getDate())}`;
735
745
  }
736
746
  return t;
737
747
  }
738
- function Zt(t) {
739
- const [n, r, a] = t.split("-");
740
- return `${n}년 ${Number(r)}월 ${Number(a)}일`;
748
+ function Ct(t) {
749
+ const [n, r, u] = t.split("-");
750
+ return `${n}년 ${Number(r)}월 ${Number(u)}일`;
741
751
  }
742
- function C(t, n) {
752
+ function N(t, n) {
743
753
  if (!t || !n)
744
754
  return !1;
745
755
  const r = t instanceof Date ? t : new Date(t);
746
756
  r.setHours(0), r.setMinutes(0), r.setSeconds(0), r.setMilliseconds(0);
747
- const a = r.getTime(), c = n instanceof Date ? n : new Date(n);
748
- c.setHours(0), c.setMinutes(0), c.setSeconds(0), c.setMilliseconds(0);
749
- const h = c.getTime();
750
- return a > h;
757
+ const u = r.getTime(), s = n instanceof Date ? n : new Date(n);
758
+ s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0);
759
+ const y = s.getTime();
760
+ return u > y;
751
761
  }
752
- function V(t, n) {
762
+ function P(t, n) {
753
763
  if (!t || !n)
754
764
  return !1;
755
765
  const r = t instanceof Date ? t : new Date(t);
756
766
  r.setHours(0), r.setMinutes(0), r.setSeconds(0), r.setMilliseconds(0);
757
- const a = r.getTime(), c = n instanceof Date ? n : new Date(n);
758
- c.setHours(0), c.setMinutes(0), c.setSeconds(0), c.setMilliseconds(0);
759
- const h = c.getTime();
760
- return a < h;
767
+ const u = r.getTime(), s = n instanceof Date ? n : new Date(n);
768
+ s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0);
769
+ const y = s.getTime();
770
+ return u < y;
761
771
  }
762
- function pt(t, n) {
772
+ function ht(t, n) {
763
773
  if (!t || !n)
764
774
  return !1;
765
- const r = t instanceof Date ? t : new Date(t), a = n instanceof Date ? n : new Date(n);
766
- return `${r.getFullYear()}-${r.getMonth()}` == `${a.getFullYear()}-${a.getMonth()}`;
775
+ const r = t instanceof Date ? t : new Date(t), u = n instanceof Date ? n : new Date(n);
776
+ return `${r.getFullYear()}-${r.getMonth()}` == `${u.getFullYear()}-${u.getMonth()}`;
767
777
  }
768
- function W(t, n) {
778
+ function H(t, n) {
769
779
  if (!t || !n)
770
780
  return !1;
771
781
  const r = t instanceof Date ? t : new Date(t);
772
782
  r.setHours(0), r.setMinutes(0), r.setSeconds(0), r.setMilliseconds(0);
773
- const a = r.getTime(), c = n instanceof Date ? n : new Date(n);
774
- c.setHours(0), c.setMinutes(0), c.setSeconds(0), c.setMilliseconds(0);
775
- const h = c.getTime();
776
- return a === h;
783
+ const u = r.getTime(), s = n instanceof Date ? n : new Date(n);
784
+ s.setHours(0), s.setMinutes(0), s.setSeconds(0), s.setMilliseconds(0);
785
+ const y = s.getTime();
786
+ return u === y;
777
787
  }
778
788
  function te(t, n) {
779
789
  if (!t || !Array.isArray(t) || t.length === 0)
780
790
  return [];
781
- const r = t.map((p) => p instanceof Date ? p : p === null ? /* @__PURE__ */ new Date() : new Date(p)), a = new Date(Math.min(...r.map((p) => p.getTime()))), c = new Date(Math.max(...r.map((p) => p.getTime()))), h = [], d = new Date(a);
782
- for (; d <= c; ) {
791
+ const r = t.map((m) => m instanceof Date ? m : m === null ? /* @__PURE__ */ new Date() : new Date(m)), u = new Date(Math.min(...r.map((m) => m.getTime()))), s = new Date(Math.max(...r.map((m) => m.getTime()))), y = [], d = new Date(u);
792
+ for (; d <= s; ) {
783
793
  if (Array.isArray(n) && n.includes(d)) {
784
794
  d.setDate(d.getDate() + 1);
785
795
  continue;
@@ -787,14 +797,14 @@ function te(t, n) {
787
797
  d.setDate(d.getDate() + 1);
788
798
  continue;
789
799
  }
790
- h.push(
791
- `${d.getFullYear()}-${N(d.getMonth())}-${J(
800
+ y.push(
801
+ `${d.getFullYear()}-${B(d.getMonth())}-${Q(
792
802
  d.getDate()
793
803
  )}`
794
804
  ), d.setDate(d.getDate() + 1);
795
805
  }
796
- return h;
806
+ return y;
797
807
  }
798
808
  export {
799
- Le as default
809
+ Ie as default
800
810
  };