qaema-ui 0.0.26 → 0.0.28

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 (214) hide show
  1. package/dist/_virtual/index.js +5 -5
  2. package/dist/_virtual/index2.js +4 -4
  3. package/dist/_virtual/index3.js +5 -5
  4. package/dist/_virtual/index4.js +4 -4
  5. package/dist/assets/icons/RiyalIcon.d.ts +1 -1
  6. package/dist/components/AccordionCard.d.ts +1 -1
  7. package/dist/components/ActionInput.d.ts +2 -2
  8. package/dist/components/AddOnCardInput.d.ts +2 -2
  9. package/dist/components/Alert.d.ts +1 -1
  10. package/dist/components/AmountItem.d.ts +2 -2
  11. package/dist/components/Badge.d.ts +3 -3
  12. package/dist/components/Button.d.ts +3 -2
  13. package/dist/components/Card.d.ts +1 -1
  14. package/dist/components/CardsList.d.ts +2 -2
  15. package/dist/components/Chart.d.ts +1 -1
  16. package/dist/components/ChartLegend/ChartLegend.d.ts +2 -2
  17. package/dist/components/ChartLegend/ChartLegend.js +8 -7
  18. package/dist/components/ChartLegend/PieChartLegend.d.ts +1 -1
  19. package/dist/components/ChartLegend/styles.d.ts +5 -5
  20. package/dist/components/CollapsableCard.d.ts +1 -1
  21. package/dist/components/ConfigList.d.ts +1 -1
  22. package/dist/components/ConfirmationPopup.d.ts +1 -1
  23. package/dist/components/DatePicker.d.ts +1 -1
  24. package/dist/components/DatePicker.js +1 -1
  25. package/dist/components/Divider.d.ts +2 -2
  26. package/dist/components/Draggable.d.ts +1 -1
  27. package/dist/components/DropDown.d.ts +1 -1
  28. package/dist/components/DropDownWithTable/DropDownWithTable.d.ts +1 -1
  29. package/dist/components/DropDownWithTable/DropDownWithTable.js +69 -64
  30. package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +2 -1
  31. package/dist/components/DropDownWithTable/Table/Table.d.ts +1 -1
  32. package/dist/components/DropDownWithTable/Table/Table.js +66 -66
  33. package/dist/components/DropDownWithTable/Table/Table.styles.d.ts +27 -27
  34. package/dist/components/DropDownWithTable/Table/components/CellComponents.d.ts +6 -6
  35. package/dist/components/DropDownWithTable/Table/components/CellComponents.js +82 -82
  36. package/dist/components/DropDownWithTable/Table/components/TableHead.d.ts +1 -1
  37. package/dist/components/FileDownloadCard.d.ts +1 -1
  38. package/dist/components/Filter.d.ts +14 -14
  39. package/dist/components/FilterActiveBar.d.ts +1 -1
  40. package/dist/components/Header.d.ts +3 -2
  41. package/dist/components/HelpCard.d.ts +2 -2
  42. package/dist/components/Hint.d.ts +2 -2
  43. package/dist/components/HorizontalChart.d.ts +2 -2
  44. package/dist/components/Image.d.ts +2 -2
  45. package/dist/components/InfoCard.d.ts +1 -1
  46. package/dist/components/InfoItem.d.ts +1 -1
  47. package/dist/components/InputField.d.ts +2 -2
  48. package/dist/components/Layout.d.ts +4 -3
  49. package/dist/components/Legend.d.ts +1 -1
  50. package/dist/components/Link.d.ts +1 -1
  51. package/dist/components/ListToolbar.d.ts +5 -5
  52. package/dist/components/MethodCard.d.ts +1 -1
  53. package/dist/components/Modal.d.ts +2 -2
  54. package/dist/components/ModalWithRequestCard.d.ts +2 -2
  55. package/dist/components/NavItem.d.ts +2 -2
  56. package/dist/components/NavigationPanel.d.ts +2 -2
  57. package/dist/components/NextActionBox.d.ts +1 -1
  58. package/dist/components/NextActionBox.js +104 -0
  59. package/dist/components/NumberInput.d.ts +1 -1
  60. package/dist/components/OTP.d.ts +1 -1
  61. package/dist/components/OptionCardGroup.d.ts +2 -2
  62. package/dist/components/OptionCardGroup.js +16 -15
  63. package/dist/components/Pagination.d.ts +1 -1
  64. package/dist/components/PasswordInputField.d.ts +2 -2
  65. package/dist/components/PaymentLinkDetails.d.ts +1 -1
  66. package/dist/components/PaymentTooltip.d.ts +2 -2
  67. package/dist/components/PhoneInputField.d.ts +2 -2
  68. package/dist/components/QuickActionItem.d.ts +2 -2
  69. package/dist/components/QuickStartCard.d.ts +4 -4
  70. package/dist/components/RadioInput.d.ts +1 -1
  71. package/dist/components/ReconciliationGroups.d.ts +1 -1
  72. package/dist/components/RequestCard.d.ts +7 -7
  73. package/dist/components/RequestSummaryCard.d.ts +6 -6
  74. package/dist/components/SectionHeader.d.ts +1 -1
  75. package/dist/components/SideMenuLinks.d.ts +1 -1
  76. package/dist/components/Sidemenu.d.ts +2 -2
  77. package/dist/components/Spinner.d.ts +1 -1
  78. package/dist/components/StatCard.d.ts +1 -1
  79. package/dist/components/StatIndicator.d.ts +1 -1
  80. package/dist/components/StatusFeedback.d.ts +2 -2
  81. package/dist/components/StepperProcess.d.ts +391 -571
  82. package/dist/components/SummaryCard.d.ts +1 -1
  83. package/dist/components/Table/Table.d.ts +1 -1
  84. package/dist/components/Table/Table.styles.d.ts +27 -27
  85. package/dist/components/Table/components/CellComponents.d.ts +6 -6
  86. package/dist/components/Table/components/TableHead.d.ts +1 -1
  87. package/dist/components/Tabs.d.ts +1 -1
  88. package/dist/components/TextArea.d.ts +1 -1
  89. package/dist/components/ThemeProvider.d.ts +2 -2
  90. package/dist/components/ToastNotification.d.ts +2 -2
  91. package/dist/components/Toggle.d.ts +2 -2
  92. package/dist/components/ToggleForm.d.ts +2 -2
  93. package/dist/components/Typography.d.ts +3 -3
  94. package/dist/components/index.d.ts +1 -1
  95. package/dist/hooks/useFormikInput.d.ts +11 -11
  96. package/dist/hooks/useTypographyVariant.d.ts +1 -1
  97. package/dist/i18n/i18n.d.ts +3 -3
  98. package/dist/index.js +173 -171
  99. package/dist/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -1
  100. package/dist/node_modules/@restart/ui/esm/ImperativeTransition.js +1 -0
  101. package/dist/node_modules/d3-format/src/defaultLocale.js +4 -3
  102. package/dist/node_modules/d3-format/src/formatDecimal.js +4 -4
  103. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +5 -5
  104. package/dist/node_modules/d3-format/src/locale.js +37 -37
  105. package/dist/node_modules/d3-shape/src/symbol/circle.js +3 -3
  106. package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -5
  107. package/dist/node_modules/d3-time-format/src/locale.js +14 -14
  108. package/dist/node_modules/date-fns/addDays.js +3 -2
  109. package/dist/node_modules/date-fns/addMonths.js +9 -8
  110. package/dist/node_modules/date-fns/constructFrom.js +2 -1
  111. package/dist/node_modules/date-fns/differenceInCalendarDays.js +3 -2
  112. package/dist/node_modules/date-fns/endOfMonth.js +4 -3
  113. package/dist/node_modules/date-fns/endOfWeek.js +5 -4
  114. package/dist/node_modules/date-fns/format.js +1 -0
  115. package/dist/node_modules/date-fns/getDayOfYear.js +4 -3
  116. package/dist/node_modules/date-fns/getDaysInMonth.js +6 -5
  117. package/dist/node_modules/date-fns/getDefaultOptions.js +3 -2
  118. package/dist/node_modules/date-fns/getISODay.js +6 -5
  119. package/dist/node_modules/date-fns/getISOWeek.js +5 -4
  120. package/dist/node_modules/date-fns/getISOWeekYear.js +1 -0
  121. package/dist/node_modules/date-fns/getWeek.js +6 -5
  122. package/dist/node_modules/date-fns/getWeekYear.js +1 -0
  123. package/dist/node_modules/date-fns/getYear.js +3 -2
  124. package/dist/node_modules/date-fns/isAfter.js +3 -2
  125. package/dist/node_modules/date-fns/isBefore.js +4 -3
  126. package/dist/node_modules/date-fns/isDate.js +1 -0
  127. package/dist/node_modules/date-fns/isSameDay.js +9 -8
  128. package/dist/node_modules/date-fns/isSameMonth.js +6 -5
  129. package/dist/node_modules/date-fns/isValid.js +5 -4
  130. package/dist/node_modules/date-fns/locale/ar-SA.js +7 -6
  131. package/dist/node_modules/date-fns/locale/en-US.js +9 -8
  132. package/dist/node_modules/date-fns/parse.js +11 -10
  133. package/dist/node_modules/date-fns/setDay.js +7 -6
  134. package/dist/node_modules/date-fns/setISODay.js +4 -3
  135. package/dist/node_modules/date-fns/setISOWeek.js +5 -4
  136. package/dist/node_modules/date-fns/setMonth.js +6 -5
  137. package/dist/node_modules/date-fns/setWeek.js +4 -3
  138. package/dist/node_modules/date-fns/setYear.js +5 -4
  139. package/dist/node_modules/date-fns/startOfDay.js +5 -4
  140. package/dist/node_modules/date-fns/startOfISOWeek.js +3 -2
  141. package/dist/node_modules/date-fns/startOfISOWeekYear.js +6 -5
  142. package/dist/node_modules/date-fns/startOfMonth.js +1 -0
  143. package/dist/node_modules/date-fns/startOfWeek.js +8 -7
  144. package/dist/node_modules/date-fns/startOfWeekYear.js +5 -4
  145. package/dist/node_modules/date-fns/startOfYear.js +1 -0
  146. package/dist/node_modules/date-fns/subMonths.js +4 -3
  147. package/dist/node_modules/date-fns/toDate.js +4 -3
  148. package/dist/node_modules/date-fns/transpose.js +3 -2
  149. package/dist/node_modules/fast-equals/dist/esm/index.js +298 -0
  150. package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
  151. package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
  152. package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
  153. package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
  154. package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
  155. package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
  156. package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
  157. package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
  158. package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
  159. package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
  160. package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
  161. package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
  162. package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
  163. package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
  164. package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
  165. package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
  166. package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
  167. package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
  168. package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
  169. package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
  170. package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
  171. package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
  172. package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
  173. package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
  174. package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
  175. package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
  176. package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
  177. package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
  178. package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
  179. package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
  180. package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
  181. package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
  182. package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
  183. package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
  184. package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
  185. package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
  186. package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
  187. package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
  188. package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
  189. package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
  190. package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
  191. package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
  192. package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
  193. package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
  194. package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
  195. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  196. package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
  197. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  198. package/dist/node_modules/recharts/es6/component/Cursor.js +2 -2
  199. package/dist/node_modules/recharts/es6/util/ChartUtils.js +2 -2
  200. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +7 -7
  201. package/dist/node_modules/victory-vendor/es/d3-scale.js +40 -40
  202. package/dist/styles/Currency.styles.d.ts +1 -1
  203. package/dist/styles/Dropdown.styles.d.ts +30 -29
  204. package/dist/styles/Dropdown.styles.js +18 -11
  205. package/dist/styles/Input.styles.d.ts +1 -1
  206. package/dist/styles/Scrollbar.styles.d.ts +1 -1
  207. package/dist/styles/StatusFeedback.styles.d.ts +7 -7
  208. package/dist/theme/theme.d.ts +1 -1
  209. package/package.json +2 -3
  210. package/dist/i18n/locales/ar.json.d.ts +0 -55
  211. package/dist/i18n/locales/en.json.d.ts +0 -55
  212. package/dist/node_modules/fast-equals/dist/es/index.js +0 -324
  213. package/dist/node_modules/react-bootstrap/esm/Spinner.js +0 -26
  214. package/dist/theme/styled-components.d.ts +0 -5
