@salutejs/plasma-new-hope 0.324.0-canary.1984.15139244526.0 → 0.324.0-canary.1985.15159180127.0

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 (42) hide show
  1. package/cjs/components/Calendar/hooks/useMonths.js +1 -3
  2. package/cjs/components/Calendar/hooks/useMonths.js.map +1 -1
  3. package/cjs/components/Calendar/hooks/useQuarters.js +1 -3
  4. package/cjs/components/Calendar/hooks/useQuarters.js.map +1 -1
  5. package/cjs/components/Calendar/hooks/useYears.js +1 -3
  6. package/cjs/components/Calendar/hooks/useYears.js.map +1 -1
  7. package/cjs/components/Calendar/utils/getDateWithModification.js +24 -30
  8. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  9. package/emotion/cjs/components/Calendar/hooks/useMonths.js +1 -3
  10. package/emotion/cjs/components/Calendar/hooks/useQuarters.js +1 -3
  11. package/emotion/cjs/components/Calendar/hooks/useYears.js +1 -3
  12. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +24 -30
  13. package/emotion/es/components/Calendar/hooks/useMonths.js +1 -3
  14. package/emotion/es/components/Calendar/hooks/useQuarters.js +1 -3
  15. package/emotion/es/components/Calendar/hooks/useYears.js +1 -3
  16. package/emotion/es/components/Calendar/utils/getDateWithModification.js +24 -30
  17. package/es/components/Calendar/hooks/useMonths.js +1 -3
  18. package/es/components/Calendar/hooks/useMonths.js.map +1 -1
  19. package/es/components/Calendar/hooks/useQuarters.js +1 -3
  20. package/es/components/Calendar/hooks/useQuarters.js.map +1 -1
  21. package/es/components/Calendar/hooks/useYears.js +1 -3
  22. package/es/components/Calendar/hooks/useYears.js.map +1 -1
  23. package/es/components/Calendar/utils/getDateWithModification.js +24 -30
  24. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  25. package/package.json +4 -4
  26. package/styled-components/cjs/components/Calendar/hooks/useMonths.js +1 -3
  27. package/styled-components/cjs/components/Calendar/hooks/useQuarters.js +1 -3
  28. package/styled-components/cjs/components/Calendar/hooks/useYears.js +1 -3
  29. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +24 -30
  30. package/styled-components/es/components/Calendar/hooks/useMonths.js +1 -3
  31. package/styled-components/es/components/Calendar/hooks/useQuarters.js +1 -3
  32. package/styled-components/es/components/Calendar/hooks/useYears.js +1 -3
  33. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +24 -30
  34. package/types/components/Calendar/hooks/types.d.ts +2 -7
  35. package/types/components/Calendar/hooks/types.d.ts.map +1 -1
  36. package/types/components/Calendar/hooks/useMonths.d.ts +1 -1
  37. package/types/components/Calendar/hooks/useMonths.d.ts.map +1 -1
  38. package/types/components/Calendar/hooks/useQuarters.d.ts +1 -1
  39. package/types/components/Calendar/hooks/useQuarters.d.ts.map +1 -1
  40. package/types/components/Calendar/hooks/useYears.d.ts +1 -1
  41. package/types/components/Calendar/hooks/useYears.d.ts.map +1 -1
  42. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
@@ -48,7 +48,7 @@ var normalizeDate = function normalizeDate(date, type) {
48
48
  date.setMonth(0);
49
49
  }
50
50
  };