@@ -1,6 +1,6 @@
1
- import { utcMonday as F, timeMonday as N, timeSunday as Ye, timeThursday as S, utcSunday as He, utcThursday as w } from "../../d3-time/src/week.js";
1
+ import { utcMonday as F, timeMonday as N, utcThursday as S, utcSunday as Ye, timeThursday as w, timeSunday as He } from "../../d3-time/src/week.js";
2
2
  import { utcDay as B, timeDay as G } from "../../d3-time/src/day.js";
3
- import { timeYear as d, utcYear as x } from "../../d3-time/src/year.js";
3
+ import { utcYear as d, timeYear as x } from "../../d3-time/src/year.js";
4
4
  function H(e) {
5
5
  if (0 <= e.y && e.y < 100) {
6
6
  var n = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
@@ -347,7 +347,7 @@ function Je(e, n) {
347
347
  return f(e.getHours() % 12 || 12, n, 2);
348
348
  }
349
349
  function Ke(e, n) {
350
- return f(1 + G.count(d(e), e), n, 3);
350
+ return f(1 + G.count(x(e), e), n, 3);
351
351
  }
352
352
  function z(e, n) {
353
353
  return f(e.getMilliseconds(), n, 3);
@@ -369,20 +369,20 @@ function un(e) {
369
369
  return n === 0 ? 7 : n;
370
370
  }
371
371
  function on(e, n) {
372
- return f(Ye.count(d(e) - 1, e), n, 2);
372
+ return f(He.count(x(e) - 1, e), n, 2);
373
373
  }
374
374
  function $(e) {
375
375
  var n = e.getDay();
376
- return n >= 4 || n === 0 ? S(e) : S.ceil(e);
376
+ return n >= 4 || n === 0 ? w(e) : w.ceil(e);
377
377
  }
378
378
  function an(e, n) {
379
- return e = $(e), f(S.count(d(e), e) + (d(e).getDay() === 4), n, 2);
379
+ return e = $(e), f(w.count(x(e), e) + (x(e).getDay() === 4), n, 2);
380
380
  }
381
381
  function cn(e) {
382
382
  return e.getDay();
383
383
  }
384
384
  function fn(e, n) {
385
- return f(N.count(d(e) - 1, e), n, 2);
385
+ return f(N.count(x(e) - 1, e), n, 2);
386
386
  }
387
387
  function ln(e, n) {
388
388
  return f(e.getFullYear() % 100, n, 2);
@@ -395,7 +395,7 @@ function mn(e, n) {
395
395
  }
396
396
  function gn(e, n) {
397
397
  var t = e.getDay();
398
- return e = t >= 4 || t === 0 ? S(e) : S.ceil(e), f(e.getFullYear() % 1e4, n, 4);
398
+ return e = t >= 4 || t === 0 ? w(e) : w.ceil(e), f(e.getFullYear() % 1e4, n, 4);
399
399
  }
400
400
  function yn(e) {
401
401
  var n = e.getTimezoneOffset();
@@ -411,7 +411,7 @@ function Tn(e, n) {
411
411
  return f(e.getUTCHours() % 12 || 12, n, 2);
412
412
  }
413
413
  function Un(e, n) {
414
- return f(1 + B.count(x(e), e), n, 3);
414
+ return f(1 + B.count(d(e), e), n, 3);
415
415
  }
416
416
  function E(e, n) {
417
417
  return f(e.getUTCMilliseconds(), n, 3);
@@ -433,20 +433,20 @@ function Dn(e) {
433
433
  return n === 0 ? 7 : n;
434
434
  }
435
435
  function Sn(e, n) {
436
- return f(He.count(x(e) - 1, e), n, 2);
436
+ return f(Ye.count(d(e) - 1, e), n, 2);
437
437
  }
438
438
  function J(e) {
439
439
  var n = e.getUTCDay();
440
- return n >= 4 || n === 0 ? w(e) : w.ceil(e);
440
+ return n >= 4 || n === 0 ? S(e) : S.ceil(e);
441
441
  }
442
442
  function wn(e, n) {
443
- return e = J(e), f(w.count(x(e), e) + (x(e).getUTCDay() === 4), n, 2);
443
+ return e = J(e), f(S.count(d(e), e) + (d(e).getUTCDay() === 4), n, 2);
444
444
  }
445
445
  function dn(e) {
446
446
  return e.getUTCDay();
447
447
  }
448
448
  function xn(e, n) {
449
- return f(F.count(x(e) - 1, e), n, 2);
449
+ return f(F.count(d(e) - 1, e), n, 2);
450
450
  }
451
451
  function kn(e, n) {
452
452
  return f(e.getUTCFullYear() % 100, n, 2);
@@ -459,7 +459,7 @@ function Ln(e, n) {
459
459
  }
460
460
  function Yn(e, n) {
461
461
  var t = e.getUTCDay();
462
- return e = t >= 4 || t === 0 ? w(e) : w.ceil(e), f(e.getUTCFullYear() % 1e4, n, 4);
462
+ return e = t >= 4 || t === 0 ? S(e) : S.ceil(e), f(e.getUTCFullYear() % 1e4, n, 4);
463
463
  }
464
464
  function Hn() {
465
465
  return "+0000";
@@ -1,9 +1,10 @@
1
1
  import { constructFrom as t } from "./constructFrom.js";
2
2
  import { toDate as c } from "./toDate.js";
3
- function m(f, a, r) {
3
+ function N(f, a, r) {
4
4
  const e = c(f, r == null ? void 0 : r.in);
5
5
  return isNaN(a) ? t((r == null ? void 0 : r.in) || f, NaN) : (a && e.setDate(e.getDate() + a), e);
6
6
  }
7
7
  export {
8
- m as addDays
8
+ N as addDays,
9
+ N as default
9
10
  };
@@ -1,19 +1,20 @@
1
- import { constructFrom as s } from "./constructFrom.js";
1
+ import { constructFrom as f } from "./constructFrom.js";
2
2
  import { toDate as c } from "./toDate.js";
3
- function g(r, n, o) {
3
+ function M(r, n, o) {
4
4
  const t = c(r, o == null ? void 0 : o.in);
5
- if (isNaN(n)) return s(r, NaN);
5
+ if (isNaN(n)) return f(r, NaN);
6
6
  if (!n)
7
7
  return t;
8
- const f = t.getDate(), e = s(r, t.getTime());
8
+ const a = t.getDate(), e = f(r, t.getTime());
9
9
  e.setMonth(t.getMonth() + n + 1, 0);
10
- const a = e.getDate();
11
- return f >= a ? e : (t.setFullYear(
10
+ const s = e.getDate();
11
+ return a >= s ? e : (t.setFullYear(
12
12
  e.getFullYear(),
13
13
  e.getMonth(),
14
- f
14
+ a
15
15
  ), t);
16
16
  }
17
17
  export {
18
- g as addMonths
18
+ M as addMonths,
19
+ M as default
19
20
  };
@@ -3,5 +3,6 @@ function c(r, n) {
3
3
  return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
4
4
  }
5
5
  export {
6
- c as constructFrom
6
+ c as constructFrom,
7
+ c as default
7
8
  };
@@ -2,7 +2,7 @@ import { getTimezoneOffsetInMilliseconds as a } from "./_lib/getTimezoneOffsetIn
2
2
  import { normalizeDates as c } from "./_lib/normalizeDates.js";
3
3
  import { millisecondsInDay as D } from "./constants.js";
4
4
  import { startOfDay as m } from "./startOfDay.js";
5
- function u(n, i, e) {
5
+ function p(n, i, e) {
6
6
  const [f, l] = c(
7
7
  e == null ? void 0 : e.in,
8
8
  n,
@@ -11,5 +11,6 @@ function u(n, i, e) {
11
11
  return Math.round((o - s) / D);
12
12
  }
13
13
  export {
14
- u as differenceInCalendarDays
14
+ p as default,
15
+ p as differenceInCalendarDays
15
16
  };
@@ -1,8 +1,9 @@
1
- import { toDate as u } from "./toDate.js";
1
+ import { toDate as n } from "./toDate.js";
2
2
  function l(r, e) {
3
- const t = u(r, e == null ? void 0 : e.in), n = t.getMonth();
4
- return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
3
+ const t = n(r, e == null ? void 0 : e.in), a = t.getMonth();
4
+ return t.setFullYear(t.getFullYear(), a + 1, 0), t.setHours(23, 59, 59, 999), t;
5
5
  }
6
6
  export {
7
+ l as default,
7
8
  l as endOfMonth
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import { toDate as d } from "./toDate.js";
2
- function k(c, e) {
3
- const a = e == null ? void 0 : e.weekStartsOn, t = d(c, e == null ? void 0 : e.in), r = t.getDay(), f = (r < a ? -7 : 0) + 6 - (r - a);
4
- return t.setDate(t.getDate() + f), t.setHours(23, 59, 59, 999), t;
2
+ function D(f, e) {
3
+ const a = e == null ? void 0 : e.weekStartsOn, t = d(f, e == null ? void 0 : e.in), r = t.getDay(), c = (r < a ? -7 : 0) + 6 - (r - a);
4
+ return t.setDate(t.getDate() + c), t.setHours(23, 59, 59, 999), t;
5
5
  }
6
6
  export {
7
- k as endOfWeek
7
+ D as default,
8
+ D as endOfWeek
8
9
  };
@@ -51,6 +51,7 @@ function $(t) {
51
51
  return c ? c[1].replace(A, "'") : t;
52
52
  }
53
53
  export {
54
+ U as default,
54
55
  U as format,
55
56
  U as formatDate,
56
57
  D as formatters,
@@ -1,10 +1,11 @@
1
1
  import { differenceInCalendarDays as e } from "./differenceInCalendarDays.js";
2
2
  import { startOfYear as t } from "./startOfYear.js";
3
3
  import { toDate as d } from "./toDate.js";
4
- function y(a, r) {
5
- const f = d(a, r == null ? void 0 : r.in);
6
- return e(f, t(f)) + 1;
4
+ function y(f, r) {
5
+ const a = d(f, r == null ? void 0 : r.in);
6
+ return e(a, t(a)) + 1;
7
7
  }
8
8
  export {
9
+ y as default,
9
10
  y as getDayOfYear
10
11
  };
@@ -1,9 +1,10 @@
1
1
  import { constructFrom as c } from "./constructFrom.js";
2
- import { toDate as m } from "./toDate.js";
3
- function l(n, t) {
4
- const e = m(n, t == null ? void 0 : t.in), o = e.getFullYear(), a = e.getMonth(), r = c(e, 0);
5
- return r.setFullYear(o, a + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
2
+ import { toDate as s } from "./toDate.js";
3
+ function m(a, t) {
4
+ const e = s(a, t == null ? void 0 : t.in), n = e.getFullYear(), o = e.getMonth(), r = c(e, 0);
5
+ return r.setFullYear(n, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
6
6
  }
7
7
  export {
8
- l as getDaysInMonth
8
+ m as default,
9
+ m as getDaysInMonth
9
10
  };
@@ -1,7 +1,8 @@
1
1
  import { getDefaultOptions as t } from "./_lib/defaultOptions.js";
2
- function n() {
2
+ function a() {
3
3
  return Object.assign({}, t());
4
4
  }
5
5
  export {
6
- n as getDefaultOptions
6
+ a as default,
7
+ a as getDefaultOptions
7
8
  };
@@ -1,8 +1,9 @@
1
- import { toDate as a } from "./toDate.js";
2
- function D(t, e) {
3
- const r = a(t, e == null ? void 0 : e.in).getDay();
4
- return r === 0 ? 7 : r;
1
+ import { toDate as r } from "./toDate.js";
2
+ function u(t, a) {
3
+ const e = r(t, a == null ? void 0 : a.in).getDay();
4
+ return e === 0 ? 7 : e;
5
5
  }
6
6
  export {
7
- D as getISODay
7
+ u as default,
8
+ u as getISODay
8
9
  };
@@ -1,11 +1,12 @@
1
1
  import { millisecondsInWeek as m } from "./constants.js";
2
- import { startOfISOWeek as o } from "./startOfISOWeek.js";
3
- import { startOfISOWeekYear as a } from "./startOfISOWeekYear.js";
4
- import { toDate as i } from "./toDate.js";
2
+ import { startOfISOWeek as a } from "./startOfISOWeek.js";
3
+ import { startOfISOWeekYear as o } from "./startOfISOWeekYear.js";
4
+ import { toDate as d } from "./toDate.js";
5
5
  function k(t, e) {
6
- const r = i(t, e == null ? void 0 : e.in), f = +o(r) - +a(r);
6
+ const r = d(t, e == null ? void 0 : e.in), f = +a(r) - +o(r);
7
7
  return Math.round(f / m) + 1;
8
8
  }
9
9
  export {
10
+ k as default,
10
11
  k as getISOWeek
11
12
  };
@@ -10,5 +10,6 @@ function Y(o, r) {
10
10
  return e.getTime() >= m.getTime() ? t + 1 : e.getTime() >= n.getTime() ? t : t - 1;
11
11
  }
12
12
  export {
13
+ Y as default,
13
14
  Y as getISOWeekYear
14
15
  };
@@ -1,11 +1,12 @@
1
1
  import { millisecondsInWeek as m } from "./constants.js";
2
2
  import { startOfWeek as a } from "./startOfWeek.js";
3
- import { startOfWeekYear as c } from "./startOfWeekYear.js";
4
- import { toDate as d } from "./toDate.js";
5
- function o(t, e) {
6
- const r = d(t, e == null ? void 0 : e.in), f = +a(r, e) - +c(r, e);
3
+ import { startOfWeekYear as d } from "./startOfWeekYear.js";
4
+ import { toDate as c } from "./toDate.js";
5
+ function l(t, e) {
6
+ const r = c(t, e == null ? void 0 : e.in), f = +a(r, e) - +d(r, e);
7
7
  return Math.round(f / m) + 1;
8
8
  }
9
9
  export {
10
- o as getWeek
10
+ l as default,
11
+ l as getWeek
11
12
  };
@@ -12,5 +12,6 @@ function H(t, e) {
12
12
  return +a >= +O ? r + 1 : +a >= +n ? r : r - 1;
13
13
  }
14
14
  export {
15
+ H as default,
15
16
  H as getWeekYear
16
17
  };
@@ -1,7 +1,8 @@
1
- import { toDate as t } from "./toDate.js";
1
+ import { toDate as a } from "./toDate.js";
2
2
  function u(r, e) {
3
- return t(r, e == null ? void 0 : e.in).getFullYear();
3
+ return a(r, e == null ? void 0 : e.in).getFullYear();
4
4
  }
5
5
  export {
6
+ u as default,
6
7
  u as getYear
7
8
  };
@@ -1,7 +1,8 @@
1
1
  import { toDate as t } from "./toDate.js";
2
- function f(r, o) {
3
- return +t(r) > +t(o);
2
+ function f(r, e) {
3
+ return +t(r) > +t(e);
4
4
  }
5
5
  export {
6
+ f as default,
6
7
  f as isAfter
7
8
  };
@@ -1,7 +1,8 @@
1
- import { toDate as o } from "./toDate.js";
2
- function f(r, t) {
3
- return +o(r) < +o(t);
1
+ import { toDate as t } from "./toDate.js";
2
+ function f(e, o) {
3
+ return +t(e) < +t(o);
4
4
  }
5
5
  export {
6
+ f as default,
6
7
  f as isBefore
7
8
  };
@@ -2,5 +2,6 @@ function e(t) {
2
2
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
3
3
  }
4
4
  export {
5
+ e as default,
5
6
  e as isDate
6
7
  };
@@ -1,13 +1,14 @@
1
- import { normalizeDates as i } from "./_lib/normalizeDates.js";
1
+ import { normalizeDates as d } from "./_lib/normalizeDates.js";
2
2
  import { startOfDay as t } from "./startOfDay.js";
3
- function d(a, e, r) {
4
- const [m, f] = i(
5
- r == null ? void 0 : r.in,
6
- a,
7
- e
3
+ function D(e, r, a) {
4
+ const [f, m] = d(
5
+ a == null ? void 0 : a.in,
6
+ e,
7
+ r
8
8
  );
9
- return +t(m) == +t(f);
9
+ return +t(f) == +t(m);
10
10
  }
11
11
  export {
12
- d as isSameDay
12
+ D as default,
13
+ D as isSameDay
13
14
  };
@@ -1,12 +1,13 @@
1
1
  import { normalizeDates as n } from "./_lib/normalizeDates.js";
2
- function m(a, l, e) {
3
- const [t, r] = n(
2
+ function g(r, l, e) {
3
+ const [t, a] = n(
4
4
  e == null ? void 0 : e.in,
5
- a,
5
+ r,
6
6
  l
7
7
  );
8
- return t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth();
8
+ return t.getFullYear() === a.getFullYear() && t.getMonth() === a.getMonth();
9
9
  }
10
10
  export {
11
- m as isSameMonth
11
+ g as default,
12
+ g as isSameMonth
12
13
  };
@@ -1,8 +1,9 @@
1
1
  import { isDate as r } from "./isDate.js";
2
- import { toDate as i } from "./toDate.js";
3
- function e(o) {
4
- return !(!r(o) && typeof o != "number" || isNaN(+i(o)));
2
+ import { toDate as t } from "./toDate.js";
3
+ function f(o) {
4
+ return !(!r(o) && typeof o != "number" || isNaN(+t(o)));
5
5
  }
6
6
  export {
7
- e as isValid
7
+ f as default,
8
+ f as isValid
8
9
  };
@@ -1,14 +1,14 @@
1
1
  import { formatDistance as o } from "./ar-SA/_lib/formatDistance.js";
2
2
  import { formatLong as t } from "./ar-SA/_lib/formatLong.js";
3
- import { formatRelative as r } from "./ar-SA/_lib/formatRelative.js";
4
- import { localize as a } from "./ar-SA/_lib/localize.js";
3
+ import { formatRelative as a } from "./ar-SA/_lib/formatRelative.js";
4
+ import { localize as r } from "./ar-SA/_lib/localize.js";
5
5
  import { match as m } from "./ar-SA/_lib/match.js";
6
- const p = {
6
+ const s = {
7
7
  code: "ar-SA",
8
8
  formatDistance: o,
9
9
  formatLong: t,
10
- formatRelative: r,
11
- localize: a,
10
+ formatRelative: a,
11
+ localize: r,
12
12
  match: m,
13
13
  options: {
14
14
  weekStartsOn: 0,
@@ -16,5 +16,6 @@ const p = {
16
16
  }
17
17
  };
18
18
  export {
19
- p as arSA
19
+ s as arSA,
20
+ s as default
20
21
  };
@@ -1,20 +1,21 @@
1
1
  import { formatDistance as o } from "./en-US/_lib/formatDistance.js";
2
2
  import { formatLong as t } from "./en-US/_lib/formatLong.js";
3
- import { formatRelative as r } from "./en-US/_lib/formatRelative.js";
4
- import { localize as m } from "./en-US/_lib/localize.js";
5
- import { match as a } from "./en-US/_lib/match.js";
6
- const p = {
3
+ import { formatRelative as a } from "./en-US/_lib/formatRelative.js";
4
+ import { localize as r } from "./en-US/_lib/localize.js";
5
+ import { match as e } from "./en-US/_lib/match.js";
6
+ const s = {
7
7
  code: "en-US",
8
8
  formatDistance: o,
9
9
  formatLong: t,
10
- formatRelative: r,
11
- localize: m,
12
- match: a,
10
+ formatRelative: a,
11
+ localize: r,
12
+ match: e,
13
13
  options: {
14
14
  weekStartsOn: 0,
15
15
  firstWeekContainsDate: 1
16
16
  }
17
17
  };
18
18
  export {
19
- p as enUS
19
+ s as default,
20
+ s as enUS
20
21
  };
@@ -8,8 +8,8 @@ import { parsers as Y } from "./parse/_lib/parsers.js";
8
8
  import { enUS as j } from "./locale/en-US.js";
9
9
  const q = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, z = /^'([^]*?)'?$/, Q = /''/g, H = /\S/, I = /[a-zA-Z]/;
10
10
  function _(n, c, f, o) {
11
- var k, w, T, y;
12
- const i = () => A(f, NaN), a = W(), l = a.locale ?? j, P = a.firstWeekContainsDate ?? ((w = (k = a.locale) == null ? void 0 : k.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, b = a.weekStartsOn ?? ((y = (T = a.locale) == null ? void 0 : T.options) == null ? void 0 : y.weekStartsOn) ?? 0, m = {
11
+ var k, w, T, d;
12
+ const a = () => A(f, NaN), i = W(), l = i.locale ?? j, P = i.firstWeekContainsDate ?? ((w = (k = i.locale) == null ? void 0 : k.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, b = i.weekStartsOn ?? ((d = (T = i.locale) == null ? void 0 : T.options) == null ? void 0 : d.weekStartsOn) ?? 0, m = {
13
13
  firstWeekContainsDate: P,
14
14
  weekStartsOn: b,
15
15
  locale: l
@@ -25,10 +25,10 @@ function _(n, c, f, o) {
25
25
  F(t) && x(t, c, n), $(t) && x(t, c, n);
26
26
  const e = t[0], r = Y[e];
27
27
  if (r) {
28
- const { incompatibleTokens: d } = r;
29
- if (Array.isArray(d)) {
28
+ const { incompatibleTokens: y } = r;
29
+ if (Array.isArray(y)) {
30
30
  const E = u.find(
31
- (O) => d.includes(O.token) || O.token === e
31
+ (O) => y.includes(O.token) || O.token === e
32
32
  );
33
33
  if (E)
34
34
  throw new RangeError(
@@ -46,7 +46,7 @@ function _(n, c, f, o) {
46
46
  m
47
47
  );
48
48
  if (!g)
49
- return i();
49
+ return a();
50
50
  p.push(g.setter), n = g.rest;
51
51
  } else {
52
52
  if (e.match(I))
@@ -56,20 +56,20 @@ function _(n, c, f, o) {
56
56
  if (t === "''" ? t = "'" : e === "'" && (t = K(t)), n.indexOf(t) === 0)
57
57
  n = n.slice(t.length);
58
58
  else
59
- return i();
59
+ return a();
60
60
  }
61
61
  }
62
62
  if (n.length > 0 && H.test(n))
63
- return i();
63
+ return a();
64
64
  const C = p.map((t) => t.priority).sort((t, e) => e - t).filter((t, e, r) => r.indexOf(t) === e).map(
65
65
  (t) => p.filter((e) => e.priority === t).sort((e, r) => r.subPriority - e.subPriority)
66
66
  ).map((t) => t[0]);
67
67
  let s = N(f, o == null ? void 0 : o.in);
68
- if (isNaN(+s)) return i();
68
+ if (isNaN(+s)) return a();
69
69
  const h = {};
70
70
  for (const t of C) {
71
71
  if (!t.validate(s, m))
72
- return i();
72
+ return a();
73
73
  const e = t.set(s, h, m);
74
74
  Array.isArray(e) ? (s = e[0], Object.assign(h, e[1])) : s = e;
75
75
  }
@@ -79,6 +79,7 @@ function K(n) {
79
79
  return n.match(z)[1].replace(Q, "'");
80
80
  }
81
81
  export {
82
+ _ as default,
82
83
  R as longFormatters,
83
84
  _ as parse,
84
85
  Y as parsers
@@ -1,11 +1,12 @@
1
- import { getDefaultOptions as w } from "./_lib/defaultOptions.js";
2
- import { addDays as S } from "./addDays.js";
3
- import { toDate as s } from "./toDate.js";
1
+ import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
2
+ import { addDays as w } from "./addDays.js";
3
+ import { toDate as S } from "./toDate.js";
4
4
  function _(O, t, e) {
5
- var f, m, d, l;
6
- const a = w(), D = (e == null ? void 0 : e.weekStartsOn) ?? ((m = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : m.weekStartsOn) ?? a.weekStartsOn ?? ((l = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : l.weekStartsOn) ?? 0, c = s(O, e == null ? void 0 : e.in), n = c.getDay(), k = (t % 7 + 7) % 7, r = 7 - D, u = t < 0 || t > 6 ? t - (n + r) % 7 : (k + r) % 7 - (n + r) % 7;
7
- return S(c, u, e);
5
+ var f, d, l, m;
6
+ const a = s(), u = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? a.weekStartsOn ?? ((m = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, c = S(O, e == null ? void 0 : e.in), n = c.getDay(), D = (t % 7 + 7) % 7, r = 7 - u, k = t < 0 || t > 6 ? t - (n + r) % 7 : (D + r) % 7 - (n + r) % 7;
7
+ return w(c, k, e);
8
8
  }
9
9
  export {
10
+ _ as default,
10
11
  _ as setDay
11
12
  };
@@ -1,10 +1,11 @@
1
1
  import { addDays as c } from "./addDays.js";
2
- import { getISODay as D } from "./getISODay.js";
3
- import { toDate as d } from "./toDate.js";
2
+ import { getISODay as d } from "./getISODay.js";
3
+ import { toDate as D } from "./toDate.js";
4
4
  function I(a, e, r) {
5
- const t = d(a, r == null ? void 0 : r.in), f = D(t, r), m = e - f;
5
+ const t = D(a, r == null ? void 0 : r.in), f = d(t, r), m = e - f;
6
6
  return c(t, m, r);
7
7
  }
8
8
  export {
9
+ I as default,
9
10
  I as setISODay
10
11
  };
@@ -1,9 +1,10 @@
1
1
  import { getISOWeek as m } from "./getISOWeek.js";
2
2
  import { toDate as c } from "./toDate.js";
3
- function g(r, f, e) {
4
- const t = c(r, e == null ? void 0 : e.in), a = m(t, e) - f;
5
- return t.setDate(t.getDate() - a * 7), t;
3
+ function D(r, a, e) {
4
+ const t = c(r, e == null ? void 0 : e.in), f = m(t, e) - a;
5
+ return t.setDate(t.getDate() - f * 7), t;
6
6
  }
7
7
  export {
8
- g as setISOWeek
8
+ D as default,
9
+ D as setISOWeek
9
10
  };
@@ -1,12 +1,13 @@
1
1
  import { constructFrom as m } from "./constructFrom.js";
2
2
  import { getDaysInMonth as u } from "./getDaysInMonth.js";
3
3
  import { toDate as M } from "./toDate.js";
4
- function y(n, o, r) {
5
- const t = M(n, r == null ? void 0 : r.in), a = t.getFullYear(), s = t.getDate(), e = m(n, 0);
6
- e.setFullYear(a, o, 15), e.setHours(0, 0, 0, 0);
7
- const c = u(e);
4
+ function d(n, o, e) {
5
+ const t = M(n, e == null ? void 0 : e.in), a = t.getFullYear(), s = t.getDate(), r = m(n, 0);
6
+ r.setFullYear(a, o, 15), r.setHours(0, 0, 0, 0);
7
+ const c = u(r);
8
8
  return t.setMonth(o, Math.min(s, c)), t;
9
9
  }
10
10
  export {
11
- y as setMonth
11
+ d as default,
12
+ d as setMonth
12
13
  };
@@ -1,9 +1,10 @@
1
1
  import { getWeek as c } from "./getWeek.js";
2
2
  import { toDate as t } from "./toDate.js";
3
- function g(f, a, e) {
4
- const r = t(f, e == null ? void 0 : e.in), m = c(r, e) - a;
3
+ function D(a, f, e) {
4
+ const r = t(a, e == null ? void 0 : e.in), m = c(r, e) - f;
5
5
  return r.setDate(r.getDate() - m * 7), t(r, e == null ? void 0 : e.in);
6
6
  }
7
7
  export {
8
- g as setWeek
8
+ D as default,
9
+ D as setWeek
9
10
  };
@@ -1,9 +1,10 @@
1
- import { constructFrom as m } from "./constructFrom.js";
2
- import { toDate as u } from "./toDate.js";
1
+ import { constructFrom as u } from "./constructFrom.js";
2
+ import { toDate as f } from "./toDate.js";
3
3
  function N(e, a, r) {
4
- const t = u(e, r == null ? void 0 : r.in);
5
- return isNaN(+t) ? m(e, NaN) : (t.setFullYear(a), t);
4
+ const t = f(e, r == null ? void 0 : r.in);
5
+ return isNaN(+t) ? u(e, NaN) : (t.setFullYear(a), t);
6
6
  }
7
7
  export {
8
+ N as default,
8
9
  N as setYear
9
10
  };