51
- var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdgeDates) {
51
+ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
52
52
  var year = _ref.year,
53
53
  monthIndex = _ref.monthIndex,
54
54
  day = _ref.day;
@@ -60,14 +60,13 @@ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdg
60
60
  var currentDate = new Date(year, monthIndex, day);
61
61
  dateOperationHandler[type].add(currentDate);
62
62
  var isOut = true;
63
- var maxDateCondition = includeEdgeDates ? currentDate < maxDate : currentDate <= maxDate;
64
- while (isOut && maxDateCondition) {
65
- isOut = false;
63
+ while (isOut && currentDate <= maxDate) {
64
+ isOut = maxDate <= currentDate;
66
65
  dateOperationHandler[type].add(currentDate);
67
66
  }
68
67
  return isOut;
69
68
  };
70
- var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, includeEdgeDates) {
69
+ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
71
70
  var year = _ref2.year,
72
71
  monthIndex = _ref2.monthIndex,
73
72
  day = _ref2.day;
@@ -79,59 +78,54 @@ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, i
79
78
  var currentDate = new Date(year, monthIndex, day);
80
79
  dateOperationHandler[type].subtract(currentDate);
81
80
  var isOut = true;
82
- var minDateCondition = includeEdgeDates ? currentDate > minDate : currentDate >= minDate;
83
- while (isOut && minDateCondition) {
84
- isOut = false;
81
+ while (isOut && currentDate >= minDate) {
82
+ isOut = minDate >= currentDate;
85
83
  dateOperationHandler[type].subtract(currentDate);
86
84
  }
87
85
  return isOut;
88
86
  };
89
- var getDisabledDates = function getDisabledDates(list, type, min, max, includeEdgeDates) {
87
+ var getDisabledDates = function getDisabledDates(list, type, min, max) {
90
88
  var disabledDate = [];
91
- if (isDisabledPreviousDate(list[0], type, min, includeEdgeDates)) {
89
+ if (isDisabledPreviousDate(list[0], type, min)) {
92
90
  disabledDate.push('previous');
93
91
  }
94
- if (isDisabledNextDate(list[list.length - 1], type, max, includeEdgeDates)) {
92
+ if (isDisabledNextDate(list[list.length - 1], type, max)) {
95
93
  disabledDate.push('next');
96
94
  }
97
95
  return disabledDate.join(',');
98
96
  };
99
- var isDisabledArrowLeft = function isDisabledArrowLeft(date, min, includeEdgeDates) {
97
+ var isDisabledArrowLeft = function isDisabledArrowLeft(date, min) {
100
98
  var currentDate = new Date(date);
101
99
  currentDate.setDate(currentDate.getDate() - 1);
102
- var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
103
- return disableCondition;
100
+ return min && min >= currentDate || min && min >= date;
104
101
  };
105
- var isDisabledArrowRight = function isDisabledArrowRight(date, max, includeEdgeDates) {
102
+ var isDisabledArrowRight = function isDisabledArrowRight(date, max) {
106
103
  var currentDate = new Date(date);
107
104
  currentDate.setDate(currentDate.getDate() + 1);
108
- var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
109
- return disableCondition;
105
+ return max && max <= currentDate || max && max <= date;
110
106
  };
111
- var isDisabledArrowUp = function isDisabledArrowUp(date, min, includeEdgeDates) {
107
+ var isDisabledArrowUp = function isDisabledArrowUp(date, min) {
112
108
  var currentDate = new Date(date);
113
109
  currentDate.setDate(date.getDate() - 7);
114
- var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
115
- return disableCondition;
110
+ return min && min >= currentDate;
116
111
  };
117
- var isDisabledArrowDown = function isDisabledArrowDown(date, max, includeEdgeDates) {
112
+ var isDisabledArrowDown = function isDisabledArrowDown(date, max) {
118
113
  var currentDate = new Date(date);
119
114
  currentDate.setDate(date.getDate() + 7);
120
- var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
121
- return disableCondition;
115
+ return max && max <= currentDate;
122
116
  };
123
- var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max, includeEdgeDates) {
117
+ var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max) {
124
118
  var disabledArrowKey = [];
125
- if (isDisabledArrowLeft(currentDate, min, includeEdgeDates)) {
119
+ if (isDisabledArrowLeft(currentDate, min)) {
126
120
  disabledArrowKey.push('left');
127
121
  }
128
- if (isDisabledArrowRight(currentDate, max, includeEdgeDates)) {
122
+ if (isDisabledArrowRight(currentDate, max)) {
129
123
  disabledArrowKey.push('right');
130
124
  }
131
- if (isDisabledArrowDown(currentDate, max, includeEdgeDates)) {
125
+ if (isDisabledArrowDown(currentDate, max)) {
132
126
  disabledArrowKey.push('down');
133
127
  }
134
- if (isDisabledArrowUp(currentDate, min, includeEdgeDates)) {
128
+ if (isDisabledArrowUp(currentDate, min)) {
135
129
  disabledArrowKey.push('up');
136
130
  }
137
131
  return disabledArrowKey.join(',');
@@ -160,7 +154,7 @@ var getDatesWithModifications = exports.getDatesWithModifications = function get
160
154
  var date = _ref5.date;
161
155
  return date;
162
156
  });
163
- var disabledDates = getDisabledDates(datesList, type, min, max, includeEdgeDates);
157
+ var disabledDates = getDisabledDates(datesList, type, min, max);
164
158
  return dates.map(function (dateItem) {
165
159
  var date = dateItem.date;
166
160
  var year = date.year,
@@ -185,7 +179,7 @@ var getDatesWithModifications = exports.getDatesWithModifications = function get
185
179
  dateItem.events = eventsMap.get(keyDate);
186
180
  dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;
187
181
  dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;
188
- dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max, includeEdgeDates);
182
+ dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);
189
183
  dateItem.disabledDates = disabledDates;
190
184
  return dateItem;
191
185
  });
@@ -12,8 +12,7 @@ export var useMonths = function useMonths(_ref) {
12
12
  min = _ref.min,
13
13
  max = _ref.max,
14
14
  _ref$locale = _ref.locale,
15
- locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
16
- includeEdgeDates = _ref.includeEdgeDates;
15
+ locale = _ref$locale === void 0 ? 'ru' : _ref$locale;
17
16
  return useMemo(function () {
18
17
  var months = SHORT_MONTH_NAME[locale].map(function (monthName, monthIndex) {
19
18
  return {
@@ -38,7 +37,6 @@ export var useMonths = function useMonths(_ref) {
38
37
  type: CalendarState.Months,
39
38
  min: min,
40
39
  max: max,
41
- includeEdgeDates: includeEdgeDates,
42
40
  eventList: eventList,
43
41
  disabledList: disabledList
44
42
  });
@@ -10,8 +10,7 @@ export var useQuarters = function useQuarters(_ref) {
10
10
  eventList = _ref.eventList,
11
11
  disabledList = _ref.disabledList,
12
12
  min = _ref.min,
13
- max = _ref.max,
14
- includeEdgeDates = _ref.includeEdgeDates;
13
+ max = _ref.max;
15
14
  return useMemo(function () {
16
15
  var quarters = QUARTER_NAMES.map(function (quarterName) {
17
16
  var _quarterDates$quarter = quarterDates[quarterName],
@@ -37,7 +36,6 @@ export var useQuarters = function useQuarters(_ref) {
37
36
  type: CalendarState.Quarters,
38
37
  min: min,
39
38
  max: max,
40
- includeEdgeDates: includeEdgeDates,
41
39
  eventList: eventList,
42
40
  disabledList: disabledList
43
41
  });
@@ -11,8 +11,7 @@ export var useYears = function useYears(_ref) {
11
11
  eventList = _ref.eventList,
12
12
  disabledList = _ref.disabledList,
13
13
  min = _ref.min,
14
- max = _ref.max,
15
- includeEdgeDates = _ref.includeEdgeDates;
14
+ max = _ref.max;
16
15
  return useMemo(function () {
17
16
  // type-coverage:ignore-next-line
18
17
  var years = Array.from(Array(YEAR_RENDER_COUNT), function (_, i) {
@@ -37,7 +36,6 @@ export var useYears = function useYears(_ref) {
37
36
  type: CalendarState.Years,
38
37
  min: min,
39
38
  max: max,
40
- includeEdgeDates: includeEdgeDates,
41
39
  eventList: eventList,
42
40
  disabledList: disabledList
43
41
  });
@@ -42,7 +42,7 @@ var normalizeDate = function normalizeDate(date, type) {
42
42
  date.setMonth(0);
43
43
  }
44
44
  };
45
- var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdgeDates) {
45
+ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max) {
46
46
  var year = _ref.year,
47
47
  monthIndex = _ref.monthIndex,
48
48
  day = _ref.day;
@@ -54,14 +54,13 @@ var isDisabledNextDate = function isDisabledNextDate(_ref, type, max, includeEdg
54
54
  var currentDate = new Date(year, monthIndex, day);
55
55
  dateOperationHandler[type].add(currentDate);
56
56
  var isOut = true;
57
- var maxDateCondition = includeEdgeDates ? currentDate < maxDate : currentDate <= maxDate;
58
- while (isOut && maxDateCondition) {
59
- isOut = false;
57
+ while (isOut && currentDate <= maxDate) {
58
+ isOut = maxDate <= currentDate;
60
59
  dateOperationHandler[type].add(currentDate);
61
60
  }
62
61
  return isOut;
63
62
  };
64
- var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, includeEdgeDates) {
63
+ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min) {
65
64
  var year = _ref2.year,
66
65
  monthIndex = _ref2.monthIndex,
67
66
  day = _ref2.day;
@@ -73,59 +72,54 @@ var isDisabledPreviousDate = function isDisabledPreviousDate(_ref2, type, min, i
73
72
  var currentDate = new Date(year, monthIndex, day);
74
73
  dateOperationHandler[type].subtract(currentDate);
75
74
  var isOut = true;
76
- var minDateCondition = includeEdgeDates ? currentDate > minDate : currentDate >= minDate;
77
- while (isOut && minDateCondition) {
78
- isOut = false;
75
+ while (isOut && currentDate >= minDate) {
76
+ isOut = minDate >= currentDate;
79
77
  dateOperationHandler[type].subtract(currentDate);
80
78
  }
81
79
  return isOut;
82
80
  };
83
- var getDisabledDates = function getDisabledDates(list, type, min, max, includeEdgeDates) {
81
+ var getDisabledDates = function getDisabledDates(list, type, min, max) {
84
82
  var disabledDate = [];
85
- if (isDisabledPreviousDate(list[0], type, min, includeEdgeDates)) {
83
+ if (isDisabledPreviousDate(list[0], type, min)) {
86
84
  disabledDate.push('previous');
87
85
  }
88
- if (isDisabledNextDate(list[list.length - 1], type, max, includeEdgeDates)) {
86
+ if (isDisabledNextDate(list[list.length - 1], type, max)) {
89
87
  disabledDate.push('next');
90
88
  }
91
89
  return disabledDate.join(',');
92
90
  };
93
- var isDisabledArrowLeft = function isDisabledArrowLeft(date, min, includeEdgeDates) {
91
+ var isDisabledArrowLeft = function isDisabledArrowLeft(date, min) {
94
92
  var currentDate = new Date(date);
95
93
  currentDate.setDate(currentDate.getDate() - 1);
96
- var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
97
- return disableCondition;
94
+ return min && min >= currentDate || min && min >= date;
98
95
  };
99
- var isDisabledArrowRight = function isDisabledArrowRight(date, max, includeEdgeDates) {
96
+ var isDisabledArrowRight = function isDisabledArrowRight(date, max) {
100
97
  var currentDate = new Date(date);
101
98
  currentDate.setDate(currentDate.getDate() + 1);
102
- var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
103
- return disableCondition;
99
+ return max && max <= currentDate || max && max <= date;
104
100
  };
105
- var isDisabledArrowUp = function isDisabledArrowUp(date, min, includeEdgeDates) {
101
+ var isDisabledArrowUp = function isDisabledArrowUp(date, min) {
106
102
  var currentDate = new Date(date);
107
103
  currentDate.setDate(date.getDate() - 7);
108
- var disableCondition = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
109
- return disableCondition;
104
+ return min && min >= currentDate;
110
105
  };
111
- var isDisabledArrowDown = function isDisabledArrowDown(date, max, includeEdgeDates) {
106
+ var isDisabledArrowDown = function isDisabledArrowDown(date, max) {
112
107
  var currentDate = new Date(date);
113
108
  currentDate.setDate(date.getDate() + 7);
114
- var disableCondition = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
115
- return disableCondition;
109
+ return max && max <= currentDate;
116
110
  };
117
- var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max, includeEdgeDates) {
111
+ var getDisabledArrowKey = function getDisabledArrowKey(currentDate, min, max) {
118
112
  var disabledArrowKey = [];
119
- if (isDisabledArrowLeft(currentDate, min, includeEdgeDates)) {
113
+ if (isDisabledArrowLeft(currentDate, min)) {
120
114
  disabledArrowKey.push('left');
121
115
  }
122
- if (isDisabledArrowRight(currentDate, max, includeEdgeDates)) {
116
+ if (isDisabledArrowRight(currentDate, max)) {
123
117
  disabledArrowKey.push('right');
124
118
  }
125
- if (isDisabledArrowDown(currentDate, max, includeEdgeDates)) {
119
+ if (isDisabledArrowDown(currentDate, max)) {
126
120
  disabledArrowKey.push('down');
127
121
  }
128
- if (isDisabledArrowUp(currentDate, min, includeEdgeDates)) {
122
+ if (isDisabledArrowUp(currentDate, min)) {
129
123
  disabledArrowKey.push('up');
130
124
  }
131
125
  return disabledArrowKey.join(',');
@@ -154,7 +148,7 @@ export var getDatesWithModifications = function getDatesWithModifications(_ref3)
154
148
  var date = _ref5.date;
155
149
  return date;
156
150
  });
157
- var disabledDates = getDisabledDates(datesList, type, min, max, includeEdgeDates);
151
+ var disabledDates = getDisabledDates(datesList, type, min, max);
158
152
  return dates.map(function (dateItem) {
159
153
  var date = dateItem.date;
160
154
  var year = date.year,
@@ -179,7 +173,7 @@ export var getDatesWithModifications = function getDatesWithModifications(_ref3)
179
173
  dateItem.events = eventsMap.get(keyDate);
180
174
  dateItem.disabled = disabledDatesMap.has(keyDate) || isOutOfMinMaxRange;
181
175
  dateItem.isOutOfMinMaxRange = isOutOfMinMaxRange;
182
- dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max, includeEdgeDates);
176
+ dateItem.disabledArrowKey = getDisabledArrowKey(currentDate, min, max);
183
177
  dateItem.disabledDates = disabledDates;
184
178
  return dateItem;
185
179
  });
@@ -31,14 +31,9 @@ export declare type UseDateStructureArgs = {
31
31
  export declare type UseDaysArgs = {
32
32
  includeEdgeDates?: boolean;
33
33
  } & UseDateStructureArgs;
34
- export declare type UseMonthsArgs = {
35
- includeEdgeDates?: boolean;
36
- } & UseDateStructureArgs;
37
- export declare type UseQuartersArgs = {
38
- includeEdgeDates?: boolean;
39
- } & UseDateStructureArgs;
34
+ export declare type UseMonthsArgs = UseDateStructureArgs;
35
+ export declare type UseQuartersArgs = UseDateStructureArgs;
40
36
  export declare type UseYearsArgs = {
41
37
  startYear: number;
42
- includeEdgeDates?: boolean;
43
38
  } & UseDateStructureArgs;
44
39
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvB,MAAM,EA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U,CAAC;IACjB,KAAK,EAAE,iBAAiB,CAAC;IACzB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,aAAa,GAAG,oBAAoB,CAAC;AAEjD,oBAAY,eAAe,GAAG,oBAAoB,CAAC;AAEnD,oBAAY,YAAY,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;CACrB,GAAG,oBAAoB,CAAC"}
@@ -3,5 +3,5 @@ import { UseMonthsArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка месяцев.
5
5
  */
6
- export declare const useMonths: ({ date, value, eventList, disabledList, min, max, locale, includeEdgeDates, }: UseMonthsArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useMonths: ({ date, value, eventList, disabledList, min, max, locale }: UseMonthsArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useMonths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMonths.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useMonths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,SAAS,kFASnB,aAAa,kDA8BgD,CAAC"}
1
+ {"version":3,"file":"useMonths.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useMonths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,SAAS,+DAAuE,aAAa,kDA6B1C,CAAC"}
@@ -3,5 +3,5 @@ import type { UseQuartersArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка месяцев.
5
5
  */
6
- export declare const useQuarters: ({ date, value, eventList, disabledList, min, max, includeEdgeDates }: UseQuartersArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useQuarters: ({ date, value, eventList, disabledList, min, max }: UseQuartersArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useQuarters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQuarters.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useQuarters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,yEAA0E,eAAe,kDA+BzD,CAAC"}
1
+ {"version":3,"file":"useQuarters.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useQuarters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAYlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,uDAAwD,eAAe,kDA8BvC,CAAC"}
@@ -3,5 +3,5 @@ import type { UseYearsArgs } from './types';
3
3
  /**
4
4
  * Хук для получения списка годов.
5
5
  */
6
- export declare const useYears: ({ date, value, startYear, eventList, disabledList, min, max, includeEdgeDates, }: UseYearsArgs) => readonly [DateItem[][], number[] | undefined];
6
+ export declare const useYears: ({ date, value, startYear, eventList, disabledList, min, max }: UseYearsArgs) => readonly [DateItem[][], number[] | undefined];
7
7
  //# sourceMappingURL=useYears.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useYears.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,QAAQ,qFASlB,YAAY,kDA+BoD,CAAC"}
1
+ {"version":3,"file":"useYears.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useYears.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,QAAQ,kEAAmE,YAAY,kDA8BjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAiB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAiLF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}
1
+ {"version":3,"file":"getDateWithModification.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/utils/getDateWithModification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAiB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,aAAK,6BAA6B,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAuJF;;GAEG;AACH,eAAO,MAAM,yBAAyB,0EAQnC,6BAA6B,eA6C/B,CAAC"}